Home
last modified time | relevance | path

Searched refs:ScopeInfo (Results 1 – 25 of 46) sorted by relevance

12

/external/v8/src/objects/
Dscope-info.cc27 bool ScopeInfo::Equals(ScopeInfo* other) const { in Equals()
44 if (!ScopeInfo::cast(entry)->Equals(ScopeInfo::cast(other_entry))) { in Equals()
61 Handle<ScopeInfo> ScopeInfo::Create(Isolate* isolate, Zone* zone, Scope* scope, in Create()
62 MaybeHandle<ScopeInfo> outer_scope) { in Create()
144 Handle<ScopeInfo> scope_info = factory->NewScopeInfo(length); in Create()
293 Handle<ScopeInfo> ScopeInfo::CreateForWithScope( in CreateForWithScope()
294 Isolate* isolate, MaybeHandle<ScopeInfo> outer_scope) { in CreateForWithScope()
299 Handle<ScopeInfo> scope_info = factory->NewScopeInfo(length); in CreateForWithScope()
334 Handle<ScopeInfo> ScopeInfo::CreateGlobalThisBinding(Isolate* isolate) { in CreateGlobalThisBinding()
352 Handle<ScopeInfo> scope_info = factory->NewScopeInfo(length); in CreateGlobalThisBinding()
[all …]
Dscope-info.h33 class ScopeInfo : public FixedArray {
35 DECLARE_CAST(ScopeInfo)
144 static int ContextSlotIndex(Handle<ScopeInfo> scope_info, Handle<String> name,
187 ScopeInfo* OuterScopeInfo();
190 bool Equals(ScopeInfo* other) const;
193 static Handle<ScopeInfo> Create(Isolate* isolate, Zone* zone, Scope* scope,
194 MaybeHandle<ScopeInfo> outer_scope);
195 static Handle<ScopeInfo> CreateForWithScope(
196 Isolate* isolate, MaybeHandle<ScopeInfo> outer_scope);
197 static Handle<ScopeInfo> CreateGlobalThisBinding(Isolate* isolate);
[all …]
/external/v8/src/debug/
Ddebug-scopes.h69 Handle<ScopeInfo> CurrentScopeInfo();
85 ExtendedScopeInfo(Handle<ScopeInfo> info, int start, int end) in ExtendedScopeInfo()
87 explicit ExtendedScopeInfo(Handle<ScopeInfo> info) in ExtendedScopeInfo()
89 Handle<ScopeInfo> scope_info;
136 bool SetParameterValue(Handle<ScopeInfo> scope_info, JavaScriptFrame* frame,
139 bool SetStackVariableValue(Handle<ScopeInfo> scope_info,
142 bool SetContextVariableValue(Handle<ScopeInfo> scope_info,
147 void CopyContextLocalsToScopeObject(Handle<ScopeInfo> scope_info,
150 void CopyModuleVarsToScopeObject(Handle<ScopeInfo> scope_info,
Ddebug-frames.cc112 Handle<ScopeInfo> scope_info) { in MaterializeStackLocals()
120 if (ScopeInfo::VariableIsSynthetic(*name)) continue; in MaterializeStackLocals()
135 if (ScopeInfo::VariableIsSynthetic(*name)) continue; in MaterializeStackLocals()
153 Handle<ScopeInfo> scope_info(shared->scope_info()); in MaterializeStackLocals()
159 Handle<JSObject> target, Handle<ScopeInfo> scope_info) { in UpdateStackLocalsFromMaterializedObject()
169 if (ScopeInfo::VariableIsSynthetic(*name)) continue; in UpdateStackLocalsFromMaterializedObject()
181 if (ScopeInfo::VariableIsSynthetic(*name)) continue; in UpdateStackLocalsFromMaterializedObject()
192 Handle<ScopeInfo> info, Handle<String> parameter_name) { in ParameterIsShadowedByContextLocal()
196 return ScopeInfo::ContextSlotIndex(info, parameter_name, &mode, &init_flag, in ParameterIsShadowedByContextLocal()
Ddebug-scopes.cc41 Handle<ScopeInfo> scope_info(shared_info->scope_info()); in ScopeIterator()
252 Handle<ScopeInfo> scope_info = nested_scope_chain_.last().scope_info; in Type()
372 Handle<ScopeInfo> ScopeIterator::CurrentScopeInfo() { in CurrentScopeInfo()
378 return Handle<ScopeInfo>(context_->scope_info()); in CurrentScopeInfo()
380 return Handle<ScopeInfo>::null(); in CurrentScopeInfo()
487 Handle<ScopeInfo> scope_info(context->scope_info()); in MaterializeScriptScope()
506 Handle<ScopeInfo> scope_info(shared->scope_info()); in MaterializeLocalScope()
533 Handle<ScopeInfo> scope_info(shared->scope_info()); in MaterializeClosure()
587 Handle<ScopeInfo> scope_info = nested_scope_chain_.last().scope_info; in MaterializeInnerScope()
609 Handle<ScopeInfo> scope_info(context->scope_info()); in MaterializeModuleScope()
[all …]
Ddebug-frames.h48 Handle<ScopeInfo> scope_info);
54 Handle<ScopeInfo> scope_info);
57 bool ParameterIsShadowedByContextLocal(Handle<ScopeInfo> info,
Ddebug-evaluate.cc200 Handle<ScopeInfo> scope_info(ScopeInfo::CreateForWithScope( in ContextBuilder()
202 ? Handle<ScopeInfo>::null() in ContextBuilder()
203 : Handle<ScopeInfo>(evaluation_context_->scope_info()))); in ContextBuilder()
Ddebug-evaluate.h62 Handle<ScopeInfo> scope_info;
/external/v8/src/ast/
Dscopes.h129 ScopeInfo* scope_info, in NON_EXPORTED_BASE()
414 Handle<ScopeInfo> scope_info() const { in NON_EXPORTED_BASE()
511 Handle<ScopeInfo> scope_info_; in NON_EXPORTED_BASE()
589 MaybeHandle<ScopeInfo> outer_scope); in NON_EXPORTED_BASE()
591 MaybeHandle<ScopeInfo> outer_scope); in NON_EXPORTED_BASE()
596 Scope(Zone* zone, ScopeType type, Handle<ScopeInfo> scope_info); in NON_EXPORTED_BASE()
600 Handle<ScopeInfo> scope_info); in NON_EXPORTED_BASE()
619 Handle<ScopeInfo> scope_info);
660 void SetScriptScopeInfo(Handle<ScopeInfo> scope_info) { in SetScriptScopeInfo()
953 ModuleScope(Isolate* isolate, Handle<ScopeInfo> scope_info,
Dscopes.cc196 ModuleScope::ModuleScope(Isolate* isolate, Handle<ScopeInfo> scope_info, in ModuleScope()
242 Scope::Scope(Zone* zone, ScopeType scope_type, Handle<ScopeInfo> scope_info) in Scope()
260 Handle<ScopeInfo> scope_info) in DeclarationScope()
270 Handle<ScopeInfo> scope_info) in Scope()
373 ScopeInfo* scope_info, in DeserializeScopeChain()
429 outer_scope->scope_info_ = Handle<ScopeInfo>::null(); in DeserializeScopeChain()
591 Handle<ScopeInfo> outer_scope_info; in Analyze()
631 handle(ScopeInfo::Empty(info->isolate())); in Analyze()
902 index = ScopeInfo::ContextSlotIndex(scope_info_, name_handle, &mode, in LookupInScopeInfo()
1275 MaybeHandle<ScopeInfo> outer_scope; in AllocateVariables()
[all …]
/external/v8/src/parsing/
Dparse-info.h197 MaybeHandle<ScopeInfo> maybe_outer_scope_info() const { in maybe_outer_scope_info()
203 void set_outer_scope_info(Handle<ScopeInfo> outer_scope_info) { in set_outer_scope_info()
224 Handle<ScopeInfo> outer_scope_info; in ReopenHandlesInNewHandleScope()
226 maybe_outer_scope_info_ = Handle<ScopeInfo>(*outer_scope_info); in ReopenHandlesInNewHandleScope()
278 MaybeHandle<ScopeInfo> maybe_outer_scope_info_;
Dparse-info.cc70 Handle<ScopeInfo>::cast(scope_info)->length() > 0) { in ParseInfo()
71 set_outer_scope_info(Handle<ScopeInfo>::cast(scope_info)); in ParseInfo()
138 Handle<ScopeInfo>::cast(scope_info)->length() > 0) { in AllocateWithoutScript()
139 p->set_outer_scope_info(Handle<ScopeInfo>::cast(scope_info)); in AllocateWithoutScript()
/external/clang/lib/Sema/
DSemaCoroutine.cpp131 auto *ScopeInfo = S.getCurFunction(); in checkCoroutineContext() local
132 assert(ScopeInfo && "missing function scope for function"); in checkCoroutineContext()
135 if (!ScopeInfo->CoroutinePromise) { in checkCoroutineContext()
145 ScopeInfo->CoroutinePromise = in checkCoroutineContext()
149 S.CheckVariableDeclarationType(ScopeInfo->CoroutinePromise); in checkCoroutineContext()
150 if (!ScopeInfo->CoroutinePromise->isInvalidDecl()) in checkCoroutineContext()
151 S.ActOnUninitializedDecl(ScopeInfo->CoroutinePromise, false); in checkCoroutineContext()
154 return ScopeInfo; in checkCoroutineContext()
DCMakeLists.txt19 ScopeInfo.cpp
/external/v8/src/compiler/
Doperator.h247 struct OpEqualTo<Handle<ScopeInfo>> : public Handle<ScopeInfo>::equal_to {};
249 struct OpHash<Handle<ScopeInfo>> : public Handle<ScopeInfo>::hash {};
Djs-operator.h283 Handle<ScopeInfo> scope_info);
286 Handle<ScopeInfo> scope_info() const { return scope_info_; } in scope_info()
290 Handle<ScopeInfo> const scope_info_;
706 const Handle<ScopeInfo>& scope_info); in NON_EXPORTED_BASE()
707 const Operator* CreateWithContext(const Handle<ScopeInfo>& scope_info); in NON_EXPORTED_BASE()
708 const Operator* CreateBlockContext(const Handle<ScopeInfo>& scpope_info); in NON_EXPORTED_BASE()
710 const Operator* CreateScriptContext(const Handle<ScopeInfo>& scpope_info); in NON_EXPORTED_BASE()
Djs-operator.cc215 Handle<String> catch_name, Handle<ScopeInfo> scope_info) in CreateCatchContextParameters()
1048 const Handle<String>& name, const Handle<ScopeInfo>& scope_info) { in CreateCatchContext()
1058 const Handle<ScopeInfo>& scope_info) { in CreateWithContext()
1059 return new (zone()) Operator1<Handle<ScopeInfo>>( in CreateWithContext()
1067 const Handle<ScopeInfo>& scope_info) { in CreateBlockContext()
1068 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- in CreateBlockContext()
1076 const Handle<ScopeInfo>& scope_info) { in CreateScriptContext()
1077 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- in CreateScriptContext()
Djs-generic-lowering.cc493 Handle<ScopeInfo> scope_info = OpParameter<Handle<ScopeInfo>>(node); in LowerJSCreateWithContext()
499 Handle<ScopeInfo> scope_info = OpParameter<Handle<ScopeInfo>>(node); in LowerJSCreateBlockContext()
506 Handle<ScopeInfo> scope_info = OpParameter<Handle<ScopeInfo>>(node); in LowerJSCreateScriptContext()
/external/v8/src/compiler-dispatcher/
Dcompiler-dispatcher-job.cc227 MaybeHandle<ScopeInfo> outer_scope_info; in PrepareToParseOnMainThread()
229 ScopeInfo::cast(shared_->outer_scope_info())->length() > 0) { in PrepareToParseOnMainThread()
230 outer_scope_info = handle(ScopeInfo::cast(shared_->outer_scope_info())); in PrepareToParseOnMainThread()
300 ScopeInfo::cast(shared_->outer_scope_info())->length() > 0) { in FinalizeParsingOnMainThread()
301 Handle<ScopeInfo> outer_scope_info( in FinalizeParsingOnMainThread()
302 handle(ScopeInfo::cast(shared_->outer_scope_info()))); in FinalizeParsingOnMainThread()
/external/v8/src/
Dcontexts.cc44 Handle<ScopeInfo> scope_info(context->scope_info()); in Lookup()
45 int slot_index = ScopeInfo::ContextSlotIndex( in Lookup()
70 ScopeInfo::cast(ext)->is_declaration_scope(); in is_declaration_context()
115 ScopeInfo* Context::scope_info() { in scope_info()
126 return ScopeInfo::cast(object); in scope_info()
275 if (ScopeInfo::VariableIsSynthetic(*name)) { in Lookup()
311 Handle<ScopeInfo> scope_info(context->scope_info()); in Lookup()
315 int slot_index = ScopeInfo::ContextSlotIndex(scope_info, name, &mode, in Lookup()
Dfactory.h91 Handle<ContextExtension> NewContextExtension(Handle<ScopeInfo> scope_info,
293 Handle<ScopeInfo> scope_info);
301 Handle<ScopeInfo> scope_info);
310 Handle<ScopeInfo> scope_info,
317 Handle<ScopeInfo> scope_info,
321 Handle<ScopeInfo> scope_info,
329 Handle<ScopeInfo> scope_info);
630 Handle<ScopeInfo> NewScopeInfo(int length);
739 Handle<ScopeInfo> scope_info);
Dbackground-parsing-task.cc47 MaybeHandle<ScopeInfo>()); in BackgroundParsingTask()
Dfactory.cc120 Handle<ScopeInfo> scope_info, Handle<Object> extension) { in NewContextExtension()
925 Handle<ScopeInfo> scope_info) { in NewScriptContext()
951 Handle<ScopeInfo> scope_info) { in NewModuleContext()
993 Handle<ScopeInfo> scope_info, in NewCatchContext()
1010 Handle<ScopeInfo> scope_info, in NewDebugEvaluateContext()
1033 Handle<ScopeInfo> scope_info, in NewWithContext()
1050 Handle<ScopeInfo> scope_info) { in NewBlockContext()
1617 Handle<ScopeInfo> Factory::NewScopeInfo(int length) { in NewScopeInfo()
1620 Handle<ScopeInfo> scope_info = Handle<ScopeInfo>::cast(array); in NewScopeInfo()
2360 Handle<ScopeInfo> scope_info) { in NewSharedFunctionInfo()
[all …]
/external/v8/src/runtime/
Druntime-scopes.cc450 Handle<ScopeInfo> scope_info(callee->shared()->scope_info()); in NewSloppyArguments()
666 static Object* FindNameClash(Handle<ScopeInfo> scope_info, in FindNameClash()
711 CONVERT_ARG_HANDLE_CHECKED(ScopeInfo, scope_info, 1); in RUNTIME_FUNCTION()
756 CONVERT_ARG_HANDLE_CHECKED(ScopeInfo, scope_info, 1); in RUNTIME_FUNCTION()
770 CONVERT_ARG_HANDLE_CHECKED(ScopeInfo, scope_info, 2); in RUNTIME_FUNCTION()
784 CONVERT_ARG_HANDLE_CHECKED(ScopeInfo, scope_info, 2); in RUNTIME_FUNCTION()
797 CONVERT_ARG_HANDLE_CHECKED(ScopeInfo, scope_info, 0); in RUNTIME_FUNCTION()
Druntime-debug.cc577 Handle<ScopeInfo> scope_info(shared->scope_info()); in RUNTIME_FUNCTION()
578 DCHECK(*scope_info != ScopeInfo::Empty(isolate)); in RUNTIME_FUNCTION()
589 if (ScopeInfo::VariableIsSynthetic(scope_info->LocalName(slot))) { in RUNTIME_FUNCTION()
599 if (ScopeInfo::VariableIsSynthetic(scope_info->LocalName(i))) continue; in RUNTIME_FUNCTION()
617 if (ScopeInfo::VariableIsSynthetic(*name)) continue; in RUNTIME_FUNCTION()
622 int context_slot_index = ScopeInfo::ContextSlotIndex( in RUNTIME_FUNCTION()

12