Lines Matching full:declaration_scope
1722 Scope* declaration_scope = DeclarationScope(mode);
1733 if (declaration_scope->is_function_scope() ||
1734 declaration_scope->is_strict_eval_scope() ||
1735 declaration_scope->is_block_scope() ||
1736 declaration_scope->is_module_scope() ||
1737 declaration_scope->is_global_scope()) {
1742 var = declaration_scope->is_global_scope()
1743 ? declaration_scope->Lookup(name)
1744 : declaration_scope->LookupLocal(name);
1747 var = declaration_scope->DeclareLocal(name, mode,
1752 !declaration_scope->is_global_scope())) {
1776 declaration_scope->SetIllegalRedeclaration(expression);
1798 declaration_scope->AddDeclaration(declaration);
1800 if (mode == CONST_LEGACY && declaration_scope->is_global_scope()) {
1805 Variable(declaration_scope, name, mode, true, kind,
1807 } else if (declaration_scope->is_eval_scope() &&
1808 declaration_scope->strict_mode() == SLOPPY) {
1814 var = new (zone()) Variable(declaration_scope, name, mode, true, kind,
2159 Scope* declaration_scope = DeclarationScope(mode);
2207 if (declaration_scope->num_var_or_const() > kMaxNumFunctionLocals) {
2224 // declaration_scope) as it may be a different 'v' than the 'v' in the
2241 Scope* initialization_scope = is_const ? declaration_scope : scope_;
3493 Scope* declaration_scope = scope_->DeclarationScope();
3499 declaration_scope != original_declaration_scope)
3500 ? NewScope(declaration_scope, FUNCTION_SCOPE)