Lines Matching refs:VariableMode
50 const AstRawString* name, VariableMode mode, in Declare()
183 DCHECK_EQ(scope_info->ContextLocalMode(index), VariableMode::kConst); in ClassScope()
243 Declare(zone, catch_variable_name, VariableMode::kVar, NORMAL_VARIABLE, in Scope()
405 DCHECK_EQ(scope_info.ContextLocalMode(0), VariableMode::kVar); in DeserializeScopeChain()
545 declaration, name, pos, VariableMode::kVar, NORMAL_VARIABLE, in HoistSloppyBlockFunctions()
546 Variable::DefaultInitializationFlag(VariableMode::kVar), &was_added, in HoistSloppyBlockFunctions()
560 Variable* var = DeclareVariableName(name, VariableMode::kVar, &was_added); in HoistSloppyBlockFunctions()
626 derived_constructor ? VariableMode::kConst : VariableMode::kVar, in DeclareThis()
641 Declare(zone(), ast_value_factory->arguments_string(), VariableMode::kVar, in DeclareArguments()
658 VariableMode::kConst, NORMAL_VARIABLE, in DeclareDefaultFunctionVariables()
665 zone(), ast_value_factory->this_function_string(), VariableMode::kConst, in DeclareDefaultFunctionVariables()
680 function_ = zone()->New<Variable>(this, name, VariableMode::kConst, kind, in DeclareFunctionVar()
683 cache->NonLocal(name, VariableMode::kDynamic); in DeclareFunctionVar()
798 DCHECK_EQ(VariableMode::kTemporary, local->mode()); in Reparent()
849 VariableMode mode; in LookupInScopeInfo()
873 DCHECK_EQ(VariableMode::kConst, var->mode()); in LookupInScopeInfo()
892 VariableMode mode, in DeclareParameter()
903 if (mode == VariableMode::kTemporary) { in DeclareParameter()
907 DCHECK_EQ(mode, VariableMode::kVar); in DeclareParameter()
934 Variable* Scope::DeclareLocal(const AstRawString* name, VariableMode mode, in DeclareLocal()
946 mode == VariableMode::kVar || mode == VariableMode::kLet || in DeclareLocal()
947 mode == VariableMode::kConst); in DeclareLocal()
960 if (mode != VariableMode::kConst) var->SetMaybeAssigned(); in DeclareLocal()
969 VariableMode mode, VariableKind kind, InitializationFlag init, in DeclareVariable()
979 if (mode == VariableMode::kVar && !is_declaration_scope()) { in DeclareVariable()
996 mode == VariableMode::kVar)) { in DeclareVariable()
1002 var = NonLocal(name, VariableMode::kDynamic); in DeclareVariable()
1054 VariableMode mode, bool* was_added, in DeclareVariableName()
1061 if (mode == VariableMode::kVar && !is_declaration_scope()) { in DeclareVariableName()
1095 Variable* result = Declare(zone(), name, VariableMode::kVar, NORMAL_VARIABLE, in DeclareCatchVariableName()
1113 zone(), this, name, VariableMode::kDynamicGlobal, kind, in DeclareDynamicGlobal()
1134 Variable* var = zone()->New<Variable>(scope, name, VariableMode::kTemporary, in NewTemporary()
1151 DCHECK(decl->var()->mode() == VariableMode::kVar || in CheckConflictingVarDeclarations()
1152 decl->var()->mode() == VariableMode::kDynamic); in CheckConflictingVarDeclarations()
1206 VariableMode mode_limit) { in FindVariableDeclaredIn()
1818 if (local->mode() != VariableMode::kTemporary) continue; in Print()
1890 Variable* Scope::NonLocal(const AstRawString* name, VariableMode mode) { in NonLocal()
1929 return cache_scope->NonLocal(proxy->raw_name(), VariableMode::kDynamic); in Lookup()
1965 !(scope->is_eval_scope() && var->mode() == VariableMode::kDynamic)) { in Lookup()
2054 target_scope->NonLocal(proxy->raw_name(), VariableMode::kDynamic); in LookupWith()
2097 var = target->NonLocal(proxy->raw_name(), VariableMode::kDynamicGlobal); in LookupSloppyEval()
2106 var = target->NonLocal(proxy->raw_name(), VariableMode::kDynamicLocal); in LookupSloppyEval()
2127 if (var->mode() == VariableMode::kDynamicLocal) { in UpdateNeedsHoleCheck()
2252 VariableMode mode = var->mode(); in MustAllocateInContext()
2253 if (mode == VariableMode::kTemporary) return false; in MustAllocateInContext()
2354 if (local->mode() != VariableMode::kTemporary) in AllocateNonParameterLocalsAndDeclaredGlobals()
2359 if (local->mode() == VariableMode::kTemporary) in AllocateNonParameterLocalsAndDeclaredGlobals()
2574 bool IsComplementaryAccessorPair(VariableMode a, VariableMode b) { in IsComplementaryAccessorPair()
2576 case VariableMode::kPrivateGetterOnly: in IsComplementaryAccessorPair()
2577 return b == VariableMode::kPrivateSetterOnly; in IsComplementaryAccessorPair()
2578 case VariableMode::kPrivateSetterOnly: in IsComplementaryAccessorPair()
2579 return b == VariableMode::kPrivateGetterOnly; in IsComplementaryAccessorPair()
2586 VariableMode mode, in DeclarePrivateName()
2601 result->set_mode(VariableMode::kPrivateGetterAndSetter); in DeclarePrivateName()
2675 VariableMode mode; in LookupPrivateNameInScopeInfo()
2815 VariableMode::kConst, NORMAL_VARIABLE, in DeclareBrandVariable()
2834 VariableMode::kConst, NORMAL_VARIABLE, in DeclareClassVariable()