/external/v8/src/objects/ |
D | scope-info.cc | 176 ScopeInfo scope_info = *scope_info_handle; in Create() local 177 WriteBarrierMode mode = scope_info.GetWriteBarrierMode(no_gc); in Create() 219 scope_info.SetFlags(flags); in Create() 221 scope_info.SetParameterCount(parameter_count); in Create() 222 scope_info.SetContextLocalCount(context_local_count); in Create() 228 int module_var_entry = scope_info.ModuleVariablesIndex(); in Create() 245 scope_info.set(context_local_base + local_index, *var->name(), mode); in Create() 246 scope_info.set(context_local_info_base + local_index, in Create() 251 scope_info.set(module_var_entry + kModuleVariableNameOffset, in Create() 253 scope_info.set(module_var_entry + kModuleVariableIndexOffset, in Create() [all …]
|
D | contexts.cc | 41 ScopeInfo scope_info = this->scope_info(); in Initialize() local 42 int header = scope_info.ContextHeaderLength(); in Initialize() 43 for (int var = 0; var < scope_info.ContextLocalCount(); var++) { in Initialize() 44 if (scope_info.ContextLocalInitFlag(var) == kNeedsInitialization) { in Initialize() 59 context.scope_info(), name, &result->mode, &result->init_flag, in Lookup() 77 return scope_info().language_mode() == LanguageMode::kStrict; in is_declaration_context() 80 return scope_info().is_declaration_scope(); in is_declaration_context() 117 ScopeInfo Context::scope_info() { in scope_info() function in v8::internal::Context 293 ScopeInfo scope_info = context->scope_info(); in Lookup() local 299 ScopeInfo::ContextSlotIndex(scope_info, *name, &mode, &flag, in Lookup() [all …]
|
D | shared-function-info-inl.h | 158 return scope_info().is_script_scope() && in is_script() 164 return is_script() && scope_info().ContextLocalCount() > 0; in needs_script_context() 335 ScopeInfo SharedFunctionInfo::scope_info() const { in scope_info() function 343 void SharedFunctionInfo::SetScopeInfo(ScopeInfo scope_info, in SetScopeInfo() argument 352 scope_info.SetFunctionName(name); in SetScopeInfo() 354 scope_info.SetInferredFunctionName(inferred_name()); in SetScopeInfo() 356 set_name_or_scope_info(scope_info, kReleaseStore, mode); in SetScopeInfo() 359 void SharedFunctionInfo::set_raw_scope_info(ScopeInfo scope_info, in set_raw_scope_info() argument 361 WRITE_FIELD(*this, kNameOrScopeInfoOffset, scope_info); in set_raw_scope_info() 362 CONDITIONAL_WRITE_BARRIER(*this, kNameOrScopeInfoOffset, scope_info, mode); in set_raw_scope_info() [all …]
|
D | contexts-inl.h | 86 void Context::set_scope_info(ScopeInfo scope_info) { in set_scope_info() argument 87 set(SCOPE_INFO_INDEX, scope_info); in set_scope_info() 121 return scope_info().HasContextExtensionSlot() && !extension().IsUndefined(); in has_extension() 125 DCHECK(scope_info().HasContextExtensionSlot()); in extension() 130 DCHECK(scope_info().HasContextExtensionSlot()); in set_extension()
|
D | shared-function-info.h | 220 DECL_GETTER(scope_info, ScopeInfo) 223 inline void set_raw_scope_info(ScopeInfo scope_info, 226 inline void SetScopeInfo(ScopeInfo scope_info,
|
D | shared-function-info.cc | 270 if (scope_info().HasOuterScopeInfo()) { in DiscardCompiledMetadata() 271 outer_scope_info = scope_info().OuterScopeInfo(); in DiscardCompiledMetadata() 486 shared_info->set_outer_scope_info(*outer_scope->scope_info()); in InitFromFunctionLiteral()
|
D | module-inl.h | 56 : GetSharedFunctionInfo().scope_info().ModuleDescriptorInfo(); in info()
|
D | scope-info.h | 157 static int ContextSlotIndex(ScopeInfo scope_info, String name,
|
D | source-text-module.cc | 376 DCHECK_EQ(MODULE_SCOPE, function->shared().scope_info().scope_type()); in RunInitializationCode() 379 Handle<ScopeInfo> scope_info(function->shared().scope_info(), isolate); in RunInitializationCode() local 381 module, isolate->native_context(), scope_info); in RunInitializationCode()
|
/external/v8/src/debug/ |
D | debug-scopes.cc | 51 ScopeInfo closure_info = context_->closure_context().scope_info(); in GetFunctionDebugName() 202 Handle<ScopeInfo> scope_info(shared_info->scope_info(), isolate_); in TryParseAndRetrieveScopes() local 244 (scope_info->scope_type() == FUNCTION_SCOPE && in TryParseAndRetrieveScopes() 251 if (scope_info->scope_type() == EVAL_SCOPE || script->is_wrapped()) { in TryParseAndRetrieveScopes() 254 maybe_outer_scope = handle(context_->scope_info(), isolate_); in TryParseAndRetrieveScopes() 259 } else if (scope_info->scope_type() == MODULE_SCOPE) { in TryParseAndRetrieveScopes() 262 DCHECK(scope_info->scope_type() == SCRIPT_SCOPE || in TryParseAndRetrieveScopes() 263 scope_info->scope_type() == FUNCTION_SCOPE); in TryParseAndRetrieveScopes() 287 closure_scope_ = scope_info->scope_type() == FUNCTION_SCOPE in TryParseAndRetrieveScopes() 361 return context_->closure_context().scope_info().StartPosition(); in start_position() [all …]
|
D | debug-evaluate.cc | 121 Handle<ScopeInfo> scope_info = in WebAssembly() local 124 isolate->native_context(), scope_info, context_extension); in WebAssembly() 166 Handle<ScopeInfo> scope_info = in WithTopmostArguments() local 168 scope_info->SetIsDebugEvaluateScope(); in WithTopmostArguments() 170 factory->NewDebugEvaluateContext(native_context, scope_info, materialized, in WithTopmostArguments() 258 Handle<ScopeInfo> scope_info = in ContextBuilder() local 261 : handle(evaluation_context_->scope_info(), isolate); in ContextBuilder() 265 scope_info = ScopeInfo::CreateForWithScope(isolate, scope_info); in ContextBuilder() 266 scope_info->SetIsDebugEvaluateScope(); in ContextBuilder() 268 evaluation_context_, scope_info, element.materialized_object, in ContextBuilder()
|
D | debug-scopes.h | 168 bool VisitContextLocals(const Visitor& visitor, Handle<ScopeInfo> scope_info,
|
/external/v8/src/ast/ |
D | scopes.cc | 149 ModuleScope::ModuleScope(Isolate* isolate, Handle<ScopeInfo> scope_info, in ModuleScope() argument 151 : DeclarationScope(avfactory->zone(), MODULE_SCOPE, scope_info), in ModuleScope() 165 Handle<ScopeInfo> scope_info) in ClassScope() argument 166 : Scope(zone, CLASS_SCOPE, scope_info), in ClassScope() 169 if (scope_info->HasClassBrand()) { in ClassScope() 178 if (scope_info->HasSavedClassVariableIndex()) { in ClassScope() 179 int index = scope_info->SavedClassVariableContextLocalIndex(); in ClassScope() 181 DCHECK_LT(index, scope_info->ContextLocalCount()); in ClassScope() 182 String name = scope_info->ContextLocalName(index); in ClassScope() 183 DCHECK_EQ(scope_info->ContextLocalMode(index), VariableMode::kConst); in ClassScope() [all …]
|
D | scopes.h | 167 ScopeInfo scope_info, 536 Handle<ScopeInfo> scope_info() const { 694 Scope(Zone* zone, ScopeType type, Handle<ScopeInfo> scope_info); 698 MaybeAssignedFlag maybe_assigned, Handle<ScopeInfo> scope_info); 818 Handle<ScopeInfo> scope_info); 938 void SetScriptScopeInfo(Handle<ScopeInfo> scope_info) { 941 scope_info_ = scope_info; 1319 ModuleScope(Isolate* isolate, Handle<ScopeInfo> scope_info, 1338 Handle<ScopeInfo> scope_info);
|
/external/v8/src/runtime/ |
D | runtime-scopes.cc | 242 context->scope_info().is_declaration_scope())); in DeclareEvalHelper() 301 context->scope_info().is_declaration_scope()) || in DeclareEvalHelper() 439 Handle<ScopeInfo> scope_info(callee->shared().scope_info(), isolate); in NewSloppyArguments() local 451 for (int i = 0; i < scope_info->ContextLocalCount(); i++) { in NewSloppyArguments() 452 if (!scope_info->ContextLocalIsParameter(i)) continue; in NewSloppyArguments() 453 int parameter = scope_info->ContextLocalParameterNumber(i); in NewSloppyArguments() 456 Smi slot = Smi::FromInt(scope_info->ContextHeaderLength() + i); in NewSloppyArguments() 588 CONVERT_ARG_HANDLE_CHECKED(ScopeInfo, scope_info, 0); in RUNTIME_FUNCTION() 591 return *isolate->factory()->NewFunctionContext(outer, scope_info); in RUNTIME_FUNCTION() 599 CONVERT_ARG_HANDLE_CHECKED(ScopeInfo, scope_info, 1); in RUNTIME_FUNCTION() [all …]
|
/external/v8/src/execution/ |
D | execution.cc | 172 Handle<ScopeInfo> scope_info(sfi.scope_info(), isolate); in NewScriptContext() local 181 for (int var = 0; var < scope_info->ContextLocalCount(); var++) { in NewScriptContext() 182 Handle<String> name(scope_info->ContextLocalName(var), isolate); in NewScriptContext() 183 VariableMode mode = scope_info->ContextLocalMode(var); in NewScriptContext() 191 scope_info->IsReplModeScope() && in NewScriptContext() 192 context->scope_info().IsReplModeScope())) { in NewScriptContext() 230 isolate->factory()->NewScriptContext(native_context, scope_info); in NewScriptContext()
|
/external/v8/src/compiler/ |
D | js-operator.cc | 180 Handle<ScopeInfo> scope_info, int slot_count, ScopeType scope_type) in CreateFunctionContextParameters() argument 181 : scope_info_(scope_info), in CreateFunctionContextParameters() 187 return lhs.scope_info().location() == rhs.scope_info().location() && in operator ==() 198 return base::hash_combine(parameters.scope_info().location(), in hash_value() 1343 Handle<ScopeInfo> scope_info, int slot_count, ScopeType scope_type) { in CreateFunctionContext() argument 1344 CreateFunctionContextParameters parameters(scope_info, slot_count, in CreateFunctionContext() 1354 const Handle<ScopeInfo>& scope_info) { in CreateCatchContext() argument 1359 scope_info); // parameter in CreateCatchContext() 1363 const Handle<ScopeInfo>& scope_info) { in CreateWithContext() argument 1368 scope_info); // parameter in CreateWithContext() [all …]
|
D | js-generic-lowering.cc | 625 Handle<ScopeInfo> scope_info = parameters.scope_info(); in LowerJSCreateFunctionContext() local 633 node->InsertInput(zone(), 0, jsgraph()->HeapConstant(scope_info)); in LowerJSCreateFunctionContext() 637 node->InsertInput(zone(), 0, jsgraph()->HeapConstant(scope_info)); in LowerJSCreateFunctionContext() 765 Handle<ScopeInfo> scope_info = ScopeInfoOf(node->op()); in LowerJSCreateCatchContext() local 766 node->InsertInput(zone(), 1, jsgraph()->HeapConstant(scope_info)); in LowerJSCreateCatchContext() 771 Handle<ScopeInfo> scope_info = ScopeInfoOf(node->op()); in LowerJSCreateWithContext() local 772 node->InsertInput(zone(), 1, jsgraph()->HeapConstant(scope_info)); in LowerJSCreateWithContext() 777 Handle<ScopeInfo> scope_info = ScopeInfoOf(node->op()); in LowerJSCreateBlockContext() local 778 node->InsertInput(zone(), 0, jsgraph()->HeapConstant(scope_info)); in LowerJSCreateBlockContext()
|
D | bytecode-graph-builder.cc | 1806 CreateFunctionContextParametersOf(context->op()).scope_info()); in TryGetScopeInfo() 1812 ScopeInfoRef scope_info = shared_info_.scope_info(); in TryGetScopeInfo() local 1813 if (scope_info.HasOuterScopeInfo()) { in TryGetScopeInfo() 1814 scope_info = scope_info.OuterScopeInfo(); in TryGetScopeInfo() 1816 return scope_info; in TryGetScopeInfo() 1830 ScopeInfoRef scope_info = maybe_scope_info.value(); in CheckContextExtensions() local 1835 if (scope_info.HasContextExtensionSlot()) { in CheckContextExtensions() 1838 DCHECK_IMPLIES(!scope_info.HasOuterScopeInfo(), d + 1 == depth); in CheckContextExtensions() 1839 if (scope_info.HasOuterScopeInfo()) { in CheckContextExtensions() 1840 scope_info = scope_info.OuterScopeInfo(); in CheckContextExtensions() [all …]
|
D | js-create-lowering.cc | 1217 ScopeInfoRef scope_info(broker(), parameters.scope_info()); in ReduceJSCreateFunctionContext() local 1242 scope_info); in ReduceJSCreateFunctionContext() 1257 ScopeInfoRef scope_info(broker(), ScopeInfoOf(node->op())); in ReduceJSCreateWithContext() local 1268 a.Store(AccessBuilder::ForContextSlot(Context::SCOPE_INFO_INDEX), scope_info); in ReduceJSCreateWithContext() 1278 ScopeInfoRef scope_info(broker(), ScopeInfoOf(node->op())); in ReduceJSCreateCatchContext() local 1288 a.Store(AccessBuilder::ForContextSlot(Context::SCOPE_INFO_INDEX), scope_info); in ReduceJSCreateCatchContext() 1299 ScopeInfoRef scope_info(broker(), ScopeInfoOf(node->op())); in ReduceJSCreateBlockContext() local 1300 int const context_length = scope_info.ContextLength(); in ReduceJSCreateBlockContext() 1313 scope_info); in ReduceJSCreateBlockContext()
|
D | heap-refs.h | 406 base::Optional<ScopeInfoRef> scope_info() const; 472 ScopeInfoRef scope_info() const; 831 ScopeInfoRef scope_info() const;
|
/external/v8/src/heap/ |
D | factory.cc | 1071 Handle<ScopeInfo> scope_info) { in NewScriptContext() argument 1072 DCHECK_EQ(scope_info->scope_type(), SCRIPT_SCOPE); in NewScriptContext() 1073 int variadic_part_length = scope_info->ContextLength(); in NewScriptContext() 1078 context->set_scope_info(*scope_info); in NewScriptContext() 1094 Handle<ScopeInfo> scope_info) { in NewModuleContext() argument 1095 DCHECK_EQ(scope_info->scope_type(), MODULE_SCOPE); in NewModuleContext() 1096 int variadic_part_length = scope_info->ContextLength(); in NewModuleContext() 1100 context->set_scope_info(*scope_info); in NewModuleContext() 1108 Handle<ScopeInfo> scope_info) { in NewFunctionContext() argument 1110 switch (scope_info->scope_type()) { in NewFunctionContext() [all …]
|
D | factory.h | 337 Handle<ScopeInfo> scope_info); 345 Handle<ScopeInfo> scope_info); 349 Handle<ScopeInfo> scope_info); 353 Handle<ScopeInfo> scope_info, 358 Handle<ScopeInfo> scope_info, 362 Handle<ScopeInfo> scope_info, 369 Handle<ScopeInfo> scope_info);
|
/external/v8/src/builtins/ |
D | builtins-constructor-gen.h | 18 TNode<Context> FastNewFunctionContext(TNode<ScopeInfo> scope_info,
|
/external/v8/src/interpreter/ |
D | interpreter-generator.cc | 2499 TNode<ScopeInfo> scope_info = CAST(LoadConstantPoolEntryAtOperandIndex(0)); in IGNITION_HANDLER() local 2501 SetAccumulator(CallRuntime(Runtime::kPushBlockContext, context, scope_info)); in IGNITION_HANDLER() 2511 TNode<ScopeInfo> scope_info = CAST(LoadConstantPoolEntryAtOperandIndex(1)); in IGNITION_HANDLER() local 2514 CallRuntime(Runtime::kPushCatchContext, context, exception, scope_info)); in IGNITION_HANDLER() 2523 TNode<ScopeInfo> scope_info = CAST(LoadConstantPoolEntry(scope_info_idx)); in IGNITION_HANDLER() local 2528 scope_info, slots, context, FUNCTION_SCOPE)); in IGNITION_HANDLER() 2537 TNode<ScopeInfo> scope_info = CAST(LoadConstantPoolEntry(scope_info_idx)); in IGNITION_HANDLER() local 2542 scope_info, slots, context, EVAL_SCOPE)); in IGNITION_HANDLER() 2552 TNode<ScopeInfo> scope_info = CAST(LoadConstantPoolEntryAtOperandIndex(1)); in IGNITION_HANDLER() local 2555 CallRuntime(Runtime::kPushWithContext, context, object, scope_info)); in IGNITION_HANDLER()
|