Home
last modified time | relevance | path

Searched refs:CodeGen (Results 1 – 25 of 32) sorted by relevance

12

/arkcompiler/ets_frontend/ets2panda/compiler/core/
DcodeGen.cpp29 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 …]
DdynamicContext.h31 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 …]
DregAllocator.h28 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;
DASTCompiler.h168 class CodeGen; variable
190 void SetCodeGen(CodeGen *cg) in AST_NODE_REINTERPRET_MAPPING()
196 CodeGen *GetCodeGen() const in GetCodeGen()
202 CodeGen *cg_;
DregSpiller.h27 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;
DregScope.h29 class CodeGen; variable
33 explicit RegScope(CodeGen *cg);
45 CodeGen *cg_;
53 explicit LocalRegScope(CodeGen *cg, varbinder::Scope *scope);
82 explicit FunctionRegScope(CodeGen *cg);
DswitchBuilder.h34 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_;
Demitter.h44 class CodeGen; variable
54 explicit FunctionEmitter(const CodeGen *cg, ProgramElement *programElement) in FunctionEmitter()
79 const CodeGen *Cg() const in Cg()
90 const CodeGen *cg_;
DregAllocator.cpp27 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()
DregSpiller.cpp22 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()
DcodeGen.h62 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);
DregScope.cpp29 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()
DlabelTarget.h31 class CodeGen; variable
40 explicit LabelTarget(CodeGen *cg);
DlabelTarget.cpp21 LabelTarget::LabelTarget(CodeGen *cg) in LabelTarget()
DcompilerImpl.cpp77 template <typename CodeGen, typename RegSpiller, typename FunctionEmitter, typename Emitter, typena…
85 CodeGen cg(&allocator, &regSpiller, context, scope, programElement, &astcompiler); in MakeCompileJob()
132 typename CodeGen, typename RegSpiller, typename FunctionEmitter, typename Emitter>
148 … MakeCompileJob<CodeGen, RegSpiller, FunctionEmitter, Emitter, AstCompiler>()); in CreateCompiler()
DenvScope.h35 explicit ScopeContext(CodeGen *cg, varbinder::Scope *newScope);
42 CodeGen *cg_;
DJSemitter.h25 …JSFunctionEmitter(const CodeGen *cg, ProgramElement *programElement) : FunctionEmitter(cg, program… in JSFunctionEmitter()
DenvScope.cpp23 ScopeContext::ScopeContext(CodeGen *cg, varbinder::Scope *newScope) : cg_(cg), prevScope_(cg_->scop… in ScopeContext()
DdynamicContext.cpp34 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()
DcompilerContext.h38 class CodeGen; variable
DETSemitter.h46 …ETSFunctionEmitter(const CodeGen *cg, ProgramElement *programElement) : FunctionEmitter(cg, progra… in ETSFunctionEmitter()
/arkcompiler/ets_frontend/ets2panda/compiler/base/
DcatchTable.h23 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()
Dlreference.h46 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);
DcatchTable.cpp21 TryLabelSet::TryLabelSet(CodeGen *cg) in TryLabelSet()
26 TryLabelSet::TryLabelSet(CodeGen *cg, LabelPair tryLabelPair) in TryLabelSet()
Dlreference.cpp39 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()

12