/third_party/node/deps/v8/src/ast/ |
D | variables.h | 23 Variable(Scope* scope, const AstRawString* name, VariableMode mode, 43 DCHECK(!(mode == VariableMode::kVar && in scope_() 63 VariableMode mode() const { return VariableModeField::decode(bit_field_); } in mode() 64 void set_mode(VariableMode mode) { in set_mode() 92 if (mode() == VariableMode::kConst) return; in SetMaybeAssigned() 105 DCHECK_IMPLIES(local_if_not_shadowed()->mode() != VariableMode::kConst, in SetMaybeAssigned() 191 DCHECK((mode() == VariableMode::kDynamicLocal || in local_if_not_shadowed() 192 mode() == VariableMode::kDynamic) && in local_if_not_shadowed() 235 bit_field_ = VariableModeField::update(bit_field_, VariableMode::kLet); in MakeParameterNonSimple() 240 static InitializationFlag DefaultInitializationFlag(VariableMode mode) { in DefaultInitializationFlag() [all …]
|
D | variables.cc | 29 return (IsDynamicVariableMode(mode()) || mode() == VariableMode::kVar) && in IsGlobalObjectProperty() 35 (mode() == VariableMode::kLet || mode() == VariableMode::kConst); in IsReplGlobal() 41 if (mode() == VariableMode::kLet || mode() == VariableMode::kConst) { in RewriteLocationForRepl()
|
D | scopes.cc | 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() [all …]
|
D | scopes.h | 67 VariableMode mode, VariableKind kind, 204 Variable* DeclareLocal(const AstRawString* name, VariableMode mode, 209 int pos, VariableMode mode, VariableKind kind, 215 Variable* DeclareVariableName(const AstRawString* name, VariableMode mode, 272 VariableMode mode_limit); 650 Variable* Declare(Zone* zone, const AstRawString* name, VariableMode mode, 676 Variable* NonLocal(const AstRawString* name, VariableMode mode); 1021 Variable* DeclareParameter(const AstRawString* name, VariableMode mode, 1419 Variable* DeclarePrivateName(const AstRawString* name, VariableMode mode,
|
D | ast.h | 1636 case VariableMode::kPrivateMethod: in GetAssignType() 1638 case VariableMode::kConst: in GetAssignType() 1640 case VariableMode::kPrivateGetterOnly: in GetAssignType() 1642 case VariableMode::kPrivateSetterOnly: in GetAssignType() 1644 case VariableMode::kPrivateGetterAndSetter: in GetAssignType()
|
D | ast.cc | 954 return proxy->var()->mode() == VariableMode::kDynamic ? WITH_CALL in GetCallType()
|
/third_party/node/deps/v8/src/common/ |
D | globals.h | 1230 enum class VariableMode : uint8_t { enum 1278 inline const char* VariableMode2String(VariableMode mode) { in VariableMode2String() 1280 case VariableMode::kVar: in VariableMode2String() 1282 case VariableMode::kLet: in VariableMode2String() 1284 case VariableMode::kPrivateGetterOnly: in VariableMode2String() 1286 case VariableMode::kPrivateSetterOnly: in VariableMode2String() 1288 case VariableMode::kPrivateMethod: in VariableMode2String() 1290 case VariableMode::kPrivateGetterAndSetter: in VariableMode2String() 1292 case VariableMode::kConst: in VariableMode2String() 1294 case VariableMode::kDynamic: in VariableMode2String() [all …]
|
/third_party/node/deps/v8/src/objects/ |
D | scope-info.h | 44 VariableMode mode; 167 VariableMode ContextLocalMode(int var) const; 197 int ModuleIndex(String name, VariableMode* mode, 360 int Lookup(Handle<String> name, int start, int end, VariableMode* mode, 368 VariableMode* mode = nullptr,
|
D | contexts.cc | 191 static PropertyAttributes GetAttributesForMode(VariableMode mode) { in GetAttributesForMode() 201 VariableMode* variable_mode, in Lookup() 209 *variable_mode = VariableMode::kVar; in Lookup() 353 *variable_mode = VariableMode::kConst; in Lookup() 364 VariableMode mode; in Lookup()
|
D | scope-info.tq | 30 extern enum VariableMode extends uint32 { 94 variable_mode: VariableMode: 4 bit;
|
D | scope-info.cc | 541 VariableModeBits::encode(VariableMode::kConst) | in CreateForBootstrapping() 870 VariableMode ScopeInfo::ContextLocalMode(int var) const { in ContextLocalMode() 916 int ScopeInfo::ModuleIndex(String name, VariableMode* mode, in ModuleIndex() 1078 VariableMode* mode, in ModuleVariable()
|
D | contexts.h | 673 VariableMode* variable_mode,
|
/third_party/node/deps/v8/src/parsing/ |
D | expression-scope.h | 358 VariableDeclarationParsingScope(ParserT* parser, VariableMode mode, in VariableDeclarationParsingScope() 420 VariableMode mode_; 441 VariableMode mode = VariableMode::kVar; in Declare() 789 VariableMode mode = in ValidateAndCreateScope() 790 has_simple_parameter_list_ ? VariableMode::kVar : VariableMode::kLet; in ValidateAndCreateScope()
|
D | parser.h | 328 FunctionLiteral* function, VariableMode mode, 332 Variable* CreatePrivateNameVariable(ClassScope* scope, VariableMode mode, 415 void DeclareUnboundVariable(const AstRawString* name, VariableMode mode, 419 VariableMode mode, int pos); 421 VariableMode mode, Scope* declaration_scope, 425 VariableMode mode, InitializationFlag init, 429 VariableKind kind, VariableMode mode, InitializationFlag init, 897 is_simple ? VariableMode::kVar : VariableMode::kTemporary,
|
D | preparser.h | 1066 VariableMode mode, InitializationFlag init, 1072 VariableMode mode, Scope* scope, bool* was_added, 1081 ClassScope* scope, VariableMode mode, 1088 Variable* DeclareVariableName(const AstRawString* name, VariableMode mode, 1100 DCHECK_EQ(VariableMode::kVar, mode); 1162 const PreParserExpression& function, VariableMode mode, VariableKind kind, 1186 DeclareVariableName(variable_name.string_, VariableMode::kLet, scope(), 1213 VariableMode::kConst, scope, &was_added); 1408 DeclareVariableName(name, VariableMode::kLet, scope(), &was_added);
|
D | parser.cc | 63 constructor_args_name, VariableMode::kTemporary, is_optional, is_rest, in DefaultConstructor() 1331 DeclareUnboundVariable(local_name, VariableMode::kConst, in ParseNamedImports() 1456 DeclareUnboundVariable(import_default_binding, VariableMode::kConst, in ParseImportDeclaration() 1471 DeclareUnboundVariable(module_namespace_binding, VariableMode::kConst, in ParseImportDeclaration() 1570 DeclareBoundVariable(local_name, VariableMode::kConst, pos); in ParseExportDefault() 1634 DeclareUnboundVariable(local_name, VariableMode::kConst, kCreatedInitialized, in ParseExportStar() 1773 void Parser::DeclareUnboundVariable(const AstRawString* name, VariableMode mode, in DeclareUnboundVariable() 1784 VariableMode mode, int pos) { in DeclareBoundVariable() 1797 VariableMode mode, Scope* scope, in DeclareAndBindVariable() 1807 VariableMode mode, InitializationFlag init, in DeclareVariable() [all …]
|
D | parser-base.h | 538 VariableMode mode; 750 VariableMode GetVariableMode(ClassLiteralProperty::Kind kind) { in GetVariableMode() 753 return VariableMode::kConst; in GetVariableMode() 755 return VariableMode::kPrivateMethod; in GetVariableMode() 757 return VariableMode::kPrivateGetterOnly; in GetVariableMode() 759 return VariableMode::kPrivateSetterOnly; in GetVariableMode() 3970 parsing_result->descriptor.mode = VariableMode::kVar; in ParseVariableDeclarations() 3976 parsing_result->descriptor.mode = VariableMode::kConst; in ParseVariableDeclarations() 3981 parsing_result->descriptor.mode = VariableMode::kLet; in ParseVariableDeclarations() 4017 parsing_result->descriptor.mode == VariableMode::kLet) { in ParseVariableDeclarations() [all …]
|
D | preparser.cc | 191 function_scope, VariableMode::kLastLexicalVariableMode); in PreParseFunction()
|
/third_party/node/deps/v8/src/execution/ |
D | execution.cc | 213 VariableMode mode = scope_info->ContextLocalMode(it->index()); in NewScriptContext() 221 if (!(((mode == VariableMode::kLet && in NewScriptContext() 222 lookup.mode == VariableMode::kLet) || in NewScriptContext() 223 (mode == VariableMode::kConst && in NewScriptContext() 224 lookup.mode == VariableMode::kConst)) && in NewScriptContext()
|
/third_party/node/deps/v8/src/runtime/ |
D | runtime-scopes.cc | 253 VariableMode mode; in DeclareEvalHelper() 633 VariableMode mode; in RUNTIME_FUNCTION() 670 VariableMode mode; in LoadLookupSlot() 770 VariableMode mode; in StoreLookupSlot()
|
/third_party/node/deps/v8/src/interpreter/ |
D | bytecode-generator.cc | 1570 DCHECK_EQ(VariableMode::kDynamic, variable->mode()); in VisitVariableDeclaration() 1586 DCHECK(variable->mode() == VariableMode::kLet || in VisitFunctionDeclaration() 1587 variable->mode() == VariableMode::kVar || in VisitFunctionDeclaration() 1588 variable->mode() == VariableMode::kDynamic); in VisitFunctionDeclaration() 3589 case VariableMode::kDynamicLocal: { in BuildVariableLoad() 3600 case VariableMode::kDynamicGlobal: { in BuildVariableLoad() 3682 DCHECK(variable->mode() == VariableMode::kConst); in BuildThrowIfHole() 3692 if (variable->is_this() && variable->mode() == VariableMode::kConst && in BuildHoleCheckForVariableAssignment() 3709 VariableMode mode = variable->mode(); in BuildVariableAssignment() 3737 if (mode != VariableMode::kConst || op == Token::INIT) { in BuildVariableAssignment() [all …]
|
/third_party/node/deps/v8/src/debug/ |
D | debug-interface.cc | 163 i::VariableMode mode = scope_info->ContextLocalMode(it->index()); in CollectPrivateMethodsAndAccessorsFromContext() 171 DCHECK_IMPLIES(mode == i::VariableMode::kPrivateMethod, in CollectPrivateMethodsAndAccessorsFromContext() 173 DCHECK_IMPLIES(mode != i::VariableMode::kPrivateMethod, in CollectPrivateMethodsAndAccessorsFromContext() 234 i::VariableMode mode = scope_info->ContextLocalMode(j); in GetPrivateMembers()
|
D | debug-scopes.cc | 1076 VariableMode mode; in SetModuleVariableValue()
|
/third_party/node/deps/v8/src/ic/ |
D | ic.cc | 557 (lookup_result.mode == VariableMode::kConst && in Load() 1700 if (lookup_result.mode == VariableMode::kConst) { in Store() 1721 lookup_result.mode == VariableMode::kConst)) { in Store() 2971 if (lookup_result.mode == VariableMode::kConst) { in RUNTIME_FUNCTION()
|
/third_party/node/deps/v8/src/web-snapshot/ |
D | web-snapshot.cc | 1652 ScopeInfo::VariableModeBits::encode(VariableMode::kLet) | in DeserializeContexts()
|