/external/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() 190 DCHECK((mode() == VariableMode::kDynamicLocal || in local_if_not_shadowed() 191 mode() == VariableMode::kDynamic) && in local_if_not_shadowed() 234 bit_field_ = VariableModeField::update(bit_field_, VariableMode::kLet); in MakeParameterNonSimple() 239 static InitializationFlag DefaultInitializationFlag(VariableMode mode) { in DefaultInitializationFlag() [all …]
|
D | scopes.cc | 50 const AstRawString* name, VariableMode mode, in Declare() 183 DCHECK_EQ(scope_info->ContextLocalMode(index), VariableMode::kConst); in ClassScope() 243 Declare(zone, catch_variable_name, VariableMode::kVar, NORMAL_VARIABLE, in Scope() 405 DCHECK_EQ(scope_info.ContextLocalMode(0), VariableMode::kVar); in DeserializeScopeChain() 545 declaration, name, pos, VariableMode::kVar, NORMAL_VARIABLE, in HoistSloppyBlockFunctions() 546 Variable::DefaultInitializationFlag(VariableMode::kVar), &was_added, in HoistSloppyBlockFunctions() 560 Variable* var = DeclareVariableName(name, VariableMode::kVar, &was_added); in HoistSloppyBlockFunctions() 626 derived_constructor ? VariableMode::kConst : VariableMode::kVar, in DeclareThis() 641 Declare(zone(), ast_value_factory->arguments_string(), VariableMode::kVar, in DeclareArguments() 658 VariableMode::kConst, NORMAL_VARIABLE, in DeclareDefaultFunctionVariables() [all …]
|
D | variables.cc | 29 return (IsDynamicVariableMode(mode()) || mode() == VariableMode::kVar) && in IsGlobalObjectProperty() 34 return scope()->is_repl_mode_scope() && mode() == VariableMode::kLet; in IsReplGlobalLet() 40 if (mode() == VariableMode::kLet) { in RewriteLocationForRepl()
|
D | scopes.h | 55 VariableMode mode, VariableKind kind, 212 Variable* DeclareLocal(const AstRawString* name, VariableMode mode, 217 int pos, VariableMode mode, VariableKind kind, 223 Variable* DeclareVariableName(const AstRawString* name, VariableMode mode, 277 VariableMode mode_limit); 611 Variable* Declare(Zone* zone, const AstRawString* name, VariableMode mode, 637 Variable* NonLocal(const AstRawString* name, VariableMode mode); 978 Variable* DeclareParameter(const AstRawString* name, VariableMode mode, 1353 Variable* DeclarePrivateName(const AstRawString* name, VariableMode mode,
|
D | ast.h | 1593 case VariableMode::kPrivateMethod: in GetAssignType() 1595 case VariableMode::kConst: in GetAssignType() 1597 case VariableMode::kPrivateGetterOnly: in GetAssignType() 1599 case VariableMode::kPrivateSetterOnly: in GetAssignType() 1601 case VariableMode::kPrivateGetterAndSetter: in GetAssignType()
|
D | ast.cc | 908 return proxy->var()->mode() == VariableMode::kDynamic ? WITH_CALL in GetCallType()
|
/external/v8/src/common/ |
D | globals.h | 1088 enum class VariableMode : uint8_t { enum 1136 inline const char* VariableMode2String(VariableMode mode) { in VariableMode2String() 1138 case VariableMode::kVar: in VariableMode2String() 1140 case VariableMode::kLet: in VariableMode2String() 1142 case VariableMode::kPrivateGetterOnly: in VariableMode2String() 1144 case VariableMode::kPrivateSetterOnly: in VariableMode2String() 1146 case VariableMode::kPrivateMethod: in VariableMode2String() 1148 case VariableMode::kPrivateGetterAndSetter: in VariableMode2String() 1150 case VariableMode::kConst: in VariableMode2String() 1152 case VariableMode::kDynamic: in VariableMode2String() [all …]
|
/external/v8/src/objects/ |
D | scope-info.h | 134 VariableMode ContextLocalMode(int var) const; 158 VariableMode* mode, InitializationFlag* init_flag, 165 int ModuleIndex(String name, VariableMode* mode, 331 int Lookup(Handle<String> name, int start, int end, VariableMode* mode, 339 VariableMode* mode = nullptr, 347 using VariableModeField = base::BitField<VariableMode, 0, 4>;
|
D | contexts.cc | 172 static PropertyAttributes GetAttributesForMode(VariableMode mode) { in GetAttributesForMode() 182 VariableMode* variable_mode, in Lookup() 190 *variable_mode = VariableMode::kVar; in Lookup() 294 VariableMode mode; in Lookup() 338 *variable_mode = VariableMode::kConst; in Lookup() 349 VariableMode mode; in Lookup()
|
D | scope-info.cc | 513 VariableModeField::encode(VariableMode::kConst) | in CreateForBootstrapping() 807 VariableMode ScopeInfo::ContextLocalMode(int var) const { in ContextLocalMode() 864 int ScopeInfo::ModuleIndex(String name, VariableMode* mode, in ModuleIndex() 891 VariableMode* mode, in ContextSlotIndex() 1004 VariableMode* mode, in ModuleVariable()
|
D | contexts.h | 352 VariableMode mode; 630 VariableMode* variable_mode,
|
/external/v8/src/parsing/ |
D | expression-scope.h | 357 VariableDeclarationParsingScope(ParserT* parser, VariableMode mode, in VariableDeclarationParsingScope() 414 VariableMode mode_; 432 VariableMode mode = VariableMode::kVar; in Declare() 774 VariableMode mode = in ValidateAndCreateScope() 775 has_simple_parameter_list_ ? VariableMode::kVar : VariableMode::kLet; in ValidateAndCreateScope()
|
D | parser.h | 310 FunctionLiteral* function, VariableMode mode, 314 Variable* CreatePrivateNameVariable(ClassScope* scope, VariableMode mode, 396 void DeclareUnboundVariable(const AstRawString* name, VariableMode mode, 400 VariableMode mode, int pos); 402 VariableMode mode, Scope* declaration_scope, 406 VariableMode mode, InitializationFlag init, 410 VariableKind kind, VariableMode mode, InitializationFlag init, 888 is_simple ? VariableMode::kVar : VariableMode::kTemporary,
|
D | parser.cc | 61 constructor_args_name, VariableMode::kTemporary, is_optional, is_rest, in DefaultConstructor() 1198 DeclareUnboundVariable(local_name, VariableMode::kConst, in ParseNamedImports() 1320 DeclareUnboundVariable(import_default_binding, VariableMode::kConst, in ParseImportDeclaration() 1335 DeclareUnboundVariable(module_namespace_binding, VariableMode::kConst, in ParseImportDeclaration() 1434 DeclareBoundVariable(local_name, VariableMode::kConst, pos); in ParseExportDefault() 1498 DeclareUnboundVariable(local_name, VariableMode::kConst, kCreatedInitialized, in ParseExportStar() 1637 void Parser::DeclareUnboundVariable(const AstRawString* name, VariableMode mode, in DeclareUnboundVariable() 1648 VariableMode mode, int pos) { in DeclareBoundVariable() 1661 VariableMode mode, Scope* scope, in DeclareAndBindVariable() 1671 VariableMode mode, InitializationFlag init, in DeclareVariable() [all …]
|
D | preparser.h | 1069 VariableMode mode, InitializationFlag init, 1075 VariableMode mode, Scope* scope, bool* was_added, 1084 ClassScope* scope, VariableMode mode, 1091 Variable* DeclareVariableName(const AstRawString* name, VariableMode mode, 1103 DCHECK_EQ(VariableMode::kVar, mode); 1165 const PreParserExpression& function, VariableMode mode, VariableKind kind, 1189 DeclareVariableName(variable_name.string_, VariableMode::kLet, scope(), 1216 VariableMode::kConst, scope, &was_added); 1398 DeclareVariableName(name, VariableMode::kLet, scope(), &was_added);
|
D | parser-base.h | 534 VariableMode mode; 744 VariableMode GetVariableMode(ClassLiteralProperty::Kind kind) { in GetVariableMode() 747 return VariableMode::kConst; in GetVariableMode() 749 return VariableMode::kPrivateMethod; in GetVariableMode() 751 return VariableMode::kPrivateGetterOnly; in GetVariableMode() 753 return VariableMode::kPrivateSetterOnly; in GetVariableMode() 3797 parsing_result->descriptor.mode = VariableMode::kVar; in ParseVariableDeclarations() 3803 parsing_result->descriptor.mode = VariableMode::kConst; in ParseVariableDeclarations() 3808 parsing_result->descriptor.mode = VariableMode::kLet; in ParseVariableDeclarations() 3844 parsing_result->descriptor.mode == VariableMode::kLet) { in ParseVariableDeclarations() [all …]
|
D | preparser.cc | 190 function_scope, VariableMode::kLastLexicalVariableMode); in PreParseFunction()
|
/external/v8/src/debug/ |
D | debug-frames.cc | 79 VariableMode mode; in ParameterIsShadowedByContextLocal()
|
D | debug-stack-trace-iterator.cc | 107 VariableMode mode; in GetReceiver()
|
D | debug-scopes.cc | 1053 VariableMode mode; in SetContextVariableValue() 1070 VariableMode mode; in SetModuleVariableValue()
|
/external/v8/src/runtime/ |
D | runtime-scopes.cc | 250 VariableMode mode; in DeclareEvalHelper() 634 VariableMode mode; in RUNTIME_FUNCTION() 671 VariableMode mode; in LoadLookupSlot() 772 VariableMode mode; in StoreLookupSlot()
|
/external/v8/src/execution/ |
D | execution.cc | 183 VariableMode mode = scope_info->ContextLocalMode(var); in NewScriptContext() 190 if (!(mode == VariableMode::kLet && lookup.mode == VariableMode::kLet && in NewScriptContext()
|
/external/v8/src/interpreter/ |
D | bytecode-generator.cc | 1487 DCHECK_EQ(VariableMode::kDynamic, variable->mode()); in VisitVariableDeclaration() 1503 DCHECK(variable->mode() == VariableMode::kLet || in VisitFunctionDeclaration() 1504 variable->mode() == VariableMode::kVar || in VisitFunctionDeclaration() 1505 variable->mode() == VariableMode::kDynamic); in VisitFunctionDeclaration() 3156 case VariableMode::kDynamicLocal: { in BuildVariableLoad() 3167 case VariableMode::kDynamicGlobal: { in BuildVariableLoad() 3251 DCHECK(variable->mode() == VariableMode::kConst); in BuildThrowIfHole() 3261 if (variable->is_this() && variable->mode() == VariableMode::kConst && in BuildHoleCheckForVariableAssignment() 3278 VariableMode mode = variable->mode(); in BuildVariableAssignment() 3306 if (mode != VariableMode::kConst || op == Token::INIT) { in BuildVariableAssignment() [all …]
|
/external/v8/src/ic/ |
D | ic.cc | 522 lookup_result.mode == VariableMode::kConst)) { in Load() 1513 if (lookup_result.mode == VariableMode::kConst) { in Store() 1534 lookup_result.mode == VariableMode::kConst)) { in Store() 2569 if (lookup_result.mode == VariableMode::kConst) { in RUNTIME_FUNCTION()
|
/external/v8/src/api/ |
D | api.cc | 9429 i::VariableMode mode = scope_info->ContextLocalMode(j); in CollectPrivateMethodsAndAccessorsFromContext() 9439 DCHECK_IMPLIES(mode == i::VariableMode::kPrivateMethod, in CollectPrivateMethodsAndAccessorsFromContext() 9441 DCHECK_IMPLIES(mode != i::VariableMode::kPrivateMethod, in CollectPrivateMethodsAndAccessorsFromContext() 9501 i::VariableMode mode = scope_info->ContextLocalMode(j); in GetPrivateMembers()
|