Home
last modified time | relevance | path

Searched refs:topScope_ (Results 1 - 12 of 12) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/varbinder/
H A Dvarbinder.cpp67 topScope_ = Allocator()->New<ModuleScope>(Allocator()); in InitTopScope()
69 topScope_ = Allocator()->New<GlobalScope>(Allocator()); in InitTopScope()
72 scope_ = topScope_; in InitTopScope()
73 varScope_ = topScope_; in InitTopScope()
142 ASSERT(scope_ == topScope_); in IdentifierAnalysis()
143 ASSERT(varScope_ == topScope_); in IdentifierAnalysis()
145 functionScopes_.push_back(topScope_); in IdentifierAnalysis()
146 topScope_->BindName(MAIN); in IdentifierAnalysis()
147 topScope_->BindInternalName(BuildFunctionName(MAIN, 0)); in IdentifierAnalysis()
149 topScope_ in IdentifierAnalysis()
[all...]
H A Dvarbinder.h120 topScope_ = topScope; in ResetAllScopes()
127 ASSERT(topScope_ == scope_); in ResetTopScope()
128 topScope_ = topScope; in ResetTopScope()
129 varScope_ = topScope_; in ResetTopScope()
130 scope_ = topScope_; in ResetTopScope()
135 return topScope_; in TopScope()
269 GlobalScope *topScope_ {};
/arkcompiler/ets_frontend/es2panda/binder/
H A Dbinder.cpp69 topScope_ = Allocator()->New<ModuleScope>(Allocator(), program_); in InitTopScope()
71 topScope_ = Allocator()->New<GlobalScope>(Allocator()); in InitTopScope()
74 scope_ = topScope_; in InitTopScope()
188 program_->ModuleRecord()->AssignIndexToModuleVariable(topScope_->AsModuleScope()); in AssignIndexToModuleVariable()
194 ASSERT(scope_ == topScope_); in IdentifierAnalysis()
199 BuildFunction(topScope_, MAIN_FUNC_NAME); in IdentifierAnalysis()
205 if (topScope_->IsModuleScope()) { in IdentifierAnalysis()
209 BuildFunction(topScope_, MAIN_FUNC_NAME); in IdentifierAnalysis()
212 if (topScope_->IsModuleScope()) { in IdentifierAnalysis()
224 ASSERT(topScope_ in ValidateExportDecl()
[all...]
H A Dbinder.h93 return topScope_; in TopScope()
133 return topScope_->GetScopeNames(); in GetScopeNames()
231 FunctionScope *topScope_ {};
H A Dscope.cpp402 auto it = topScope_->scopeNames_.find(selfScopeName_); in OptimizeSelfScopeName()
403 if (it == topScope_->scopeNames_.end()) { in OptimizeSelfScopeName()
405 indexScopeName << util::Helpers::INDEX_NAME_SPICIFIER << std::hex << topScope_->scopeNames_.size(); in OptimizeSelfScopeName()
407 topScope_->scopeNames_.insert( in OptimizeSelfScopeName()
408 {selfScopeName_, (int32_t)topScope_->scopeNames_.size()} in OptimizeSelfScopeName()
H A Dscope.h428 return topScope_->scopeNames_; in GetScopeNames()
464 topScope_ = parent_->GetTopScope(); in SetTopScope()
466 topScope_ = this; in SetTopScope()
495 return topScope_; in GetTopScope()
499 Scope *topScope_ {};
/arkcompiler/ets_frontend/ets2panda/compiler/core/
H A DcodeGen.cpp41 return topScope_;
153 return topScope_->InternalName();
158 return topScope_->Name();
H A DcodeGen.h78 topScope_(std::get<varbinder::FunctionScope *>(toCompile)),
79 scope_(topScope_),
173 varbinder::FunctionScope *topScope_ {};
H A DregScope.cpp159 cg_->topScope_->SetScopeStart(cg_->insns_.front()); in ~FunctionRegScope()
/arkcompiler/ets_frontend/es2panda/compiler/core/
H A DregScope.cpp133 pg_->topScope_->SetScopeStart(pg_->insns_.front());
H A Dpandagen.h86 topScope_(scope), in PandaGen()
87 scope_(topScope_), in PandaGen()
122 return topScope_; in TopScope()
529 binder::FunctionScope *topScope_; member in panda::es2panda::compiler::PandaGen
H A Dpandagen.cpp171 return topScope_->InternalName(); in InternalName()
176 return topScope_->Name(); in FunctionName()
257 if (topScope_->NeedLexEnv()) { in InitializeLexEnv()
258 NewLexicalEnv(node, topScope_->LexicalSlots(), topScope_); in InitializeLexEnv()
261 if (topScope_->NeedSendableEnv()) { in InitializeLexEnv()
262 NewSendableEnv(node, topScope_->SendableSlots()); in InitializeLexEnv()
271 for (const auto *param : topScope_->ParamScope()->Params()) { in CopyFunctionArguments()

Completed in 13 milliseconds