• Home
  • Raw
  • Download

Lines Matching refs:VariableMode

50                                const AstRawString* name, VariableMode mode,  in Declare()
72 VariableMode mode) { in DeclareName()
79 p->value = mode == VariableMode::kVar ? kDummyPreParserVariable in DeclareName()
300 Declare(zone, catch_variable_name, VariableMode::kVar, NORMAL_VARIABLE, in Scope()
451 DCHECK_EQ(scope_info->ContextLocalMode(0), VariableMode::kVar); in DeserializeScopeChain()
618 DeclareVariable(declaration, VariableMode::kVar, in HoistSloppyBlockFunctions()
619 Variable::DefaultInitializationFlag(VariableMode::kVar), in HoistSloppyBlockFunctions()
624 Variable* var = DeclareVariableName(name, VariableMode::kVar); in HoistSloppyBlockFunctions()
717 derived_constructor ? VariableMode::kConst : VariableMode::kVar, in DeclareThis()
733 VariableMode::kVar); in DeclareArguments()
748 VariableMode::kConst); in DeclareDefaultFunctionVariables()
754 VariableMode::kConst); in DeclareDefaultFunctionVariables()
765 Variable(this, name, VariableMode::kConst, kind, kCreatedInitialized); in DeclareFunctionVar()
767 NonLocal(name, VariableMode::kDynamic); in DeclareFunctionVar()
874 VariableMode mode, VariableKind kind, in Declare()
931 DCHECK(local->mode() == VariableMode::kTemporary || in Reparent()
932 local->mode() == VariableMode::kVar); in Reparent()
936 if (local->mode() == VariableMode::kVar) { in Reparent()
972 VariableMode mode; in LookupInScopeInfo()
994 DCHECK_EQ(VariableMode::kConst, var->mode()); in LookupInScopeInfo()
1022 const AstRawString* name, VariableMode mode, bool is_optional, bool is_rest, in DeclareParameter()
1031 if (mode == VariableMode::kTemporary) { in DeclareParameter()
1034 DCHECK_EQ(mode, VariableMode::kVar); in DeclareParameter()
1064 var = Declare(zone(), name, VariableMode::kVar); in DeclareParameterName()
1066 var = new (zone()) Variable(this, name, VariableMode::kTemporary, in DeclareParameterName()
1074 DeclareVariableName(name, VariableMode::kVar); in DeclareParameterName()
1078 Variable* Scope::DeclareLocal(const AstRawString* name, VariableMode mode, in DeclareLocal()
1088 mode == VariableMode::kVar || mode == VariableMode::kLet || in DeclareLocal()
1089 mode == VariableMode::kConst); in DeclareLocal()
1095 Declaration* declaration, VariableMode mode, InitializationFlag init, in DeclareVariable()
1102 if (mode == VariableMode::kVar && !is_declaration_scope()) { in DeclareVariable()
1125 if (mode != VariableMode::kConst) proxy->set_is_assigned(); in DeclareVariable()
1130 mode == VariableMode::kVar) { in DeclareVariable()
1191 } else if (mode == VariableMode::kVar) { in DeclareVariable()
1212 VariableMode mode) { in DeclareVariableName()
1217 if (mode == VariableMode::kVar && !is_declaration_scope()) { in DeclareVariableName()
1238 } else if (mode == VariableMode::kVar) { in DeclareVariableName()
1255 Declare(zone(), name, VariableMode::kVar); in DeclareCatchVariableName()
1257 variables_.DeclareName(zone(), name, VariableMode::kVar); in DeclareCatchVariableName()
1271 return variables_.Declare(zone(), this, name, VariableMode::kDynamicGlobal, in DeclareDynamicGlobal()
1302 Variable* var = new (zone()) Variable(scope, name, VariableMode::kTemporary, in NewTemporary()
1311 VariableMode mode = decl->proxy()->var()->mode(); in CheckConflictingVarDeclarations()
1320 DCHECK_EQ(mode, VariableMode::kVar); in CheckConflictingVarDeclarations()
1777 if (local->mode() != VariableMode::kTemporary) continue; in Print()
1828 Variable* Scope::NonLocal(const AstRawString* name, VariableMode mode) { in NonLocal()
1848 return NonLocal(proxy->raw_name(), VariableMode::kDynamic); in LookupRecursive()
1911 return NonLocal(proxy->raw_name(), VariableMode::kDynamic); in LookupRecursive()
1923 return NonLocal(proxy->raw_name(), VariableMode::kDynamicGlobal); in LookupRecursive()
1929 var = NonLocal(proxy->raw_name(), VariableMode::kDynamicLocal); in LookupRecursive()
1956 if (var->mode() == VariableMode::kDynamicLocal) { in UpdateNeedsHoleCheck()
2155 if (var->mode() == VariableMode::kTemporary) return false; in MustAllocateInContext()