Home
last modified time | relevance | path

Searched refs:VariableMode (Results 1 – 25 of 26) sorted by relevance

12

/external/v8/src/ast/
Dcontext-slot-cache.h22 int Lookup(Object* data, String* name, VariableMode* mode,
27 void Update(Handle<Object> data, Handle<String> name, VariableMode mode,
49 VariableMode mode, InitializationFlag init_flag,
60 Value(VariableMode mode, InitializationFlag init_flag, in Value()
79 VariableMode mode() { return ModeField::decode(value_); } in mode()
93 class ModeField : public BitField<VariableMode, 0, 4> {};
Dscopes.cc50 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()
[all …]
Dvariables.h21 Variable(Scope* scope, const AstRawString* name, VariableMode mode,
39 DCHECK(!(mode == VariableMode::kVar && in scope_()
57 VariableMode mode() const { return VariableModeField::decode(bit_field_); } in mode()
141 DCHECK(mode() == VariableMode::kDynamicLocal && in local_if_not_shadowed()
178 static InitializationFlag DefaultInitializationFlag(VariableMode mode) { in DefaultInitializationFlag()
180 return mode == VariableMode::kVar ? kCreatedInitialized in DefaultInitializationFlag()
200 class VariableModeField : public BitField16<VariableMode, 0, 3> {};
Dcontext-slot-cache.cc23 int ContextSlotCache::Lookup(Object* data, String* name, VariableMode* mode, in Lookup()
41 VariableMode mode, InitializationFlag init_flag, in Update()
65 VariableMode mode, in ValidateEntry()
Dscopes.h36 Zone* zone, Scope* scope, const AstRawString* name, VariableMode mode,
45 VariableMode mode);
191 Variable* DeclareLocal(const AstRawString* name, VariableMode mode, in NON_EXPORTED_BASE()
196 Variable* DeclareVariable(Declaration* declaration, VariableMode mode, in NON_EXPORTED_BASE()
202 Variable* DeclareVariableName(const AstRawString* name, VariableMode mode); in NON_EXPORTED_BASE()
492 Zone* zone, const AstRawString* name, VariableMode mode, in NON_EXPORTED_BASE()
583 Variable* NonLocal(const AstRawString* name, VariableMode mode); in NON_EXPORTED_BASE()
724 Variable* DeclareParameter(const AstRawString* name, VariableMode mode,
Dvariables.cc29 return (IsDynamicVariableMode(mode()) || mode() == VariableMode::kVar) && in IsGlobalObjectProperty()
Dast.cc845 return proxy->var()->mode() == VariableMode::kDynamic ? WITH_CALL in GetCallType()
/external/v8/src/objects/
Dscope-info.h115 VariableMode ContextLocalMode(int var) const;
136 VariableMode* mode, InitializationFlag* init_flag,
142 int ModuleIndex(Handle<String> name, VariableMode* mode,
257 int Lookup(Handle<String> name, int start, int end, VariableMode* mode,
265 VariableMode* mode = nullptr,
310 class VariableModeField : public BitField<VariableMode, 0, 3> {};
Dscope-info.cc417 VariableModeField::encode(VariableMode::kConst) | in CreateForBootstrapping()
631 VariableMode ScopeInfo::ContextLocalMode(int var) const { in ContextLocalMode()
680 int ScopeInfo::ModuleIndex(Handle<String> name, VariableMode* mode, in ModuleIndex()
706 Handle<String> name, VariableMode* mode, in ContextSlotIndex()
753 context_slot_cache->Update(scope_info, name, VariableMode::kTemporary, in ContextSlotIndex()
824 VariableMode* mode, in ModuleVariable()
/external/v8/src/
Dglobals.h952 enum class VariableMode : uint8_t { enum
979 inline const char* VariableMode2String(VariableMode mode) { in VariableMode2String()
981 case VariableMode::kVar: in VariableMode2String()
983 case VariableMode::kLet: in VariableMode2String()
985 case VariableMode::kConst: in VariableMode2String()
987 case VariableMode::kDynamic: in VariableMode2String()
989 case VariableMode::kDynamicGlobal: in VariableMode2String()
991 case VariableMode::kDynamicLocal: in VariableMode2String()
993 case VariableMode::kTemporary: in VariableMode2String()
1007 inline bool IsDynamicVariableMode(VariableMode mode) { in IsDynamicVariableMode()
[all …]
Dcontexts.cc169 static PropertyAttributes GetAttributesForMode(VariableMode mode) { in GetAttributesForMode()
171 return mode == VariableMode::kConst ? READ_ONLY : NONE; in GetAttributesForMode()
177 VariableMode* variable_mode, in Lookup()
187 *variable_mode = VariableMode::kVar; in Lookup()
293 VariableMode mode; in Lookup()
325 *variable_mode = VariableMode::kConst; in Lookup()
336 VariableMode mode; in Lookup()
Dcontexts.h370 VariableMode mode;
604 VariableMode* variable_mode,
/external/v8/src/parsing/
Dparser.cc108 constructor_args_name, VariableMode::kTemporary, is_optional, is_rest, in DefaultConstructor()
574 auto var = scope->DeclareParameter(name, VariableMode::kVar, is_optional, in DoParseProgram()
1035 DeclareVariable(local_name, VariableMode::kConst, kNeedsInitialization, in ParseNamedImports()
1087 DeclareVariable(import_default_binding, VariableMode::kConst, in ParseImportDeclaration()
1103 DeclareVariable(module_namespace_binding, VariableMode::kConst, in ParseImportDeclaration()
1203 DeclareVariable(local_name, VariableMode::kConst, pos, CHECK_OK); in ParseExportDefault()
1346 VariableMode mode, int pos, bool* ok) { in DeclareVariable()
1352 VariableMode mode, InitializationFlag init, in DeclareVariable()
1358 if (mode == VariableMode::kVar && !scope()->is_declaration_scope()) { in DeclareVariable()
1372 VariableMode mode, InitializationFlag init, bool* ok, in Declare()
[all …]
Dpreparser.h1114 VariableMode::kLet);
1174 const PreParserExpression& function, VariableMode mode,
1197 scope()->DeclareVariableName(variable_name.string_, VariableMode::kLet);
1206 scope()->DeclareVariableName(name.string_, VariableMode::kConst);
1220 VariableMode::kConst);
1226 scope()->DeclareVariableName(property_name.string_, VariableMode::kConst);
1430 for_info->parsing_result.descriptor.mode == VariableMode::kVar;
1447 scope()->DeclareVariableName(name, VariableMode::kLet);
1718 VariableMode::kVar);
Dparser.h312 FunctionLiteral* function, VariableMode mode,
423 VariableMode mode, InitializationFlag init, bool* ok,
426 Declaration* DeclareVariable(const AstRawString* name, VariableMode mode,
428 Declaration* DeclareVariable(const AstRawString* name, VariableMode mode,
937 is_simple ? VariableMode::kVar : VariableMode::kTemporary,
Dexpression-scope-reparenter.cc77 DCHECK(proxy->var()->mode() != VariableMode::kTemporary || in VisitVariableProxy()
Dpattern-rewriter.cc198 if (descriptor_->mode == VariableMode::kVar && in VisitVariableProxy()
265 if (descriptor_->mode == VariableMode::kVar) { in VisitVariableProxy()
Dparser-base.h516 VariableMode mode;
3888 parsing_result->descriptor.mode = VariableMode::kVar; in ParseVariableDeclarations()
3894 parsing_result->descriptor.mode = VariableMode::kConst; in ParseVariableDeclarations()
3899 parsing_result->descriptor.mode = VariableMode::kLet; in ParseVariableDeclarations()
3964 if (parsing_result->descriptor.mode == VariableMode::kConst || in ParseVariableDeclarations()
3974 if (parsing_result->descriptor.mode == VariableMode::kLet) { in ParseVariableDeclarations()
4089 VariableMode mode = in ParseHoistableDeclaration()
4091 ? VariableMode::kLet in ParseHoistableDeclaration()
4092 : VariableMode::kVar; in ParseHoistableDeclaration()
5765 DCHECK_EQ(for_info.parsing_result.descriptor.mode, VariableMode::kVar); in ParseForStatement()
/external/v8/src/debug/
Ddebug-frames.cc88 VariableMode mode; in ParameterIsShadowedByContextLocal()
Ddebug-stack-trace-iterator.cc100 VariableMode mode; in GetReceiver()
Ddebug-scopes.cc860 VariableMode mode; in SetContextVariableValue()
874 VariableMode mode; in SetModuleVariableValue()
/external/v8/src/runtime/
Druntime-scopes.cc229 VariableMode mode; in DeclareEvalHelper()
634 VariableMode mode = scope_info->ContextLocalMode(var); in FindNameClash()
764 VariableMode mode; in RUNTIME_FUNCTION()
800 VariableMode mode; in LoadLookupSlot()
899 VariableMode mode; in StoreLookupSlot()
/external/v8/src/interpreter/
Dbytecode-generator.cc1214 DCHECK_EQ(VariableMode::kVar, variable->mode()); in VisitVariableDeclaration()
1237 DCHECK(variable->mode() == VariableMode::kLet || in VisitFunctionDeclaration()
1238 variable->mode() == VariableMode::kVar); in VisitFunctionDeclaration()
1273 DCHECK_EQ(variable->mode(), VariableMode::kLet); in VisitFunctionDeclaration()
2603 case VariableMode::kDynamicLocal: { in BuildVariableLoad()
2614 case VariableMode::kDynamicGlobal: { in BuildVariableLoad()
2693 DCHECK(variable->mode() == VariableMode::kConst); in BuildThrowIfHole()
2702 if (variable->is_this() && variable->mode() == VariableMode::kConst && in BuildHoleCheckForVariableAssignment()
2719 VariableMode mode = variable->mode(); in BuildVariableAssignment()
2747 if (mode != VariableMode::kConst || op == Token::INIT) { in BuildVariableAssignment()
[all …]
/external/v8/src/compiler/
Djs-heap-broker.cc771 lookup_result.mode == VariableMode::kConst, in lookup()
/external/v8/src/ic/
Dic.cc1350 if (lookup_result.mode == VariableMode::kConst) { in Store()
2341 if (lookup_result.mode == VariableMode::kConst) { in RUNTIME_FUNCTION()

12