/external/v8/src/objects/ |
D | scope-info.cc | 153 Handle<ScopeInfo> scope_info = factory->NewScopeInfo(length); in Create() local 184 scope_info->SetFlags(flags); in Create() 186 scope_info->SetParameterCount(parameter_count); in Create() 187 scope_info->SetContextLocalCount(context_local_count); in Create() 195 int module_var_entry = scope_info->ModuleVariablesIndex(); in Create() 210 scope_info->set(context_local_base + local_index, *var->name()); in Create() 211 scope_info->set(context_local_info_base + local_index, in Create() 216 scope_info->set(module_var_entry + kModuleVariableNameOffset, in Create() 218 scope_info->set(module_var_entry + kModuleVariableIndexOffset, in Create() 225 scope_info->set(module_var_entry + kModuleVariablePropertiesOffset, in Create() [all …]
|
D | shared-function-info-inl.h | 341 ScopeInfo* SharedFunctionInfo::scope_info() const { in scope_info() function 349 void SharedFunctionInfo::set_scope_info(ScopeInfo* scope_info, in set_scope_info() argument 358 scope_info->SetFunctionName(name); in set_scope_info() 360 scope_info->SetInferredFunctionName(inferred_name()); in set_scope_info() 363 reinterpret_cast<Object*>(scope_info)); in set_scope_info() 365 reinterpret_cast<Object*>(scope_info), mode); in set_scope_info() 383 if (!scope_info()->HasOuterScopeInfo()) return false; in HasOuterScopeInfo() 384 outer_info = scope_info()->OuterScopeInfo(); in HasOuterScopeInfo() 392 return scope_info()->OuterScopeInfo(); in GetOuterScopeInfo() 436 return scope_info()->HasSimpleParameters(); in has_simple_parameters() [all …]
|
D | module-inl.h | 37 : GetSharedFunctionInfo()->scope_info()->ModuleDescriptorInfo(); in ACCESSORS()
|
D | scope-info.h | 135 static int ContextSlotIndex(Handle<ScopeInfo> scope_info, Handle<String> name,
|
/external/v8/src/debug/ |
D | debug-scopes.cc | 49 ScopeInfo* closure_info = context_->closure_context()->scope_info(); in GetFunctionDebugName() 93 Handle<ScopeInfo> scope_info(shared_info->scope_info(), isolate_); in TryParseAndRetrieveScopes() local 120 if (scope_info->scope_type() == FUNCTION_SCOPE) { in TryParseAndRetrieveScopes() 127 if (scope_info->scope_type() == EVAL_SCOPE) { in TryParseAndRetrieveScopes() 130 info_->set_outer_scope_info(handle(context_->scope_info(), isolate_)); in TryParseAndRetrieveScopes() 135 } else if (scope_info->scope_type() == MODULE_SCOPE) { in TryParseAndRetrieveScopes() 138 DCHECK_EQ(SCRIPT_SCOPE, scope_info->scope_type()); in TryParseAndRetrieveScopes() 223 return context_->closure_context()->scope_info()->StartPosition(); in start_position() 229 return context_->closure_context()->scope_info()->EndPosition(); in end_position() 551 Handle<ScopeInfo> scope_info(context->scope_info(), isolate_); in VisitScriptScope() local [all …]
|
D | debug-stack-trace-iterator.cc | 99 Handle<ScopeInfo> scope_info(context->scope_info(), isolate_); in GetReceiver() local 104 scope_info, isolate_->factory()->this_string(), &mode, &flag, in GetReceiver()
|
D | debug-evaluate.cc | 112 Handle<ScopeInfo> scope_info = in WithTopmostArguments() local 114 scope_info->SetIsDebugEvaluateScope(); in WithTopmostArguments() 116 factory->NewDebugEvaluateContext(native_context, scope_info, materialized, in WithTopmostArguments() 216 Handle<ScopeInfo> scope_info = in ContextBuilder() local 219 : handle(evaluation_context_->scope_info(), isolate); in ContextBuilder() 223 scope_info = ScopeInfo::CreateForWithScope(isolate, scope_info); in ContextBuilder() 224 scope_info->SetIsDebugEvaluateScope(); in ContextBuilder() 226 evaluation_context_, scope_info, element.materialized_object, in ContextBuilder()
|
D | debug-scopes.h | 153 bool VisitContextLocals(const Visitor& visitor, Handle<ScopeInfo> scope_info,
|
/external/v8/src/ast/ |
D | scopes.cc | 210 ModuleScope::ModuleScope(Isolate* isolate, Handle<ScopeInfo> scope_info, in ModuleScope() argument 212 : DeclarationScope(avfactory->zone(), MODULE_SCOPE, scope_info) { in ModuleScope() 214 Handle<ModuleInfo> module_info(scope_info->ModuleDescriptorInfo(), isolate); in ModuleScope() 256 Scope::Scope(Zone* zone, ScopeType scope_type, Handle<ScopeInfo> scope_info) in Scope() argument 260 scope_info_(scope_info), in Scope() 262 DCHECK(!scope_info.is_null()); in Scope() 267 if (scope_info->CallsSloppyEval()) scope_calls_eval_ = true; in Scope() 268 set_language_mode(scope_info->language_mode()); in Scope() 269 num_heap_slots_ = scope_info->ContextLength(); in Scope() 277 Handle<ScopeInfo> scope_info) in DeclarationScope() argument [all …]
|
D | scopes.h | 136 ScopeInfo* scope_info, in NON_EXPORTED_BASE() 442 Handle<ScopeInfo> scope_info() const { in NON_EXPORTED_BASE() 622 Scope(Zone* zone, ScopeType type, Handle<ScopeInfo> scope_info); in NON_EXPORTED_BASE() 626 MaybeAssignedFlag maybe_assigned, Handle<ScopeInfo> scope_info); in NON_EXPORTED_BASE() 645 Handle<ScopeInfo> scope_info); 689 void SetScriptScopeInfo(Handle<ScopeInfo> scope_info) { in SetScriptScopeInfo() argument 692 scope_info_ = scope_info; in SetScriptScopeInfo() 1038 ModuleScope(Isolate* isolate, Handle<ScopeInfo> scope_info,
|
/external/v8/src/runtime/ |
D | runtime-scopes.cc | 220 context->scope_info()->is_declaration_scope())); in DeclareEvalHelper() 296 context->scope_info()->is_declaration_scope()) || in DeclareEvalHelper() 431 Handle<ScopeInfo> scope_info(callee->shared()->scope_info(), isolate); in NewSloppyArguments() local 442 for (int i = 0; i < scope_info->ContextLocalCount(); i++) { in NewSloppyArguments() 443 if (!scope_info->ContextLocalIsParameter(i)) continue; in NewSloppyArguments() 444 int parameter = scope_info->ContextLocalParameterNumber(i); in NewSloppyArguments() 629 static Object* FindNameClash(Isolate* isolate, Handle<ScopeInfo> scope_info, in FindNameClash() argument 632 for (int var = 0; var < scope_info->ContextLocalCount(); var++) { in FindNameClash() 633 Handle<String> name(scope_info->ContextLocalName(var), isolate); in FindNameClash() 634 VariableMode mode = scope_info->ContextLocalMode(var); in FindNameClash() [all …]
|
D | runtime-function.cc | 116 target_shared->set_scope_info(source_shared->scope_info()); in RUNTIME_FUNCTION()
|
/external/v8/src/ |
D | contexts.cc | 46 Handle<ScopeInfo> scope_info(context->scope_info(), context->GetIsolate()); in Lookup() local 48 scope_info, name, &result->mode, &result->init_flag, in Lookup() 67 return scope_info()->language_mode() == LanguageMode::kStrict; in is_declaration_context() 70 return scope_info()->is_declaration_scope(); in is_declaration_context() 108 ScopeInfo* Context::scope_info() { in scope_info() function in v8::internal::Context 292 Handle<ScopeInfo> scope_info(context->scope_info(), isolate); in Lookup() local 296 int slot_index = ScopeInfo::ContextSlotIndex(scope_info, name, &mode, in Lookup() 316 int function_index = scope_info->FunctionContextSlotIndex(*name); in Lookup() 327 is_sloppy(scope_info->language_mode())) { in Lookup() 340 scope_info->ModuleIndex(name, &mode, &flag, &maybe_assigned_flag); in Lookup()
|
D | contexts-inl.h | 55 void Context::set_scope_info(ScopeInfo* scope_info) { in set_scope_info() argument 56 set(SCOPE_INFO_INDEX, scope_info); in set_scope_info()
|
D | compiler.cc | 349 Handle<ScopeInfo> scope_info = compilation_info->scope()->scope_info(); in InstallUnoptimizedCode() local 350 shared_info->set_scope_info(*scope_info); in InstallUnoptimizedCode() 1267 parse_info.set_outer_scope_info(handle(context->scope_info(), isolate)); in GetFunctionFromEval() 1731 parse_info.set_outer_scope_info(handle(context->scope_info(), isolate)); in GetWrappedFunction()
|
/external/v8/src/compiler/ |
D | js-operator.cc | 156 Handle<ScopeInfo> scope_info, int slot_count, ScopeType scope_type) in CreateFunctionContextParameters() argument 157 : scope_info_(scope_info), in CreateFunctionContextParameters() 163 return lhs.scope_info().location() == rhs.scope_info().location() && in operator ==() 174 return base::hash_combine(parameters.scope_info().location(), in hash_value() 1241 Handle<ScopeInfo> scope_info, int slot_count, ScopeType scope_type) { in CreateFunctionContext() argument 1242 CreateFunctionContextParameters parameters(scope_info, slot_count, in CreateFunctionContext() 1252 const Handle<ScopeInfo>& scope_info) { in CreateCatchContext() argument 1257 scope_info); // parameter in CreateCatchContext() 1261 const Handle<ScopeInfo>& scope_info) { in CreateWithContext() argument 1266 scope_info); // parameter in CreateWithContext() [all …]
|
D | js-operator.h | 269 CreateFunctionContextParameters(Handle<ScopeInfo> scope_info, int slot_count, 272 Handle<ScopeInfo> scope_info() const { return scope_info_; } in scope_info() function 837 const Operator* CreateFunctionContext(Handle<ScopeInfo> scope_info, in NON_EXPORTED_BASE() 839 const Operator* CreateCatchContext(const Handle<ScopeInfo>& scope_info); in NON_EXPORTED_BASE() 840 const Operator* CreateWithContext(const Handle<ScopeInfo>& scope_info); in NON_EXPORTED_BASE()
|
D | js-heap-copy-reducer.cc | 62 ScopeInfoRef(broker(), p.scope_info()); in Reduce()
|
D | js-generic-lowering.cc | 437 Handle<ScopeInfo> scope_info = parameters.scope_info(); in LowerJSCreateFunctionContext() local 445 node->InsertInput(zone(), 0, jsgraph()->HeapConstant(scope_info)); in LowerJSCreateFunctionContext() 449 node->InsertInput(zone(), 0, jsgraph()->HeapConstant(scope_info)); in LowerJSCreateFunctionContext() 574 Handle<ScopeInfo> scope_info = ScopeInfoOf(node->op()); in LowerJSCreateBlockContext() local 575 node->InsertInput(zone(), 0, jsgraph()->HeapConstant(scope_info)); in LowerJSCreateBlockContext()
|
D | js-create-lowering.cc | 1225 ScopeInfoRef scope_info(js_heap_broker(), parameters.scope_info()); in ReduceJSCreateFunctionContext() local 1252 scope_info); in ReduceJSCreateFunctionContext() 1270 ScopeInfoRef scope_info(js_heap_broker(), ScopeInfoOf(node->op())); in ReduceJSCreateWithContext() local 1279 a.Store(AccessBuilder::ForContextSlot(Context::SCOPE_INFO_INDEX), scope_info); in ReduceJSCreateWithContext() 1291 ScopeInfoRef scope_info(js_heap_broker(), ScopeInfoOf(node->op())); in ReduceJSCreateCatchContext() local 1302 a.Store(AccessBuilder::ForContextSlot(Context::SCOPE_INFO_INDEX), scope_info); in ReduceJSCreateCatchContext() 1316 ScopeInfoRef scope_info(js_heap_broker(), ScopeInfoOf(node->op())); in ReduceJSCreateBlockContext() local 1317 int const context_length = scope_info.ContextLength(); in ReduceJSCreateBlockContext() 1331 scope_info); in ReduceJSCreateBlockContext()
|
D | bytecode-graph-builder.cc | 1488 Handle<ScopeInfo> scope_info( in VisitCreateBlockContext() local 1492 const Operator* op = javascript()->CreateBlockContext(scope_info); in VisitCreateBlockContext() 1498 Handle<ScopeInfo> scope_info( in VisitCreateFunctionContext() local 1503 javascript()->CreateFunctionContext(scope_info, slots, FUNCTION_SCOPE); in VisitCreateFunctionContext() 1509 Handle<ScopeInfo> scope_info( in VisitCreateEvalContext() local 1514 javascript()->CreateFunctionContext(scope_info, slots, EVAL_SCOPE); in VisitCreateEvalContext() 1522 Handle<ScopeInfo> scope_info( in VisitCreateCatchContext() local 1526 const Operator* op = javascript()->CreateCatchContext(scope_info); in VisitCreateCatchContext() 1534 Handle<ScopeInfo> scope_info( in VisitCreateWithContext() local 1538 const Operator* op = javascript()->CreateWithContext(scope_info); in VisitCreateWithContext()
|
/external/v8/src/builtins/ |
D | builtins-constructor-gen.cc | 226 Node* scope_info, Node* slots, Node* context, ScopeType scope_type) { in EmitFastNewFunctionContext() argument 256 scope_info, SKIP_WRITE_BARRIER); in EmitFastNewFunctionContext() 281 Node* scope_info = Parameter(Descriptor::kScopeInfo); in TF_BUILTIN() local 284 Return(EmitFastNewFunctionContext(scope_info, slots, context, in TF_BUILTIN() 289 Node* scope_info = Parameter(Descriptor::kScopeInfo); in TF_BUILTIN() local 292 Return(EmitFastNewFunctionContext(scope_info, slots, context, in TF_BUILTIN()
|
/external/v8/src/heap/ |
D | factory.h | 369 Handle<ScopeInfo> scope_info); 377 Handle<ScopeInfo> scope_info); 381 Handle<ScopeInfo> scope_info); 385 Handle<ScopeInfo> scope_info, 390 Handle<ScopeInfo> scope_info, 394 Handle<ScopeInfo> scope_info, 401 Handle<ScopeInfo> scope_info);
|
D | factory.cc | 1367 Handle<ScopeInfo> scope_info) { in NewScriptContext() argument 1368 DCHECK_EQ(scope_info->scope_type(), SCRIPT_SCOPE); in NewScriptContext() 1370 Heap::kScriptContextMapRootIndex, scope_info->ContextLength(), TENURED); in NewScriptContext() 1371 context->set_scope_info(*scope_info); in NewScriptContext() 1390 Handle<ScopeInfo> scope_info) { in NewModuleContext() argument 1391 DCHECK_EQ(scope_info->scope_type(), MODULE_SCOPE); in NewModuleContext() 1393 Heap::kModuleContextMapRootIndex, scope_info->ContextLength(), TENURED); in NewModuleContext() 1394 context->set_scope_info(*scope_info); in NewModuleContext() 1403 Handle<ScopeInfo> scope_info) { in NewFunctionContext() argument 1404 int length = scope_info->ContextLength(); in NewFunctionContext() [all …]
|
/external/v8/src/interpreter/ |
D | interpreter-generator.cc | 2542 Node* scope_info = LoadConstantPoolEntryAtOperandIndex(0); in IGNITION_HANDLER() local 2544 SetAccumulator(CallRuntime(Runtime::kPushBlockContext, context, scope_info)); in IGNITION_HANDLER() 2554 Node* scope_info = LoadConstantPoolEntryAtOperandIndex(1); in IGNITION_HANDLER() local 2557 CallRuntime(Runtime::kPushCatchContext, context, exception, scope_info)); in IGNITION_HANDLER() 2566 Node* scope_info = LoadConstantPoolEntry(scope_info_idx); in IGNITION_HANDLER() local 2571 scope_info, slots, context, FUNCTION_SCOPE)); in IGNITION_HANDLER() 2580 Node* scope_info = LoadConstantPoolEntry(scope_info_idx); in IGNITION_HANDLER() local 2585 scope_info, slots, context, EVAL_SCOPE)); in IGNITION_HANDLER() 2595 Node* scope_info = LoadConstantPoolEntryAtOperandIndex(1); in IGNITION_HANDLER() local 2598 CallRuntime(Runtime::kPushWithContext, context, object, scope_info)); in IGNITION_HANDLER()
|