/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/ |
D | BUILD.gn | 17 "${MAPLEALL_ROOT}/maple_be/include/cg", 49 "${MAPLEALL_ROOT}/maple_be/include/cg/aarch64", 61 "${MAPLEALL_ROOT}/maple_be/include/cg/x86_64", 72 "${MAPLEALL_ROOT}/maple_be/include/cg/riscv64", 80 "${MAPLEALL_ROOT}/maple_be/include/cg/ark", 101 "src/cg/aarch64/aarch64_abi.cpp", 102 "src/cg/aarch64/aarch64_call_conv.cpp", 103 "src/cg/aarch64/mpl_atomic.cpp", 104 "src/cg/aarch64/aarch64_cgfunc.cpp", 105 "src/cg/aarch64/aarch64_dependence.cpp", [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/ |
D | cg_option.cpp | 133 if (opts::cg::o0) { in DecideMplcgRealLevel() 140 if (opts::cg::o1) { in DecideMplcgRealLevel() 147 if (opts::cg::o2 || opts::cg::os) { in DecideMplcgRealLevel() 148 if (opts::cg::os) { in DecideMplcgRealLevel() 152 std::string oLog = (opts::cg::os == true) ? "Os" : "O2"; in DecideMplcgRealLevel() 157 if (opts::cg::olitecg) { in DecideMplcgRealLevel() 179 if (opts::cg::quiet.IsEnabledByUser()) { in SolveOptions() 187 if (opts::cg::pie.IsEnabledByUser()) { in SolveOptions() 188 opts::cg::pie ? SetOption(CGOptions::kGenPie) : ClearOption(CGOptions::kGenPie); in SolveOptions() 191 if (opts::cg::fpic.IsEnabledByUser()) { in SolveOptions() [all …]
|
D | cg_phasemanager.cpp | 73 CHECK_FATAL(cg != nullptr, "cg is null"); in GenerateOutPutFile() 74 CHECK_FATAL(cg->GetEmitter(), "emitter is null"); in GenerateOutPutFile() 76 assembler::Assembler &assm = static_cast<X64Emitter &>(*cg->GetEmitter()).GetAssembler(); in GenerateOutPutFile() 86 cg->GetEmitter()->EmitFileInfo(m.GetInputFileName()); in GenerateOutPutFile() 89 cg->GetEmitter()->EmitDIHeader(); in GenerateOutPutFile() 120 X64Emitter *x64Emitter = static_cast<X64Emitter *>(cg->GetEmitter()); in PostOutPut() 125 x64Emitter->EmitGlobalVariable(*cg); in PostOutPut() 126 x64Emitter->EmitDebugInfo(*cg); in PostOutPut() 131 cg->GetEmitter()->EmitHugeSoRoutines(true); in PostOutPut() 133 cg->GetEmitter()->EmitDIFooter(); in PostOutPut() [all …]
|
D | label_creation.cpp | 44 CG *cg = cgFunc->GetCG(); in CreateStartEndLabel() local 45 if (cg->GetCGOptions().WithDwarf()) { in CreateStartEndLabel() 46 DebugInfo *di = cg->GetMIRModule()->GetDbgInfo(); in CreateStartEndLabel()
|
/arkcompiler/ets_frontend/ets2panda/compiler/base/ |
D | catchTable.cpp | 21 TryLabelSet::TryLabelSet(CodeGen *cg) in TryLabelSet() argument 22 : try_(cg->AllocLabel(), cg->AllocLabel()), catch_(cg->AllocLabel(), cg->AllocLabel()) in TryLabelSet() 26 TryLabelSet::TryLabelSet(CodeGen *cg, LabelPair tryLabelPair) in TryLabelSet() argument 27 : try_(tryLabelPair), catch_(cg->AllocLabel(), cg->AllocLabel()) in TryLabelSet()
|
D | catchTable.h | 27 explicit TryLabelSet(CodeGen *cg); 28 explicit TryLabelSet(CodeGen *cg, LabelPair tryLabelPair); 71 CatchTable(CodeGen *cg, uint32_t depth, util::StringView exceptionType) in CatchTable() argument 72 : labelSet_(cg), depth_(depth), exceptionType_(exceptionType) in CatchTable() 75 CatchTable(CodeGen *cg, uint32_t depth, LabelPair tryLabelPair, util::StringView exceptionType) in CatchTable() argument 76 : labelSet_(cg, tryLabelPair), depth_(depth), exceptionType_(exceptionType) in CatchTable()
|
D | lreference.cpp | 39 LReference::LReferenceBase LReference::CreateBase(CodeGen *cg, const ir::AstNode *node, bool isDecl… in CreateBase() argument 45 auto res = cg->Scope()->Find(name, varbinder::ResolveBindingOptions::ALL); in CreateBase() 50 return {cg, node, ReferenceKind::VAR_OR_GLOBAL, res, isDeclaration}; in CreateBase() 53 return {cg, node, ReferenceKind::MEMBER, {}, false}; in CreateBase() 57 return CreateBase(cg, node->AsVariableDeclaration()->Declarators()[0]->Id(), true); in CreateBase() 60 return CreateBase(cg, node->AsVariableDeclarator()->Id(), true); in CreateBase() 64 return {cg, node, ReferenceKind::DESTRUCTURING, {}, isDeclaration}; in CreateBase() 67 return CreateBase(cg, node->AsAssignmentPattern()->Left(), true); in CreateBase() 70 return CreateBase(cg, node->AsRestElement()->Argument(), true); in CreateBase() 78 JSLReference::JSLReference(CodeGen *cg, const ir::AstNode *node, ReferenceKind refKind, in JSLReference() argument [all …]
|
D | lreference.h | 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() argument 122 return std::make_from_tuple<JSLReference>(CreateBase(cg, node, 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);
|
/arkcompiler/ets_frontend/ets2panda/compiler/core/ |
D | dynamicContext.h | 78 explicit DynamicContext(CodeGen *cg, LabelTarget target); 98 explicit LabelContext(CodeGen *cg, LabelTarget target) : DynamicContext(cg, target) {} in LabelContext() argument 99 explicit LabelContext(CodeGen *cg, const ir::LabelledStatement *labelledStmt); 187 explicit CatchContext(CodeGen *cg) : DynamicContext(cg, {}) in CatchContext() argument 199 explicit TryContext(CodeGen *cg, const ir::TryStatement *tryStmt, bool hasFinalizer = true) 200 : CatchContext(cg), tryStmt_(tryStmt), hasFinalizer_(hasFinalizer) in CatchContext() argument 206 explicit TryContext(CodeGen *cg) : CatchContext(cg) {} in TryContext() argument 259 explicit ETSCatchContext(CodeGen *cg, ArenaAllocator *allocator) in ETSCatchContext() argument 260 : DynamicContext(cg, {}), catchTables_(allocator->Adapter()) in ETSCatchContext() 270 explicit ETSTryContext(CodeGen *cg, ArenaAllocator *allocator, const ir::TryStatement *tryStmt, [all …]
|
D | regSpiller.cpp | 48 void RegSpiller::SetCodeGen(CodeGen &cg) noexcept in SetCodeGen() argument 50 cg_ = &cg; in SetCodeGen() 63 RegScope DynamicRegSpiller::Start(CodeGen &cg) in Start() argument 65 SetCodeGen(cg); in Start() 67 return RegScope {&cg}; in Start() 92 RegScope StaticRegSpiller::Start(CodeGen &cg) in Start() argument 94 SetCodeGen(cg); in Start() 95 return RegScope {&cg}; in Start()
|
D | labelTarget.cpp | 21 LabelTarget::LabelTarget(CodeGen *cg) in LabelTarget() argument 22 …: LabelPair(cg->AllocLabel(), cg->AllocLabel()), breakLabel_(BREAK_LABEL), continueLabel_(CONTINUE… in LabelTarget()
|
D | regAllocator.cpp | 27 AllocatorBase::AllocatorBase(CodeGen *const cg) noexcept : cg_(cg) {} in AllocatorBase() argument 56 SimpleAllocator::SimpleAllocator(CodeGen *const cg) noexcept : AllocatorBase(cg) {} in SimpleAllocator() argument 72 RegAllocatorBase::RegAllocatorBase(CodeGen *const cg, RegSpiller *const spiller) noexcept in RegAllocatorBase() argument 73 : AllocatorBase(cg), spiller_(spiller) in RegAllocatorBase() 143 RegAllocator::RegAllocator(CodeGen *const cg, RegSpiller *const spiller) noexcept : RegAllocatorBas… in RegAllocator() argument 207 RangeRegAllocator::RangeRegAllocator(CodeGen *const cg, RegSpiller *const spiller) noexcept in RangeRegAllocator() argument 208 : RegAllocatorBase(cg, spiller) in RangeRegAllocator()
|
D | regScope.cpp | 29 RegScope::RegScope(CodeGen *cg) : cg_(cg), regBase_(cg_->usedRegs_) {} in RegScope() argument 50 LocalRegScope::LocalRegScope(CodeGen *cg, varbinder::Scope *scope) : RegScope(cg) in LocalRegScope() argument 86 FunctionRegScope::FunctionRegScope(CodeGen *cg) : RegScope(cg) in FunctionRegScope() argument
|
D | dynamicContext.cpp | 34 DynamicContext::DynamicContext(CodeGen *cg, LabelTarget target) : cg_(cg), target_(target), prev_(C… in DynamicContext() argument 44 LabelContext::LabelContext(CodeGen *cg, const ir::LabelledStatement *labelledStmt) in LabelContext() argument 45 : DynamicContext(cg, LabelTarget(labelledStmt->Ident()->Name())), labelledStmt_(labelledStmt) in LabelContext() 51 label_ = cg->AllocLabel(); in LabelContext() 192 auto *cg = Cg(); in AddNewCathTable() local 194 CatchTable *catchTable = cg->CreateCatchTable(assemblerType); in AddNewCathTable() 202 auto *cg = Cg(); in AddNewCathTable() local 204 CatchTable *catchTable = cg->CreateCatchTable(tryLabelPair, assemblerType); in AddNewCathTable()
|
D | switchBuilder.h | 37 SwitchBuilder(CodeGen *cg, const ir::SwitchStatement *stmt) in SwitchBuilder() argument 38 …: cg_(cg), end_(cg->AllocLabel()), labelCtx_(cg, LabelTarget(end_, LabelTarget::BREAK_LABEL)), stm… in SwitchBuilder()
|
D | envScope.cpp | 23 ScopeContext::ScopeContext(CodeGen *cg, varbinder::Scope *newScope) : cg_(cg), prevScope_(cg_->scop… in ScopeContext() argument 25 cg->scope_ = newScope; in ScopeContext()
|
D | regAllocator.h | 32 explicit AllocatorBase(CodeGen *cg) noexcept; 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 | regSpiller.h | 50 [[nodiscard]] virtual RegScope Start(CodeGen &cg) = 0; 61 void SetCodeGen(CodeGen &cg) noexcept; 77 [[nodiscard]] RegScope Start(CodeGen &cg) override; 94 [[nodiscard]] RegScope Start(CodeGen &cg) override;
|
D | regScope.h | 33 explicit RegScope(CodeGen *cg); 53 explicit LocalRegScope(CodeGen *cg, varbinder::Scope *scope); 82 explicit FunctionRegScope(CodeGen *cg);
|
D | ASTCompiler.h | 190 void SetCodeGen(CodeGen *cg) in AST_NODE_REINTERPRET_MAPPING() 192 cg_ = cg; in AST_NODE_REINTERPRET_MAPPING()
|
D | JSemitter.h | 25 …JSFunctionEmitter(const CodeGen *cg, ProgramElement *programElement) : FunctionEmitter(cg, program… in JSFunctionEmitter() argument
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/ |
D | x64_emitter.h | 26 …X64Emitter(CG &cg, assembler::Assembler &newAssembler) : Emitter(cg, ""), assmbler(newAssembler) {} in X64Emitter() argument 48 void EmitGlobalVariable(maplebe::CG &cg); 49 uint64 EmitStructure(maple::MIRConst &mirConst, maplebe::CG &cg, bool belongsToDataSec = true); 50 uint64 EmitStructure(maple::MIRConst &mirConst, maplebe::CG &cg, uint32 &subStructFieldCounts, 53 uint64 EmitArray(maple::MIRConst &mirConst, maplebe::CG &cg, bool belongsToDataSec = true); 74 void EmitDebugInfo(maplebe::CG &cg);
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/ |
D | emit.h | 334 return cg; in GetCG() 381 Emitter(CG &cg, const std::string &fileName) in Emitter() argument 382 : cg(&cg), in Emitter() 383 rangeIdx2PrefixStr(cg.GetMIRModule()->GetMPAllocator().Adapter()), in Emitter() 386 stringPtr(cg.GetMIRModule()->GetMPAllocator().Adapter()), in Emitter() 387 localStrPtr(cg.GetMIRModule()->GetMPAllocator().Adapter()), in Emitter() 388 hugeSoTargets(cg.GetMIRModule()->GetMPAllocator().Adapter()), in Emitter() 389 labdie2labidxTable(std::less<DBGDie *>(), cg.GetMIRModule()->GetMPAllocator().Adapter()), in Emitter() 390 fileMap(std::less<uint32_t>(), cg.GetMIRModule()->GetMPAllocator().Adapter()) in Emitter() 392 MIRModule &mirModule = *cg.GetMIRModule(); in Emitter() [all …]
|
D | cg_phasemanager.h | 42 cg = nullptr; in ~CgFuncPM() 57 return cg; in GetCG() 82 CG *cg = nullptr; variable
|
D | asm_emit.h | 30 AsmEmitter(CG &cg, const std::string &asmFileName) : Emitter(cg, asmFileName) in AsmEmitter() argument
|