| /arkcompiler/ets_frontend/ets2panda/compiler/core/ |
| D | codeGen.cpp | 29 ArenaAllocator *CodeGen::Allocator() const noexcept in Allocator() 34 const ArenaVector<CatchTable *> &CodeGen::CatchList() const noexcept in CatchList() 39 const varbinder::FunctionScope *CodeGen::TopScope() const noexcept in TopScope() 44 const varbinder::Scope *CodeGen::Scope() const noexcept in Scope() 49 const ir::AstNode *CodeGen::RootNode() const noexcept in RootNode() 54 ArenaVector<IRNode *> &CodeGen::Insns() noexcept in Insns() 59 const ArenaVector<IRNode *> &CodeGen::Insns() const noexcept in Insns() 64 VReg CodeGen::NextReg() const noexcept in NextReg() 69 std::uint32_t CodeGen::TotalRegsNum() const noexcept in TotalRegsNum() 74 std::size_t CodeGen::LabelCount() const noexcept in LabelCount() [all …]
|
| D | dynamicContext.h | 31 class CodeGen; variable 78 explicit DynamicContext(CodeGen *cg, LabelTarget target); 85 CodeGen *Cg() const in Cg() 91 CodeGen *cg_; 98 explicit LabelContext(CodeGen *cg, LabelTarget target) : DynamicContext(cg, target) {} in LabelContext() 99 explicit LabelContext(CodeGen *cg, const ir::LabelledStatement *labelledStmt); 187 explicit CatchContext(CodeGen *cg) : DynamicContext(cg, {}) in CatchContext() 199 explicit TryContext(CodeGen *cg, const ir::TryStatement *tryStmt, bool hasFinalizer = true) 206 explicit TryContext(CodeGen *cg) : CatchContext(cg) {} in TryContext() 259 explicit ETSCatchContext(CodeGen *cg, ArenaAllocator *allocator) in ETSCatchContext() [all …]
|
| D | regAllocator.h | 28 class CodeGen; variable 32 explicit AllocatorBase(CodeGen *cg) noexcept; 39 [[nodiscard]] CodeGen &GetCodeGen() noexcept; 40 [[nodiscard]] const CodeGen &GetCodeGen() const noexcept; 58 CodeGen *cg_; 63 explicit SimpleAllocator(CodeGen *cg) noexcept; 80 explicit RegAllocatorBase(CodeGen *cg, RegSpiller *spiller) noexcept; 99 explicit RegAllocator(CodeGen *cg, RegSpiller *spiller) noexcept; 117 explicit RangeRegAllocator(CodeGen *cg, RegSpiller *spiller) noexcept;
|
| D | ASTCompiler.h | 168 class CodeGen; variable 190 void SetCodeGen(CodeGen *cg) in AST_NODE_REINTERPRET_MAPPING() 196 CodeGen *GetCodeGen() const in GetCodeGen() 202 CodeGen *cg_;
|
| D | regSpiller.h | 27 class CodeGen; variable 50 [[nodiscard]] virtual RegScope Start(CodeGen &cg) = 0; 56 [[nodiscard]] CodeGen *GetCodeGen() const noexcept; 61 void SetCodeGen(CodeGen &cg) noexcept; 66 CodeGen *cg_ {}; 77 [[nodiscard]] RegScope Start(CodeGen &cg) override; 94 [[nodiscard]] RegScope Start(CodeGen &cg) override;
|
| D | regScope.h | 29 class CodeGen; variable 33 explicit RegScope(CodeGen *cg); 45 CodeGen *cg_; 53 explicit LocalRegScope(CodeGen *cg, varbinder::Scope *scope); 82 explicit FunctionRegScope(CodeGen *cg);
|
| D | switchBuilder.h | 34 template <typename CodeGen> 37 SwitchBuilder(CodeGen *cg, const ir::SwitchStatement *stmt) in SwitchBuilder() 60 if constexpr (std::is_same_v<CodeGen, ETSGen>) { in CompileTagOfSwitch() 78 if constexpr (std::is_same_v<CodeGen, PandaGen>) { in JumpIfCase() 98 CodeGen *cg_;
|
| D | emitter.h | 44 class CodeGen; variable 54 explicit FunctionEmitter(const CodeGen *cg, ProgramElement *programElement) in FunctionEmitter() 79 const CodeGen *Cg() const in Cg() 90 const CodeGen *cg_;
|
| D | regAllocator.cpp | 27 AllocatorBase::AllocatorBase(CodeGen *const cg) noexcept : cg_(cg) {} in AllocatorBase() 34 CodeGen &AllocatorBase::GetCodeGen() noexcept in GetCodeGen() 39 const CodeGen &AllocatorBase::GetCodeGen() const noexcept in GetCodeGen() 56 SimpleAllocator::SimpleAllocator(CodeGen *const cg) noexcept : AllocatorBase(cg) {} in SimpleAllocator() 72 RegAllocatorBase::RegAllocatorBase(CodeGen *const cg, RegSpiller *const spiller) noexcept in RegAllocatorBase() 143 RegAllocator::RegAllocator(CodeGen *const cg, RegSpiller *const spiller) noexcept : RegAllocatorBas… in RegAllocator() 207 RangeRegAllocator::RangeRegAllocator(CodeGen *const cg, RegSpiller *const spiller) noexcept in RangeRegAllocator()
|
| D | regSpiller.cpp | 22 CodeGen *RegSpiller::GetCodeGen() const noexcept in GetCodeGen() 48 void RegSpiller::SetCodeGen(CodeGen &cg) noexcept in SetCodeGen() 63 RegScope DynamicRegSpiller::Start(CodeGen &cg) in Start() 92 RegScope StaticRegSpiller::Start(CodeGen &cg) in Start()
|
| D | codeGen.h | 62 friend class CodeGen; 68 class CodeGen { 72 explicit CodeGen(ArenaAllocator *allocator, RegSpiller *spiller, CompilerContext *context, in CodeGen() function 91 virtual ~CodeGen() = default; 92 NO_COPY_SEMANTIC(CodeGen); 93 NO_MOVE_SEMANTIC(CodeGen);
|
| D | regScope.cpp | 29 RegScope::RegScope(CodeGen *cg) : cg_(cg), regBase_(cg_->usedRegs_) {} in RegScope() 50 LocalRegScope::LocalRegScope(CodeGen *cg, varbinder::Scope *scope) : RegScope(cg) in LocalRegScope() 68 …lRegScope(PandaGen *pg, varbinder::Scope *scope) : LocalRegScope(static_cast<CodeGen *>(pg), scope) in LocalRegScope() 86 FunctionRegScope::FunctionRegScope(CodeGen *cg) : RegScope(cg) in FunctionRegScope()
|
| D | labelTarget.h | 31 class CodeGen; variable 40 explicit LabelTarget(CodeGen *cg);
|
| D | labelTarget.cpp | 21 LabelTarget::LabelTarget(CodeGen *cg) in LabelTarget()
|
| D | compilerImpl.cpp | 77 template <typename CodeGen, typename RegSpiller, typename FunctionEmitter, typename Emitter, typena… 85 CodeGen cg(&allocator, ®Spiller, context, scope, programElement, &astcompiler); in MakeCompileJob() 132 typename CodeGen, typename RegSpiller, typename FunctionEmitter, typename Emitter> 148 … MakeCompileJob<CodeGen, RegSpiller, FunctionEmitter, Emitter, AstCompiler>()); in CreateCompiler()
|
| D | envScope.h | 35 explicit ScopeContext(CodeGen *cg, varbinder::Scope *newScope); 42 CodeGen *cg_;
|
| D | JSemitter.h | 25 …JSFunctionEmitter(const CodeGen *cg, ProgramElement *programElement) : FunctionEmitter(cg, program… in JSFunctionEmitter()
|
| D | envScope.cpp | 23 ScopeContext::ScopeContext(CodeGen *cg, varbinder::Scope *newScope) : cg_(cg), prevScope_(cg_->scop… in ScopeContext()
|
| D | dynamicContext.cpp | 34 DynamicContext::DynamicContext(CodeGen *cg, LabelTarget target) : cg_(cg), target_(target), prev_(C… in DynamicContext() 44 LabelContext::LabelContext(CodeGen *cg, const ir::LabelledStatement *labelledStmt) in LabelContext()
|
| D | compilerContext.h | 38 class CodeGen; variable
|
| D | ETSemitter.h | 46 …ETSFunctionEmitter(const CodeGen *cg, ProgramElement *programElement) : FunctionEmitter(cg, progra… in ETSFunctionEmitter()
|
| /arkcompiler/ets_frontend/ets2panda/compiler/base/ |
| D | catchTable.h | 23 class CodeGen; variable 27 explicit TryLabelSet(CodeGen *cg); 28 explicit TryLabelSet(CodeGen *cg, LabelPair tryLabelPair); 71 CatchTable(CodeGen *cg, uint32_t depth, util::StringView exceptionType) in CatchTable() 75 CatchTable(CodeGen *cg, uint32_t depth, LabelPair tryLabelPair, util::StringView exceptionType) in CatchTable()
|
| D | lreference.h | 46 class CodeGen; variable 93 … std::tuple<CodeGen *, const ir::AstNode *, ReferenceKind, varbinder::ConstScopeFindResult, bool>; 94 static LReferenceBase CreateBase(CodeGen *cg, const ir::AstNode *node, bool isDeclaration); 111 …JSLReference(CodeGen *cg, const ir::AstNode *node, ReferenceKind refKind, varbinder::ConstScopeFin… 120 static JSLReference Create(CodeGen *cg, const ir::AstNode *node, bool isDeclaration) in Create() 134 …ETSLReference(CodeGen *cg, const ir::AstNode *node, ReferenceKind refKind, varbinder::ConstScopeFi… 143 static ETSLReference Create(CodeGen *cg, const ir::AstNode *node, bool isDeclaration);
|
| D | catchTable.cpp | 21 TryLabelSet::TryLabelSet(CodeGen *cg) in TryLabelSet() 26 TryLabelSet::TryLabelSet(CodeGen *cg, LabelPair tryLabelPair) in TryLabelSet()
|
| D | lreference.cpp | 39 LReference::LReferenceBase LReference::CreateBase(CodeGen *cg, const ir::AstNode *node, bool isDecl… in CreateBase() 78 JSLReference::JSLReference(CodeGen *cg, const ir::AstNode *node, ReferenceKind refKind, in JSLReference() 175 ETSLReference::ETSLReference(CodeGen *cg, const ir::AstNode *node, ReferenceKind refKind, in ETSLReference() 206 ETSLReference ETSLReference::Create(CodeGen *const cg, const ir::AstNode *const node, const bool is… in Create()
|