Home
last modified time | relevance | path

Searched refs:scope_ (Results 1 - 25 of 96) sorted by relevance

1234

/arkcompiler/ets_frontend/ets2panda/compiler/core/
H A DenvScope.cpp23 ScopeContext::ScopeContext(CodeGen *cg, varbinder::Scope *newScope) : cg_(cg), prevScope_(cg_->scope_) in ScopeContext()
25 cg->scope_ = newScope; in ScopeContext()
30 cg_->scope_ = prevScope_; in ~ScopeContext()
58 pg_->NewLexEnv(scope_->Node(), scope->LexicalSlots()); in CopyBindings()
59 pg_->StoreAccumulator(scope_->Node(), lexEnv_); in CopyBindings()
63 for (const auto &[_, variable] : scope_->OrderedBindings(pg_->Allocator())) { in CopyBindings()
69 pg->LoadLexicalVar(scope_->Node(), 1, variable->AsLocalVariable()->LexIdx()); in CopyBindings()
70 pg->StoreLexicalVar(scope_->Parent()->Node(), 0, variable->AsLocalVariable()->LexIdx()); in CopyBindings()
80 pg_->CopyLexEnv(scope_->Node()); in CopyPetIterationCtx()
81 pg_->StoreAccumulator(scope_ in CopyPetIterationCtx()
[all...]
H A DenvScope.h79 : scope_(NeedEnv(scope) ? scope : nullptr), regScope_(pg, scope), lexEnvCtx_(this, pg, target) in LoopEnvScope()
85 : scope_(NeedEnv(scope) ? scope : nullptr), regScope_(pg), lexEnvCtx_(this, pg, target) in LoopEnvScope()
91 : scope_(NeedEnv(scope) ? scope : nullptr), regScope_(pg), lexEnvCtx_(this, pg, {}) in LoopEnvScope()
99 return scope_; in Scope()
104 return scope_ != nullptr; in HasEnv()
117 varbinder::VariableScope *scope_ {};
H A DregScope.cpp43 cg_->scope_->SetScopeEnd(cg_->insns_.back()); in DebuggerCloseScope()
52 prevScope_ = cg_->scope_; in LocalRegScope()
53 cg_->scope_ = scope; in LocalRegScope()
63 cg_->scope_->SetScopeStart(cg_->insns_.back()); in LocalRegScope()
64 cg_->debugInfo_.VariableDebugInfo().push_back(cg_->scope_); in LocalRegScope()
81 cg_->scope_ = prevScope_; in ~LocalRegScope()
150 ModuleContext::Compile(pg, pg->scope_->AsModuleScope()); in FunctionRegScope()
/arkcompiler/ets_frontend/es2panda/compiler/core/
H A DenvScope.cpp24 ScopeContext::ScopeContext(PandaGen *pg, binder::Scope *newScope) : pg_(pg), prevScope_(pg_->scope_) in ScopeContext()
26 pg_->scope_ = newScope; in ScopeContext()
31 pg_->scope_ = prevScope_; in ~ScopeContext()
67 auto num = scope_->LexicalSlots(); in CopyPerIterationCtx()
73 pg_->LoadLexicalVar(scope_->Node(), 0, i); in CopyPerIterationCtx()
74 pg_->StoreAccumulator(scope_->Node(), lexical); in CopyPerIterationCtx()
77 pg_->PopLexEnv(scope_->Node()); in CopyPerIterationCtx()
78 pg_->NewLexicalEnv(scope_->Node(), num, scope_); in CopyPerIterationCtx()
81 pg_->StoreLexicalVar(scope_ in CopyPerIterationCtx()
[all...]
H A DregScope.cpp46 pg_->scope_->SetScopeStart(*it); in DebuggerCloseScope()
48 pg_->scope_->SetScopeStart(pg_->insns_.back()); in DebuggerCloseScope()
51 pg_->scope_->SetScopeEnd(pg_->insns_.back()); in DebuggerCloseScope()
60 prevScope_ = pg_->scope_; in LocalRegScope()
61 pg_->scope_ = scope; in LocalRegScope()
71 if (pg_->IsDebug() && std::find(debugInfo->begin(), debugInfo->end(), pg_->scope_) == debugInfo->end()) { in LocalRegScope()
72 debugInfo->push_back(pg_->scope_); in LocalRegScope()
87 pg_->scope_ = prevScope_;
H A DenvScope.h72 : scope_(InitVariableContext(pg, scope) ? scope : nullptr), regScope_(pg, scope), lexEnvCtx_(this, pg, target) in VariableEnvScope()
78 return scope_ != nullptr; in HasEnv()
84 return scope_; in Scope()
88 binder::VariableScope *scope_ {};
/arkcompiler/ets_runtime/ecmascript/checkpoint/
H A Dthread_state_transition.h88 explicit ThreadSuspensionScope(JSThread* self) : scope_(self) in ThreadSuspensionScope()
96 ThreadStateTransitionScope<JSThread, ThreadState::IS_SUSPENDED> scope_; member in panda::ecmascript::final
102 explicit ThreadNativeScope(JSThread* self) : scope_(self) in ThreadNativeScope()
110 ThreadStateTransitionScope<JSThread, ThreadState::NATIVE> scope_; member in panda::ecmascript::final
119 explicit ThreadManagedScope(T* self) : scope_(self) {} in ThreadManagedScope()
124 ThreadStateTransitionScope<T, ThreadState::RUNNING> scope_; member in panda::ecmascript::final
134 : self_(self), scope_(self) in SuspendAllScope()
148 ThreadStateTransitionScope<T, ThreadState::IS_SUSPENDED> scope_; member in panda::ecmascript::final
/arkcompiler/ets_frontend/es2panda/ir/statements/
H A DblockStatement.cpp40 if (scope_ != nullptr) { in Compile()
41 compiler::LocalRegScope lrs(pg, scope_); in Compile()
55 auto scopeCtx = checker::ScopeContext(checker, scope_ != nullptr ? scope_ : checker->Scope()); in Check()
67 scope_ != nullptr ? scope_ : binder->GetScope()); in UpdateSelf()
H A DforOfStatement.cpp45 compiler::LocalRegScope regScope(pg, scope_); in Compile()
47 if (scope_->NeedLexEnv()) { in Compile()
48 pg->NewLexEnv(this, scope_->LexicalSlots()); in Compile()
62 if (scope_->NeedLexEnv()) { in Compile()
70 if (scope_->NeedLexEnv()) { in Compile()
91 compiler::LoopEnvScope envScope(pg, scope_, {}); in Compile()
H A DforInStatement.cpp45 if (scope_->NeedLexEnv()) { in Compile()
46 pg->NewLexEnv(this, scope_->LexicalSlots()); in Compile()
49 compiler::LocalRegScope loopRegScope(pg, scope_); in Compile()
67 if (scope_->NeedLexEnv()) { in Compile()
75 if (scope_->NeedLexEnv()) { in Compile()
90 compiler::LoopEnvScope envScope(pg, scope_, labelTarget); in Compile()
/arkcompiler/ets_frontend/ets2panda/ir/statements/
H A DloopStatement.h38 return scope_;
43 ASSERT(scope_ == nullptr); in SetScope()
44 scope_ = scope; in SetScope()
49 scope_ = nullptr;
89 varbinder::LoopScope *scope_ {nullptr};
H A DswitchStatement.h71 return scope_;
76 ASSERT(scope_ == nullptr);
77 scope_ = scope;
82 scope_ = nullptr;
101 varbinder::LocalScope *scope_ {nullptr};
H A DblockStatement.h45 return scope_;
50 scope_ = scope;
55 scope_ = nullptr;
91 varbinder::Scope *scope_ {};
/arkcompiler/ets_frontend/ets2panda/ir/ts/
H A DtsFunctionType.h44 return scope_;
49 ASSERT(scope_ == nullptr); in SetScope()
50 scope_ = scope; in SetScope()
55 scope_ = nullptr;
104 varbinder::Scope *scope_ {nullptr};
H A DtsConstructorType.h46 return scope_;
51 ASSERT(scope_ == nullptr); in SetScope()
52 scope_ = scope; in SetScope()
57 scope_ = nullptr;
105 varbinder::Scope *scope_ {nullptr};
H A DtsModuleBlock.h37 return scope_;
42 ASSERT(scope_ == nullptr); in SetScope()
43 scope_ = scope; in SetScope()
48 scope_ = nullptr;
71 varbinder::LocalScope *scope_ {nullptr};
H A DtsTypeParameterDeclaration.h41 return scope_;
46 scope_ = scope; in SetScope()
51 scope_ = nullptr;
88 varbinder::LocalScope *scope_ {nullptr};
/arkcompiler/ets_frontend/ets2panda/ir/base/
H A DcatchClause.h60 return scope_;
65 ASSERT(scope_ == nullptr); in SetScope()
66 scope_ = scope; in SetScope()
71 scope_ = nullptr;
90 varbinder::CatchScope *scope_ {nullptr};
H A DnamespaceDefinition.h60 return scope_;
65 ASSERT(scope_ == nullptr); in SetScope()
66 scope_ = scope; in SetScope()
71 scope_ = nullptr;
156 varbinder::LocalScope *scope_ {nullptr};
/arkcompiler/ets_frontend/ets2panda/varbinder/
H A Dvarbinder.h115 return scope_; in GetScope()
122 scope_ = scope; in ResetAllScopes()
127 ASSERT(topScope_ == scope_); in ResetTopScope()
130 scope_ = topScope_; in ResetTopScope()
270 Scope *scope_ {};
283 varbinder->Allocator()->New<T>(varbinder->Allocator(), varbinder->scope_, std::forward<Args>(args)...), in LexicalScope()
290 return scope_; in GetScope()
296 varbinder_->scope_ = prevScope_; in ~LexicalScope()
338 : varbinder_(varbinder), scope_(scope), prevScope_(varbinder->scope_), prevVarScope in LexicalScope()
[all...]
H A Dvarbinder.cpp72 scope_ = topScope_; in InitTopScope()
78 ASSERT(scope_->IsFunctionParamScope() || scope_->IsCatchParamScope()); in AddParamDecl()
79 auto [decl, node, var] = static_cast<ParamScope *>(scope_)->AddParamDecl(Allocator(), param); in AddParamDecl()
142 ASSERT(scope_ == topScope_); in IdentifierAnalysis()
157 auto res = scope_->Find(name); in LookupReference()
188 auto *iter = scope_; in InstantiateArguments()
213 auto *iter = scope_; in PropagateDirectEval()
262 auto res = scope_->Find(ident->Name(), BindingOptions()); in LookupIdentReference()
311 auto *variable = scope_ in BuildVarDeclaratorId()
[all...]
/arkcompiler/ets_frontend/ets2panda/checker/types/ts/
H A DenumLiteralType.h31 : Type(TypeFlag::ENUM_LITERAL), name_(name), scope_(scope), kind_(kind) in EnumLiteralType()
37 return scope_; in Scope()
42 return scope_; in Scope()
59 varbinder::Scope *scope_; member in ark::es2panda::ark::es2panda::checker::EnumLiteralType
/arkcompiler/ets_frontend/es2panda/typescript/types/
H A DenumLiteralType.h32 : Type(TypeFlag::ENUM_LITERAL), name_(name), scope_(scope), kind_(kind) in EnumLiteralType()
38 return scope_; in Scope()
43 return scope_; in Scope()
60 binder::Scope *scope_; member in panda::es2panda::panda::es2panda::checker::EnumLiteralType
/arkcompiler/ets_frontend/es2panda/binder/
H A Dbinder.cpp74 scope_ = topScope_; in InitTopScope()
79 ASSERT(scope_->IsFunctionParamScope() || scope_->IsCatchParamScope()); in AddParamDecl()
80 auto [decl, node] = static_cast<ParamScope *>(scope_)->AddParamDecl(Allocator(), param); in AddParamDecl()
194 ASSERT(scope_ == topScope_); in IdentifierAnalysis()
231 if (scope_->IsTSModuleScope()) { in ValidateExportDecl()
232 auto currentScope = scope_; in ValidateExportDecl()
246 ASSERT(topScope_ == scope_); in ValidateExportDecl()
247 if (scope_->FindLocal(localName) == nullptr) { in ValidateExportDecl()
250 if (scope_ in ValidateExportDecl()
[all...]
/arkcompiler/runtime_core/static_core/runtime/mem/
H A Dvm_handle.h87 scope_ = thread->GetTopScope<ObjectHeader *>(); in VMMutableHandle()
88 ASSERT(scope_ != nullptr); in VMMutableHandle()
90 this->address_ = scope_->NewHandle(object); in VMMutableHandle()
101 this->address_ = scope_->NewHandle(object); in Update()
111 HandleScope<ObjectHeader *> *scope_ {nullptr};

Completed in 9 milliseconds

1234