Lines Matching refs:scope_

863   DCHECK(scope_ == NULL);
868 *scope = NewScope(scope_, GLOBAL_SCOPE);
898 FunctionState function_state(&function_state_, &scope_, *scope, zone(),
901 scope_->SetStrictMode(info->strict_mode());
913 CheckConflictingVarDeclarations(scope_, &ok);
928 ast_value_factory()->empty_string(), ast_value_factory(), scope_,
988 DCHECK(scope_ == NULL);
1004 Scope* scope = NewScope(scope_, GLOBAL_SCOPE);
1011 FunctionState function_state(&function_state_, &scope_, scope, zone(),
1102 if (is_eval && !scope_->is_eval_scope()) {
1103 DCHECK(scope_->is_global_scope());
1104 Scope* scope = NewScope(scope_, EVAL_SCOPE);
1105 scope->set_start_position(scope_->start_position());
1106 scope->set_end_position(scope_->end_position());
1107 scope_ = scope;
1114 scope_->SetStrictMode(STRICT);
1124 scope_->SetAsmModule();
1210 factory()->NewModuleDeclaration(proxy, module, scope_, pos);
1267 Scope* scope = NewScope(scope_, MODULE_SCOPE);
1274 BlockState block_state(&scope_, scope);
1356 VariableProxy* proxy = scope_->NewUnresolved(
1380 Scope* scope = NewScope(scope_, MODULE_SCOPE);
1452 factory()->NewImportDeclaration(proxy, module, scope_, pos);
1517 Variable* var = scope_->Lookup(names[i]);
1529 Interface* interface = scope_->interface();
1544 // factory()->NewExportDeclaration(proxy, scope_, position);
1545 // scope_->AddDeclaration(declaration);
1906 factory()->NewVariableDeclaration(proxy, VAR, scope_, pos);
1943 !(scope_->is_global_scope() || scope_->is_eval_scope() ||
1944 scope_->is_function_scope()) ? LET : VAR;
1947 factory()->NewFunctionDeclaration(proxy, mode, fun, scope_, pos);
1981 factory()->NewVariableDeclaration(proxy, mode, scope_, pos);
2032 Scope* block_scope = NewScope(scope_, BLOCK_SCOPE);
2037 { BlockState block_state(&scope_, block_scope);
2204 factory()->NewVariableDeclaration(proxy, mode, scope_, pos);
2223 // In particular, we need to re-lookup 'v' (in scope_, not
2241 Scope* initialization_scope = is_const ? declaration_scope : scope_;
2432 scope_->RemoveUnresolved(var);
2584 Scope* decl_scope = scope_->DeclarationScope();
2612 scope_->DeclarationScope()->RecordWithStatement();
2613 Scope* with_scope = NewScope(scope_, WITH_SCOPE);
2615 { BlockState block_state(&scope_, with_scope);
2746 catch_scope = NewScope(scope_, CATCH_SCOPE);
2756 BlockState block_state(&scope_, catch_scope);
2876 Variable* iterator = scope_->DeclarationScope()->NewTemporary(
2878 Variable* result = scope_->DeclarationScope()->NewTemporary(
2975 Scope* for_scope = scope_;
2989 Variable* temp = scope_->DeclarationScope()->NewTemporary(temp_name);
2999 Variable* flag = scope_->DeclarationScope()->NewTemporary(temp_name);
3013 scope_ = inner_scope;
3026 factory()->NewVariableDeclaration(proxy, LET, scope_, pos);
3090 scope_ = for_scope;
3107 Scope* saved_scope = scope_;
3108 Scope* for_scope = NewScope(scope_, BLOCK_SCOPE);
3109 scope_ = for_scope;
3136 scope_->NewUnresolved(factory(), name, interface);
3143 scope_ = saved_scope;
3179 Variable* temp = scope_->DeclarationScope()->NewTemporary(
3187 scope_ = saved_scope;
3189 scope_ = for_scope;
3193 scope_->NewUnresolved(factory(), name, Interface::NewValue());
3205 scope_ = saved_scope;
3234 scope_ = saved_scope;
3261 scope_ = inner_scope;
3281 scope_ = for_scope;
3284 scope_ = saved_scope;
3287 scope_ = saved_scope;
3493 Scope* declaration_scope = scope_->DeclarationScope();
3501 : NewScope(scope_, FUNCTION_SCOPE);
3515 FunctionState function_state(&function_state_, &scope_, scope, zone(),
3518 scope_->SetScopeName(function_name);
3524 scope_->ForceContextAllocation();
3529 Variable* temp = scope_->DeclarationScope()->NewTemporary(
3561 if (!dupe_error_loc.IsValid() && scope_->IsDeclared(param_name)) {
3566 Variable* var = scope_->DeclareParameter(param_name, VAR);
3605 Variable(scope_, function_name, fvar_mode, true /* is valid LHS */,
3610 proxy, fvar_mode, scope_, RelocInfo::kNoPosition);
3611 scope_->DeclareFunctionVar(fvar_declaration);
3648 scope_->AllowsLazyCompilation() &&
3717 scope_->set_end_position(entry.end_pos());
3722 total_preparse_skipped_ += scope_->end_position() - function_block_pos;
3725 scope_->SetStrictMode(entry.strict_mode());
3745 scope_->set_end_position(logger.end());
3750 total_preparse_skipped_ += scope_->end_position() - function_block_pos;
3753 scope_->SetStrictMode(logger.strict_mode());
3761 scope_->strict_mode());
3775 VariableProxy* fproxy = scope_->NewUnresolved(
3820 scope_->set_end_position(scanner()->location().end_pos);
3872 scope_->DeclarationScope()->ForceEagerCompilation();