Home | History | Annotate | Download | only in src

Lines Matching refs:scope

410 Scope* Parser::NewScope(Scope* parent, Scope::Type type, bool inside_with) {
411 Scope* result = new(zone()) Scope(parent, type);
462 // Parser's scope stack. The constructor sets the parser's top scope
463 // to the incoming scope, and the destructor resets it.
471 LexicalScope(Parser* parser, Scope* scope, Isolate* isolate);
517 Scope* previous_scope_;
523 LexicalScope::LexicalScope(Parser* parser, Scope* scope, Isolate* isolate)
533 parser->top_scope_ = scope;
632 Scope::Type type =
634 ? Scope::GLOBAL_SCOPE
635 : Scope::EVAL_SCOPE;
639 { Scope* scope = NewScope(top_scope_, type, inside_with());
640 LexicalScope lexical_scope(this, scope, isolate());
673 // and it is not safe to do so before the scope has been deleted.
723 Scope* scope = NewScope(top_scope_, Scope::GLOBAL_SCOPE, inside_with());
725 scope = Scope::DeserializeScopeChain(info, scope);
727 LexicalScope lexical_scope(this, scope, isolate());
747 // not safe to do before scope has been deleted.
937 void Update(Scope* scope, Statement* stat) {
947 HandleThisPropertyAssignment(scope, assignment);
991 void HandleThisPropertyAssignment(Scope* scope, Assignment* assignment) {
1017 for (int i = 0; i < scope->num_parameters(); i++) {
1018 if (*scope->parameter(i)->name() == *name) {
1078 TargetScope scope(&this->target_stack_);
1297 // is a truly local variable, and the scope of the variable
1298 // is always the function scope.
1300 // If a function scope exists, then we can statically declare this
1302 // will be added to the scope so that the declaration can be added
1304 // For instance declarations inside an eval scope need to be added
1307 // Declare the variable in the function scope.
1311 var = top_scope_->DeclareLocal(name, mode, Scope::VAR_OR_CONST);
1361 // function scope and not a statement-local scope, e.g. as provided with a
1442 // other functions are setup when entering the surrounding scope.
1464 // scope, we treat is as such and introduce the function with it's
1465 scope.
1475 // Note that a Block does not introduce a new execution scope!
1536 // The scope of a variable/const declared anywhere inside a function
1539 // Scope declaration, and rewrite the source-level initialization into an
1576 // If we have a const declaration, in an inner scope, the proxy is always
1708 // always at the function scope level. This is only relevant for
1775 // from the top scope. This way, we don't try to resolve it
1776 // during the scope processing.
2667 // declared in the current scope chain.
2671 // in the local scope chain. It only matters that it's called "eval",
3010 // Update the scope information before the pre-parsing bailout.
3540 Scope* scope = NewScope(top_scope_, Scope::FUNCTION_SCOPE, inside_with());
3549 { LexicalScope lexical_scope(this, scope, isolate());
3579 Scope::PARAMETER);
3699 scope,