Lines Matching refs:Scope
113 explicit FormalParametersBase(Scope* scope) : scope(scope) {}
114 Scope* scope;
144 // typedef Scope;
250 // FunctionState and BlockState together implement the parser's scope stack.
251 // The parser's current scope is in scope_. BlockState and FunctionState
252 // constructors push on the scope stack and the destructors pop. They are also
256 BlockState(Scope** scope_stack, Scope* scope)
258 *scope_stack_ = scope;
263 Scope** scope_stack_;
264 Scope* outer_scope_;
269 DestructuringAssignment(ExpressionT expression, Scope* scope)
270 : assignment(expression), scope(scope) {}
273 Scope* scope;
336 FunctionState(FunctionState** function_state_stack, Scope** scope_stack,
337 Scope* scope, FunctionKind kind,
439 V8_INLINE Scope* scope() { return *scope_stack_; }
473 Scope** scope_stack_;
474 Scope* outer_scope_;
498 scope sets current ReturnExprContext to given value.
522 // Collects all return expressions at tail call position in this scope
584 Scope* NewScope(Scope* parent, ScopeType scope_type) {
590 Scope* NewScope(Scope* parent, ScopeType scope_type, FunctionKind kind) {
592 Scope* result = new (zone())
593 Scope(zone(), parent, scope_type, ast_value_factory(), kind);
966 // Parses an identifier that is valid for the current scope, in particular it
967 // fails on strict mode future reserved keywords in a strict scope. If
1095 // forwards the information to scope.
1096 void CheckPossibleEvalCall(ExpressionT expression, Scope* scope) {
1099 scope->RecordEvalCall();
1100 if (is_sloppy(scope->language_mode())) {
1103 scope->DeclarationScope()->RecordEvalCall();
1167 Scope* scope_; // Scope stack.
1196 FunctionState** function_state_stack, Scope** scope_stack, Scope* scope,
1209 destructuring_assignments_to_rewrite_(16, scope->zone()),
1210 tail_call_expressions_(scope->zone()),
1212 non_patterns_to_rewrite_(0, scope->zone()),
1213 reported_errors_(16, scope->zone()),
1217 *scope_stack_ = scope;
1794 // Update the scope information before the pre-parsing bailout.
2280 Scope* scope = this->NewScope(scope_, FUNCTION_SCOPE,
2283 // Because the arrow's parameters were parsed in the outer scope, any
2285 // to the arrow scope.
2286 scope_->PropagateUsageFlagsToScope(scope);
2287 FormalParametersT parameters(scope);
2289 scope->SetHasNonSimpleParameters();
2295 scope->set_start_position(lhs_beg_pos);
3039 Scope* scope = scope_->ReceiverScope();
3040 FunctionKind kind = scope->function_kind();
3044 scope->RecordSuperPropertyUsage();
3255 Traits::DeclareFormalParameter(parameters->scope, parameter, classifier);
3326 int num_parameters = formal_parameters.scope->num_parameters();
3335 formal_parameters.scope, arrow_kind,
3397 formal_parameters.scope->set_end_position(scanner()->location().end_pos);
3409 CheckStrictOctalLiteral(formal_parameters.scope->start_position(),
3412 this->CheckConflictingVarDeclarations(formal_parameters.scope, CHECK_OK);
3418 this->EmptyIdentifierString(), formal_parameters.scope, body,
3423 formal_parameters.scope->start_position());
3426 formal_parameters.scope->start_position());