Home
last modified time | relevance | path

Searched refs:scope_info (Results 1 - 25 of 52) sorted by relevance

123

/third_party/node/deps/v8/src/objects/
H A Dscope-info.cc197 ScopeInfo scope_info = *scope_info_handle; in Create() local
198 WriteBarrierMode mode = scope_info.GetWriteBarrierMode(no_gc); in Create()
241 scope_info.set_flags(flags); in Create()
243 scope_info.set_parameter_count(parameter_count); in Create()
244 scope_info.set_context_local_count(context_local_count); in Create()
249 scope_info.set_module_variable_count(module_vars_count); in Create()
252 scope_info.set_context_local_names_hashtable(*local_names_hashtable); in Create()
260 int module_var_entry = scope_info.ModuleVariableCountIndex() + 1; in Create()
278 scope_info.set(context_local_base + local_index, *var->name(), in Create()
286 scope_info in Create()
429 Handle<ScopeInfo> scope_info = factory->NewScopeInfo(length); CreateForWithScope() local
502 Handle<ScopeInfo> scope_info = CreateForBootstrapping() local
629 Handle<ScopeInfo> scope_info = isolate->factory()->NewScopeInfo(length); RecreateWithBlockList() local
[all...]
H A Dscope-info-inl.h70 return scope_info()->ContextInlinedLocalName(cage_base, in name()
77 PtrComprCageBase cage_base = GetPtrComprCageBase(*scope_info()); in name()
92 ScopeInfoPtr scope_info() const { return range_->scope_info_; } in scope_info() function in v8::internal::ScopeInfo::LocalNamesRange::Iterator
95 return scope_info()->context_local_names_hashtable(); in table()
100 ReadOnlyRoots roots = scope_info()->GetReadOnlyRoots(); in advance_hashtable_index()
122 explicit LocalNamesRange(ScopeInfoPtr scope_info) : scope_info_(scope_info) {} in LocalNamesRange() argument
134 Handle<ScopeInfo> scope_info) { in IterateLocalNames()
135 return LocalNamesRange<Handle<ScopeInfo>>(scope_info); in IterateLocalNames()
140 ScopeInfo* scope_info, cons in IterateLocalNames()
133 IterateLocalNames( Handle<ScopeInfo> scope_info) IterateLocalNames() argument
139 IterateLocalNames( ScopeInfo* scope_info, const DisallowGarbageCollection& no_gc) IterateLocalNames() argument
[all...]
H A Dcontexts.cc25 Handle<ScopeInfo> scope_info(script_context->scope_info(cage_base), isolate); in AddLocalNamesFromContext()
26 int local_count = scope_info->ContextLocalCount(); in AddLocalNamesFromContext()
28 for (auto it : ScopeInfo::IterateLocalNames(scope_info)) { in AddLocalNamesFromContext()
67 ScopeInfo scope_info = this->scope_info(); in Initialize() local
68 int header = scope_info.ContextHeaderLength(); in Initialize()
69 for (int var = 0; var < scope_info.ContextLocalCount(); var++) { in Initialize()
70 if (scope_info.ContextLocalInitFlag(var) == kNeedsInitialization) { in Initialize()
85 int slot_index = context.scope_info() in Lookup()
313 ScopeInfo scope_info = context->scope_info(); Lookup() local
397 ScopeInfo scope_info = context->scope_info(); Lookup() local
[all...]
H A Dshared-function-info-inl.h187 return scope_info(kAcquireLoad).is_script_scope() && in is_script()
193 return is_script() && scope_info(kAcquireLoad).ContextLocalCount() > 0; in needs_script_context()
414 DEF_ACQUIRE_GETTER(SharedFunctionInfo, scope_info, ScopeInfo) { in DEF_ACQUIRE_GETTER()
422 DEF_GETTER(SharedFunctionInfo, scope_info, ScopeInfo) { in DEF_GETTER()
423 return scope_info(cage_base, kAcquireLoad); in DEF_GETTER()
426 void SharedFunctionInfo::SetScopeInfo(ScopeInfo scope_info, in SetScopeInfo() argument
435 scope_info.SetFunctionName(name); in SetScopeInfo()
437 scope_info.SetInferredFunctionName(inferred_name()); in SetScopeInfo()
439 set_name_or_scope_info(scope_info, kReleaseStore, mode); in SetScopeInfo()
442 void SharedFunctionInfo::set_raw_scope_info(ScopeInfo scope_info, in set_raw_scope_info() argument
897 Object scope_info = name_or_scope_info(kAcquireLoad); HasInferredName() local
907 ScopeInfo scope_info = ScopeInfo::cast(maybe_scope_info); inferred_name() local
[all...]
H A Dcontexts-inl.h115 ACCESSORS(Context, scope_info, ScopeInfo, kScopeInfoOffset)
133 return scope_info().HasContextExtensionSlot() && !extension().IsUndefined(); in has_extension()
137 DCHECK(scope_info().HasContextExtensionSlot()); in extension()
H A Dshared-function-info.h236 DECL_ACQUIRE_GETTER(scope_info, ScopeInfo)
238 DECL_GETTER(scope_info, ScopeInfo)
240 // Set scope_info without moving the existing name onto the ScopeInfo.
241 inline void set_raw_scope_info(ScopeInfo scope_info,
244 inline void SetScopeInfo(ScopeInfo scope_info,
H A Dscope-info.h156 Handle<ScopeInfo> scope_info);
159 ScopeInfo* scope_info, const DisallowGarbageCollection& no_gc);
H A Dmodule-inl.h45 return GetSharedFunctionInfo().scope_info().ModuleDescriptorInfo(); in info()
/third_party/node/deps/v8/src/ast/
H A Dscopes.cc178 ModuleScope::ModuleScope(Handle<ScopeInfo> scope_info, in ModuleScope() argument
181 scope_info), in ModuleScope()
196 Handle<ScopeInfo> scope_info) in ClassScope()
197 : Scope(zone, CLASS_SCOPE, ast_value_factory, scope_info), in ClassScope()
200 if (scope_info->ClassScopeHasPrivateBrand()) { in ClassScope()
209 if (scope_info->HasSavedClassVariable()) { in ClassScope()
212 std::tie(name, index) = scope_info->SavedClassVariable(); in ClassScope()
213 DCHECK_EQ(scope_info->ContextLocalMode(index), VariableMode::kConst); in ClassScope()
214 DCHECK_EQ(scope_info->ContextLocalInitFlag(index), in ClassScope()
216 DCHECK_EQ(scope_info in ClassScope()
194 ClassScope(IsolateT* isolate, Zone* zone, AstValueFactory* ast_value_factory, Handle<ScopeInfo> scope_info) ClassScope() argument
238 Scope(Zone* zone, ScopeType scope_type, AstValueFactory* ast_value_factory, Handle<ScopeInfo> scope_info) Scope() argument
271 DeclarationScope(Zone* zone, ScopeType scope_type, AstValueFactory* ast_value_factory, Handle<ScopeInfo> scope_info) DeclarationScope() argument
289 Scope(Zone* zone, const AstRawString* catch_variable_name, MaybeAssignedFlag maybe_assigned, Handle<ScopeInfo> scope_info) Scope() argument
417 DeserializeScopeChain(IsolateT* isolate, Zone* zone, ScopeInfo scope_info, DeclarationScope* script_scope, AstValueFactory* ast_value_factory, DeserializationMode deserialization_mode) DeserializeScopeChain() argument
962 ScopeInfo scope_info = *scope_info_; LookupInScopeInfo() local
2812 Handle<ScopeInfo> scope_info = maybe_scope_info.ToHandleChecked(); FinalizeReparsedClassScope() local
[all...]
H A Dscopes.h154 ScopeInfo scope_info,
561 Handle<ScopeInfo> scope_info() const { in scope_info() function in v8::internal::Scope
734 Handle<ScopeInfo> scope_info);
738 MaybeAssignedFlag maybe_assigned, Handle<ScopeInfo> scope_info);
862 Handle<ScopeInfo> scope_info);
979 void SetScriptScopeInfo(Handle<ScopeInfo> scope_info) { in SetScriptScopeInfo() argument
982 scope_info_ = scope_info; in SetScriptScopeInfo()
1385 ModuleScope(Handle<ScopeInfo> scope_info, AstValueFactory* avfactory);
1404 Handle<ScopeInfo> scope_info);
/third_party/node/deps/v8/src/debug/
H A Ddebug-scopes.cc53 ScopeInfo closure_info = context_->closure_context().scope_info(); in GetFunctionDebugName()
210 Handle<ScopeInfo> scope_info(shared_info->scope_info(), isolate_);
252 (scope_info->scope_type() == FUNCTION_SCOPE &&
259 if (scope_info->scope_type() == EVAL_SCOPE || script->is_wrapped()) {
262 maybe_outer_scope = handle(context_->scope_info(), isolate_);
267 } else if (scope_info->scope_type() == MODULE_SCOPE) {
271 DCHECK(scope_info->scope_type() == SCRIPT_SCOPE ||
272 scope_info->scope_type() == FUNCTION_SCOPE);
299 closure_scope_ = scope_info
778 VisitContextLocals(const Visitor& visitor, Handle<ScopeInfo> scope_info, Handle<Context> context, ScopeType scope_type) const VisitContextLocals() argument
[all...]
H A Ddebug-evaluate.cc104 Handle<ScopeInfo> scope_info = in Local() local
107 isolate->native_context(), scope_info, context_extension); in Local()
163 Handle<ScopeInfo> scope_info = in WithTopmostArguments() local
165 scope_info->SetIsDebugEvaluateScope(); in WithTopmostArguments()
167 native_context, scope_info, materialized, Handle<Context>()); in WithTopmostArguments()
254 Handle<ScopeInfo> scope_info = in ContextBuilder() local
257 : handle(evaluation_context_->scope_info(), isolate); in ContextBuilder()
261 scope_info = ScopeInfo::CreateForWithScope(isolate, scope_info); in ContextBuilder()
262 scope_info in ContextBuilder()
[all...]
H A Ddebug-interface.cc160 i::Handle<i::ScopeInfo> scope_info(context->scope_info(), isolate); in CollectPrivateMethodsAndAccessorsFromContext()
161 for (auto it : i::ScopeInfo::IterateLocalNames(scope_info)) { in CollectPrivateMethodsAndAccessorsFromContext()
163 i::VariableMode mode = scope_info->ContextLocalMode(it->index()); in CollectPrivateMethodsAndAccessorsFromContext()
164 i::IsStaticFlag flag = scope_info->ContextLocalIsStaticFlag(it->index()); in CollectPrivateMethodsAndAccessorsFromContext()
169 int context_index = scope_info->ContextHeaderLength() + it->index(); in CollectPrivateMethodsAndAccessorsFromContext()
214 i::Handle<i::ScopeInfo> scope_info(value_context->scope_info(), isolate); in GetPrivateMembers()
216 private_entries_count += (scope_info->ContextLocalCount() - 1); in GetPrivateMembers()
231 i::Handle<i::ScopeInfo> scope_info(func_contex in GetPrivateMembers()
[all...]
H A Ddebug-scopes.h168 bool VisitContextLocals(const Visitor& visitor, Handle<ScopeInfo> scope_info,
/third_party/node/deps/v8/src/runtime/
H A Druntime-scopes.cc245 context->scope_info().is_declaration_scope())); in DeclareEvalHelper()
299 } else if (context->scope_info().HasContextExtensionSlot()) { in DeclareEvalHelper()
304 context->scope_info().is_declaration_scope()) || in DeclareEvalHelper()
437 Handle<ScopeInfo> scope_info(callee->shared().scope_info(), isolate); in NewSloppyArguments()
449 for (int i = 0; i < scope_info->ContextLocalCount(); i++) { in NewSloppyArguments()
450 if (!scope_info->ContextLocalIsParameter(i)) continue; in NewSloppyArguments()
451 int parameter = scope_info->ContextLocalParameterNumber(i); in NewSloppyArguments()
454 Smi slot = Smi::FromInt(scope_info->ContextHeaderLength() + i); in NewSloppyArguments()
587 Handle<ScopeInfo> scope_info in RUNTIME_FUNCTION() local
598 Handle<ScopeInfo> scope_info = args.at<ScopeInfo>(1); RUNTIME_FUNCTION() local
609 Handle<ScopeInfo> scope_info = args.at<ScopeInfo>(1); RUNTIME_FUNCTION() local
619 Handle<ScopeInfo> scope_info = args.at<ScopeInfo>(0); RUNTIME_FUNCTION() local
[all...]
/third_party/node/deps/v8/src/web-snapshot/
H A Dweb-snapshot.cc790 Handle<ScopeInfo> scope_info = handle(context->scope_info(), isolate_); in DiscoverContext() local
791 int count = scope_info->ContextLocalCount(); in DiscoverContext()
796 Handle<String> name(scope_info->context_local_names(i), isolate_); in DiscoverContext()
798 Object value = context->get(scope_info->ContextHeaderLength() + i); in DiscoverContext()
944 Handle<ScopeInfo> scope_info(context->scope_info(), isolate_); in SerializeContext()
945 int count = scope_info->ContextLocalCount(); in SerializeContext()
951 Handle<String> name(scope_info->context_local_names(i), isolate_); in SerializeContext()
953 Handle<Object> value(context->get(scope_info in SerializeContext()
1628 Handle<ScopeInfo> scope_info = DeserializeContexts() local
1740 Handle<ScopeInfo> scope_info = factory()->NewScopeInfo(length); CreateScopeInfo() local
[all...]
/third_party/node/deps/v8/src/execution/
H A Dexecution.cc202 Handle<ScopeInfo> scope_info(sfi.scope_info(), isolate); in NewScriptContext()
211 for (auto it : ScopeInfo::IterateLocalNames(scope_info)) { in NewScriptContext()
213 VariableMode mode = scope_info->ContextLocalMode(it->index()); in NewScriptContext()
225 scope_info->IsReplModeScope() && in NewScriptContext()
226 context->scope_info().IsReplModeScope())) { in NewScriptContext()
264 isolate->factory()->NewScriptContext(native_context, scope_info); in NewScriptContext()
269 const bool ignore_duplicates = scope_info->IsReplModeScope(); in NewScriptContext()
/third_party/node/deps/v8/src/heap/
H A Dfactory.cc1193 Handle<ScopeInfo> scope_info) { in NewScriptContext()
1194 DCHECK_EQ(scope_info->scope_type(), SCRIPT_SCOPE); in NewScriptContext()
1195 int variadic_part_length = scope_info->ContextLength(); in NewScriptContext()
1201 context.set_scope_info(*scope_info); in NewScriptContext()
1219 Handle<ScopeInfo> scope_info) { in NewModuleContext()
1220 DCHECK_EQ(scope_info->scope_type(), MODULE_SCOPE); in NewModuleContext()
1221 int variadic_part_length = scope_info->ContextLength(); in NewModuleContext()
1226 context.set_scope_info(*scope_info); in NewModuleContext()
1234 Handle<ScopeInfo> scope_info) { in NewFunctionContext()
1236 switch (scope_info in NewFunctionContext()
1192 NewScriptContext(Handle<NativeContext> outer, Handle<ScopeInfo> scope_info) NewScriptContext() argument
1217 NewModuleContext(Handle<SourceTextModule> module, Handle<NativeContext> outer, Handle<ScopeInfo> scope_info) NewModuleContext() argument
1233 NewFunctionContext(Handle<Context> outer, Handle<ScopeInfo> scope_info) NewFunctionContext() argument
1256 NewCatchContext(Handle<Context> previous, Handle<ScopeInfo> scope_info, Handle<Object> thrown_object) NewCatchContext() argument
1274 NewDebugEvaluateContext(Handle<Context> previous, Handle<ScopeInfo> scope_info, Handle<JSReceiver> extension, Handle<Context> wrapped) NewDebugEvaluateContext() argument
1299 NewWithContext(Handle<Context> previous, Handle<ScopeInfo> scope_info, Handle<JSReceiver> extension) NewWithContext() argument
1316 NewBlockContext(Handle<Context> previous, Handle<ScopeInfo> scope_info) NewBlockContext() argument
[all...]
H A Dfactory.h344 Handle<ScopeInfo> scope_info);
352 Handle<ScopeInfo> scope_info);
356 Handle<ScopeInfo> scope_info);
360 Handle<ScopeInfo> scope_info,
365 Handle<ScopeInfo> scope_info,
369 Handle<ScopeInfo> scope_info,
375 Handle<ScopeInfo> scope_info);
/third_party/node/deps/v8/src/compiler/
H A Djs-generic-lowering.cc676 ScopeInfoRef scope_info = parameters.scope_info(broker()); in LowerJSCreateFunctionContext() local
684 node->InsertInput(zone(), 0, jsgraph()->Constant(scope_info)); in LowerJSCreateFunctionContext()
688 node->InsertInput(zone(), 0, jsgraph()->Constant(scope_info)); in LowerJSCreateFunctionContext()
816 ScopeInfoRef scope_info = ScopeInfoOf(broker(), node->op()); in LowerJSCreateCatchContext() local
817 node->InsertInput(zone(), 1, jsgraph()->Constant(scope_info)); in LowerJSCreateCatchContext()
822 ScopeInfoRef scope_info = ScopeInfoOf(broker(), node->op()); in LowerJSCreateWithContext() local
823 node->InsertInput(zone(), 1, jsgraph()->Constant(scope_info)); in LowerJSCreateWithContext()
828 ScopeInfoRef scope_info = ScopeInfoOf(broker(), node->op()); in LowerJSCreateBlockContext() local
829 node->InsertInput(zone(), 0, jsgraph()->Constant(scope_info)); in LowerJSCreateBlockContext()
[all...]
H A Dbytecode-graph-builder.cc1754 .scope_info(broker()); in TryGetScopeInfo()
1760 ScopeInfoRef scope_info = shared_info_.scope_info(); in TryGetScopeInfo() local
1761 if (scope_info.HasOuterScopeInfo()) { in TryGetScopeInfo()
1762 scope_info = scope_info.OuterScopeInfo(); in TryGetScopeInfo()
1764 return scope_info; in TryGetScopeInfo()
1778 ScopeInfoRef scope_info = maybe_scope_info.value(); in CheckContextExtensions() local
1783 if (scope_info.HasContextExtensionSlot()) { in CheckContextExtensions()
1786 DCHECK_IMPLIES(!scope_info in CheckContextExtensions()
2193 ScopeInfoRef scope_info = MakeRefForConstantForIndexOperand<ScopeInfo>(0); VisitCreateBlockContext() local
2200 ScopeInfoRef scope_info = MakeRefForConstantForIndexOperand<ScopeInfo>(0); VisitCreateFunctionContext() local
2209 ScopeInfoRef scope_info = MakeRefForConstantForIndexOperand<ScopeInfo>(0); VisitCreateEvalContext() local
2220 ScopeInfoRef scope_info = MakeRefForConstantForIndexOperand<ScopeInfo>(1); VisitCreateCatchContext() local
2230 ScopeInfoRef scope_info = MakeRefForConstantForIndexOperand<ScopeInfo>(1); VisitCreateWithContext() local
[all...]
H A Djs-operator.cc1426 const ScopeInfoRef& scope_info, int slot_count, ScopeType scope_type) { in CreateFunctionContext()
1427 CreateFunctionContextParameters parameters(scope_info, slot_count, in CreateFunctionContext()
1437 const ScopeInfoRef& scope_info) { in CreateCatchContext()
1442 ScopeInfoTinyRef{scope_info}); // parameter in CreateCatchContext()
1446 const ScopeInfoRef& scope_info) { in CreateWithContext()
1451 ScopeInfoTinyRef{scope_info}); // parameter in CreateWithContext()
1455 const ScopeInfoRef& scope_info) { in CreateBlockContext()
1460 ScopeInfoTinyRef{scope_info}); // parameter in CreateBlockContext()
1425 CreateFunctionContext( const ScopeInfoRef& scope_info, int slot_count, ScopeType scope_type) CreateFunctionContext() argument
1436 CreateCatchContext( const ScopeInfoRef& scope_info) CreateCatchContext() argument
1445 CreateWithContext( const ScopeInfoRef& scope_info) CreateWithContext() argument
1454 CreateBlockContext( const ScopeInfoRef& scope_info) CreateBlockContext() argument
H A Djs-create-lowering.cc1215 ScopeInfoRef scope_info = parameters.scope_info(broker()); in ReduceJSCreateFunctionContext() local
1240 scope_info); in ReduceJSCreateFunctionContext() local
1255 ScopeInfoRef scope_info = ScopeInfoOf(broker(), node->op()); in ReduceJSCreateWithContext() local
1266 a.Store(AccessBuilder::ForContextSlot(Context::SCOPE_INFO_INDEX), scope_info); in ReduceJSCreateWithContext() local
1276 ScopeInfoRef scope_info = ScopeInfoOf(broker(), node->op()); in ReduceJSCreateCatchContext() local
1286 a.Store(AccessBuilder::ForContextSlot(Context::SCOPE_INFO_INDEX), scope_info); in ReduceJSCreateCatchContext() local
1297 ScopeInfoRef scope_info = ScopeInfoOf(broker(), node->op()); in ReduceJSCreateBlockContext() local
1298 int const context_length = scope_info.ContextLength(); in ReduceJSCreateBlockContext()
1311 scope_info); in ReduceJSCreateBlockContext() local
[all...]
/third_party/node/deps/v8/src/builtins/
H A Dbuiltins-constructor-gen.h18 TNode<Context> FastNewFunctionContext(TNode<ScopeInfo> scope_info,
/third_party/node/deps/v8/src/interpreter/
H A Dinterpreter-generator.cc2521 TNode<ScopeInfo> scope_info = CAST(LoadConstantPoolEntryAtOperandIndex(0)); in IGNITION_HANDLER() local
2523 SetAccumulator(CallRuntime(Runtime::kPushBlockContext, context, scope_info)); in IGNITION_HANDLER()
2533 TNode<ScopeInfo> scope_info = CAST(LoadConstantPoolEntryAtOperandIndex(1)); in IGNITION_HANDLER() local
2536 CallRuntime(Runtime::kPushCatchContext, context, exception, scope_info)); in IGNITION_HANDLER()
2545 TNode<ScopeInfo> scope_info = CAST(LoadConstantPoolEntry(scope_info_idx)); in IGNITION_HANDLER() local
2550 scope_info, slots, context, FUNCTION_SCOPE)); in IGNITION_HANDLER()
2559 TNode<ScopeInfo> scope_info = CAST(LoadConstantPoolEntry(scope_info_idx)); in IGNITION_HANDLER() local
2564 scope_info, slots, context, EVAL_SCOPE)); in IGNITION_HANDLER()
2574 TNode<ScopeInfo> scope_info = CAST(LoadConstantPoolEntryAtOperandIndex(1)); in IGNITION_HANDLER() local
2577 CallRuntime(Runtime::kPushWithContext, context, object, scope_info)); in IGNITION_HANDLER()
[all...]

Completed in 44 milliseconds

123