Lines Matching defs:token

37 #include "src/parsing/token.h"
188 // This can very slightly bloat bytecode, so perhaps token values should all
201 // TODO(leszeks): We could decouple deferred_ index and token to allow us
211 int token; // A token identifying this particular path.
215 // generates a new dispatch token that identifies one particular path. This
218 int token = GetTokenForCommand(command, statement);
220 DCHECK_LT(token, deferred_.size());
221 DCHECK_EQ(deferred_[token].command, command);
222 DCHECK_EQ(deferred_[token].statement, statement);
223 DCHECK_EQ(deferred_[token].token, token);
228 builder()->LoadLiteral(Smi::FromInt(token));
234 // Smi token value is just as good, and by reusing it we save a bytecode.
239 // Records the dispatch token to be used to identify the re-throw path when
247 // Records the dispatch token to be used to identify the implicit fall-through
255 // token value is just as good, and by reusing it we save a bytecode.
260 // This generates a dynamic dispatch on the token from the entry point.
268 // entry token.
272 ->LoadLiteral(Smi::FromInt(entry.token))
282 // For multiple entries, build a jump table and switch on the token,
292 builder()->Bind(jump_table, entry.token);
339 int token = static_cast<int>(deferred_.size());
340 deferred_.push_back({command, statement, token});
341 return token;
2196 Register token = register_allocator()->NewRegister();
2198 ControlScope::DeferredCommands commands(this, token, result);
2230 finally_body_func(token);
6535 Token::Value token, Expression* expr, BytecodeLabels* then_labels,
6537 DCHECK(token == Token::OR || token == Token::AND || token == Token::NULLISH);
6540 if (token == Token::OR) {
6542 } else if (token == Token::AND) {
6545 DCHECK_EQ(Token::NULLISH, token);
6553 void BytecodeGenerator::VisitLogicalTest(Token::Value token, Expression* left,
6556 DCHECK(token == Token::OR || token == Token::AND || token == Token::NULLISH);
6562 VisitLogicalTestSubExpression(token, left, then_labels, else_labels,
6569 Token::Value token, NaryOperation* expr,
6571 DCHECK(token == Token::OR || token == Token::AND || token == Token::NULLISH);
6579 VisitLogicalTestSubExpression(token, expr->first(), then_labels, else_labels,
6582 VisitLogicalTestSubExpression(token, expr->subsequent(i), then_labels,