/external/v8/src/ast/ |
D | context-slot-cache.h | 22 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> {};
|
D | scopes.cc | 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() [all …]
|
D | variables.h | 21 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> {};
|
D | context-slot-cache.cc | 23 int ContextSlotCache::Lookup(Object* data, String* name, VariableMode* mode, in Lookup() 41 VariableMode mode, InitializationFlag init_flag, in Update() 65 VariableMode mode, in ValidateEntry()
|
D | scopes.h | 36 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,
|
D | variables.cc | 29 return (IsDynamicVariableMode(mode()) || mode() == VariableMode::kVar) && in IsGlobalObjectProperty()
|
D | ast.cc | 845 return proxy->var()->mode() == VariableMode::kDynamic ? WITH_CALL in GetCallType()
|
/external/v8/src/objects/ |
D | scope-info.h | 115 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> {};
|
D | scope-info.cc | 417 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/ |
D | globals.h | 952 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 …]
|
D | contexts.cc | 169 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()
|
D | contexts.h | 370 VariableMode mode; 604 VariableMode* variable_mode,
|
/external/v8/src/parsing/ |
D | parser.cc | 108 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 …]
|
D | preparser.h | 1114 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);
|
D | parser.h | 312 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,
|
D | expression-scope-reparenter.cc | 77 DCHECK(proxy->var()->mode() != VariableMode::kTemporary || in VisitVariableProxy()
|
D | pattern-rewriter.cc | 198 if (descriptor_->mode == VariableMode::kVar && in VisitVariableProxy() 265 if (descriptor_->mode == VariableMode::kVar) { in VisitVariableProxy()
|
D | parser-base.h | 516 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/ |
D | debug-frames.cc | 88 VariableMode mode; in ParameterIsShadowedByContextLocal()
|
D | debug-stack-trace-iterator.cc | 100 VariableMode mode; in GetReceiver()
|
D | debug-scopes.cc | 860 VariableMode mode; in SetContextVariableValue() 874 VariableMode mode; in SetModuleVariableValue()
|
/external/v8/src/runtime/ |
D | runtime-scopes.cc | 229 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/ |
D | bytecode-generator.cc | 1214 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/ |
D | js-heap-broker.cc | 771 lookup_result.mode == VariableMode::kConst, in lookup()
|
/external/v8/src/ic/ |
D | ic.cc | 1350 if (lookup_result.mode == VariableMode::kConst) { in Store() 2341 if (lookup_result.mode == VariableMode::kConst) { in RUNTIME_FUNCTION()
|