• Home
  • Raw
  • Download

Lines Matching refs:VariableMode

50                                const AstRawString* name, VariableMode mode,  in Declare()
119 zone(), ast_value_factory->dot_home_object_string(), VariableMode::kConst, in DeclareHomeObjectVariable()
133 VariableMode::kConst, NORMAL_VARIABLE, in DeclareStaticHomeObjectVariable()
213 DCHECK_EQ(scope_info->ContextLocalMode(index), VariableMode::kConst); in ClassScope()
304 Declare(zone, catch_variable_name, VariableMode::kVar, NORMAL_VARIABLE, in Scope()
478 DCHECK_EQ(scope_info.ContextLocalMode(0), VariableMode::kVar); in DeserializeScopeChain()
656 declaration, name, pos, VariableMode::kVar, NORMAL_VARIABLE, in HoistSloppyBlockFunctions()
657 Variable::DefaultInitializationFlag(VariableMode::kVar), &was_added, in HoistSloppyBlockFunctions()
671 Variable* var = DeclareVariableName(name, VariableMode::kVar, &was_added); in HoistSloppyBlockFunctions()
739 derived_constructor ? VariableMode::kConst : VariableMode::kVar, in DeclareThis()
765 Declare(zone(), ast_value_factory->arguments_string(), VariableMode::kVar, in DeclareArguments()
786 VariableMode::kConst, NORMAL_VARIABLE, in DeclareDefaultFunctionVariables()
793 zone(), ast_value_factory->this_function_string(), VariableMode::kConst, in DeclareDefaultFunctionVariables()
808 function_ = zone()->New<Variable>(this, name, VariableMode::kConst, kind, in DeclareFunctionVar()
811 cache->NonLocal(name, VariableMode::kDynamic); in DeclareFunctionVar()
924 DCHECK_EQ(VariableMode::kTemporary, local->mode()); in Reparent()
990 DCHECK_EQ(VariableMode::kConst, var->mode()); in LookupInScopeInfo()
1010 VariableMode mode, in DeclareParameter()
1021 if (mode == VariableMode::kTemporary) { in DeclareParameter()
1025 DCHECK_EQ(mode, VariableMode::kVar); in DeclareParameter()
1052 Variable* Scope::DeclareLocal(const AstRawString* name, VariableMode mode, in DeclareLocal()
1064 mode == VariableMode::kVar || mode == VariableMode::kLet || in DeclareLocal()
1065 mode == VariableMode::kConst); in DeclareLocal()
1078 if (mode != VariableMode::kConst) var->SetMaybeAssigned(); in DeclareLocal()
1087 VariableMode mode, VariableKind kind, InitializationFlag init, in DeclareVariable()
1097 if (mode == VariableMode::kVar && !is_declaration_scope()) { in DeclareVariable()
1114 mode == VariableMode::kVar)) { in DeclareVariable()
1120 var = NonLocal(name, VariableMode::kDynamic); in DeclareVariable()
1172 VariableMode mode, bool* was_added, in DeclareVariableName()
1179 if (mode == VariableMode::kVar && !is_declaration_scope()) { in DeclareVariableName()
1213 Variable* result = Declare(zone(), name, VariableMode::kVar, NORMAL_VARIABLE, in DeclareCatchVariableName()
1231 zone(), this, name, VariableMode::kDynamicGlobal, kind, in DeclareDynamicGlobal()
1252 Variable* var = zone()->New<Variable>(scope, name, VariableMode::kTemporary, in NewTemporary()
1269 DCHECK(decl->var()->mode() == VariableMode::kVar || in CheckConflictingVarDeclarations()
1270 decl->var()->mode() == VariableMode::kDynamic); in CheckConflictingVarDeclarations()
1324 VariableMode mode_limit) { in FindVariableDeclaredIn()
1980 if (local->mode() != VariableMode::kTemporary) continue; in Print()
2052 Variable* Scope::NonLocal(const AstRawString* name, VariableMode mode) { in NonLocal()
2091 return cache_scope->NonLocal(proxy->raw_name(), VariableMode::kDynamic); in Lookup()
2127 !(scope->is_eval_scope() && var->mode() == VariableMode::kDynamic)) { in Lookup()
2216 target_scope->NonLocal(proxy->raw_name(), VariableMode::kDynamic); in LookupWith()
2259 var = target->NonLocal(proxy->raw_name(), VariableMode::kDynamicGlobal); in LookupSloppyEval()
2268 var = target->NonLocal(proxy->raw_name(), VariableMode::kDynamicLocal); in LookupSloppyEval()
2289 if (var->mode() == VariableMode::kDynamicLocal) { in UpdateNeedsHoleCheck()
2414 VariableMode mode = var->mode(); in MustAllocateInContext()
2415 if (mode == VariableMode::kTemporary) return false; in MustAllocateInContext()
2516 if (local->mode() != VariableMode::kTemporary) in AllocateNonParameterLocalsAndDeclaredGlobals()
2521 if (local->mode() == VariableMode::kTemporary) in AllocateNonParameterLocalsAndDeclaredGlobals()
2783 bool IsComplementaryAccessorPair(VariableMode a, VariableMode b) { in IsComplementaryAccessorPair()
2785 case VariableMode::kPrivateGetterOnly: in IsComplementaryAccessorPair()
2786 return b == VariableMode::kPrivateSetterOnly; in IsComplementaryAccessorPair()
2787 case VariableMode::kPrivateSetterOnly: in IsComplementaryAccessorPair()
2788 return b == VariableMode::kPrivateGetterOnly; in IsComplementaryAccessorPair()
2833 VariableMode mode, in DeclarePrivateName()
2848 result->set_mode(VariableMode::kPrivateGetterAndSetter); in DeclarePrivateName()
3057 VariableMode::kConst, NORMAL_VARIABLE, in DeclareBrandVariable()
3076 VariableMode::kConst, NORMAL_VARIABLE, in DeclareClassVariable()