Home
last modified time | relevance | path

Searched refs:prog (Results 1 – 25 of 33) sorted by relevance

12

/arkcompiler/runtime_core/disassembler/tests/
Dmetadata_test.cpp.in34 std::string prog = ss.str(); local
36 EXPECT_TRUE(prog.find(".function u1 GGG() <native, static>") != std::string::npos);
37 EXPECT_TRUE(prog.find(".function u1 FFF() <noimpl, static>") != std::string::npos);
38 … EXPECT_TRUE(prog.find(".function u1 A._cctor_(u1 a0) <cctor, static> {\n}") != std::string::npos);
39 EXPECT_TRUE(prog.find(".function u1 A.EEE(A a0, u1 a1) {\n") != std::string::npos);
40 EXPECT_TRUE(prog.find("\tcall.short DDD:(u1), v0") != std::string::npos);
41 EXPECT_TRUE(prog.find(".function u1 A._ctor_(u1 a0) <ctor, static> {\n}") != std::string::npos);
42 EXPECT_TRUE(prog.find(".function u1 DDD(u1 a0) <external, static>") != std::string::npos);
43 EXPECT_TRUE(prog.find("initobj.short A._ctor_:(u1), v0") != std::string::npos);
44 EXPECT_TRUE(prog.find("initobj.short A._cctor_:(u1), v1") != std::string::npos);
[all …]
/arkcompiler/ets_frontend/es2panda/compiler/core/emitter/
DtypeExtractorEmitter.h38 …static void GenTypeInfoRecord(panda::pandasm::Program *prog, bool typeFlag, int64_t typeSummaryInd…
40 …static void GenTypeInfoRecordForMergeABC(panda::pandasm::Program *prog, bool typeFlag, int64_t typ…
42 …static void GenTypeLiteralBuffers(panda::pandasm::Program *prog, const extractor::TypeRecorder *re…
59 void GenFunctionTypeInfo(panda::pandasm::Program *prog);
60 void GenExportTypeInfo(panda::pandasm::Program *prog);
61 void GenDeclareTypeInfo(panda::pandasm::Program *prog);
64 …void GenImportOrDeclareTypeInfo(panda::pandasm::Program *prog, const extractor::TypeRecorder *reco…
DtypeExtractorEmitter.cpp35 auto prog = pg_->Context()->GetEmitter()->GetProgram(); in TypeExtractorEmitter() local
36 GenFunctionTypeInfo(prog); in TypeExtractorEmitter()
39 GenExportTypeInfo(prog); in TypeExtractorEmitter()
42 GenDeclareTypeInfo(prog); in TypeExtractorEmitter()
90 void TypeExtractorEmitter::GenFunctionTypeInfo(panda::pandasm::Program *prog) in GenFunctionTypeInfo() argument
136 prog->literalarray_table.emplace(literalId, std::move(literalArrayInstance)); in GenFunctionTypeInfo()
146 void TypeExtractorEmitter::GenImportOrDeclareTypeInfo(panda::pandasm::Program *prog, in GenImportOrDeclareTypeInfo() argument
175 prog->literalarray_table.emplace(literalId, std::move(literalArrayInstance)); in GenImportOrDeclareTypeInfo()
182 void TypeExtractorEmitter::GenExportTypeInfo(panda::pandasm::Program *prog) in GenExportTypeInfo() argument
185 GenImportOrDeclareTypeInfo<true>(prog, pg_->Context()->TypeRecorder(), in GenExportTypeInfo()
[all …]
/arkcompiler/runtime_core/bytecode_optimizer/tests/
Dcodegen_test.cpp109 Program *prog = nullptr; in __anon0774c0120102() local
110 BytecodeGen bc_gen(graph, function, interface, prog); in __anon0774c0120102()
147 Program *prog = nullptr; in __anon0774c0120202() local
148 BytecodeGen bc_gen(graph, function, interface, prog); in __anon0774c0120202()
185 Program *prog = nullptr; in __anon0774c0120302() local
187 BytecodeGen graph_visitor(graph, function, interface, prog); in __anon0774c0120302()
247 Program *prog = nullptr; in __anon0774c0120402() local
248 BytecodeGen bc_gen(graph, function, interface, prog); in __anon0774c0120402()
284 Program *prog = nullptr; in __anon0774c0120502() local
288 BytecodeOptIrInterface interface(&maps, prog); in __anon0774c0120502()
[all …]
Dcommon.h78 explicit IrInterfaceTest(pandasm::Program *prog = nullptr,
80 : BytecodeOptIrInterface(maps, prog) in BytecodeOptIrInterface() argument
194 auto &prog = res.Value();
195 return ParseToGraph(&prog, func_name);
198 bool ParseToGraph(pandasm::Program *prog, const std::string &func_name) in ParseToGraph() argument
200 pfile_ = pandasm::AsmEmitter::Emit(*prog, &maps_); in ParseToGraph()
201 ir_interface_ = std::make_unique<bytecodeopt::BytecodeOptIrInterface>(&maps_, prog); in ParseToGraph()
716 void CheckOtherPasses(panda::pandasm::Program *prog, std::string fun_name) in CheckOtherPasses() argument
729 ASSERT_TRUE(prog->function_table.find(fun_name) != prog->function_table.end()); in CheckOtherPasses()
730 auto &function = prog->function_table.at(fun_name); in CheckOtherPasses()
[all …]
Dgraph_test.h77 void TestBuildGraphFromFunc(pandasm::Program &prog, const char *method_name, in TestBuildGraphFromFunc() argument
81 auto pfile = pandasm::AsmEmitter::Emit(prog, &maps); in TestBuildGraphFromFunc()
/arkcompiler/ets_frontend/ts2panda/ts2abc/
Dts2abc.cpp655 panda::pandasm::Program &prog) in ParseFunctionTypeInfo() argument
694 prog.literalarray_table.emplace(litId, std::move(literalarrayInstance)); in ParseFunctionTypeInfo()
706 …atic std::string CreateLiteralArrayForType(const Json::Value &types, panda::pandasm::Program &prog) in CreateLiteralArrayForType() argument
756 prog.literalarray_table.emplace(litId, std::move(literalarrayInstance)); in CreateLiteralArrayForType()
761 panda::pandasm::Program &prog) in ParseFunctionExportedType() argument
774 std::string litId = CreateLiteralArrayForType(exportedTypes, prog); in ParseFunctionExportedType()
788 panda::pandasm::Program &prog) in ParseFunctionDeclaredType() argument
801 std::string litId = CreateLiteralArrayForType(declaredTypes, prog); in ParseFunctionDeclaredType()
831 … panda::pandasm::Function ParseFunction(const Json::Value &function, panda::pandasm::Program &prog) in ParseFunction() argument
839 ParseFunctionTypeInfo(function, pandaFunc, prog); in ParseFunction()
[all …]
/arkcompiler/runtime_core/bytecode_optimizer/
Doptimize_bytecode.cpp111 … std::unordered_map<int32_t, TypeInfoIndex> *order_type_map, const pandasm::Program *prog) in ExtractTypeInfo() argument
130 auto array_iter = prog->literalarray_table.find(key); in ExtractTypeInfo()
131 ASSERT(array_iter != prog->literalarray_table.end()); in ExtractTypeInfo()
157 … compiler::RuntimeInterface::MethodPtr method_ptr, const pandasm::Program *prog) in BuildMapFromPcToType() argument
160 ExtractTypeInfo(function, graph->GetRuntime(), &tmp_order_type_map, prog); in BuildMapFromPcToType()
287 bool OptimizeFunction(pandasm::Program *prog, const pandasm::AsmEmitter::PandaFileToPandaAsmMaps *m… in OptimizeFunction() argument
295 auto ir_interface = BytecodeOptIrInterface(maps, prog); in OptimizeFunction()
300 auto it = prog->function_table.find(func_name); in OptimizeFunction()
301 if (it == prog->function_table.end()) { in OptimizeFunction()
317 BuildMapFromPcToType(function, graph, method_ptr, prog); in OptimizeFunction()
[all …]
Doptimize_bytecode.h26 bool OptimizeBytecode(pandasm::Program *prog, const pandasm::AsmEmitter::PandaFileToPandaAsmMaps *m…
Dir_interface.h29 pandasm::Program *prog = nullptr)
30 : prog_(prog), maps_(maps) in prog_() argument
Dcodegen.h42 const BytecodeOptIrInterface *iface, pandasm::Program *prog) in BytecodeGen() argument
43 : compiler::Optimization(graph), function_(function), ir_interface_(iface), program_(prog) in BytecodeGen()
/arkcompiler/ets_frontend/es2panda/util/
DmoduleHelpers.cpp46 auto *prog = allocator->New<panda::pandasm::Program>(); in CompileNpmModuleEntryList() local
62 prog->record_table.emplace(recordName, std::move(*entryRecord)); in CompileNpmModuleEntryList()
65 auto *cache = allocator->New<util::ProgramCache>(hash, std::move(*prog), true); in CompileNpmModuleEntryList()
DpatchFix.cpp327 void PatchFix::HandleModifiedClasses(panda::pandasm::Program *prog) in HandleModifiedClasses() argument
331 if (!prog->function_table.at(func).metadata->IsForeign()) { in HandleModifiedClasses()
341 if (prog->function_table.at(func).metadata->IsForeign()) { in HandleModifiedClasses()
342 prog->function_table.at(func).metadata->RemoveAttribute(EXTERNAL_ATTRIBUTE); in HandleModifiedClasses()
348 void PatchFix::HandleModifiedDefinedClassFunc(panda::pandasm::Program *prog) in HandleModifiedDefinedClassFunc() argument
353 prog->function_table.at(funcInfo.first).metadata->IsForeign()) { in HandleModifiedDefinedClassFunc()
354prog->function_table.at(funcInfo.first).metadata->RemoveAttribute(EXTERNAL_ATTRIBUTE); in HandleModifiedDefinedClassFunc()
426 void PatchFix::Finalize(panda::pandasm::Program **prog) in Finalize() argument
432 HandleModifiedClasses(*prog); in Finalize()
434 HandleModifiedDefinedClassFunc(*prog); in Finalize()
[all …]
DpatchFix.h66 void Finalize(panda::pandasm::Program **prog);
109 void HandleModifiedClasses(panda::pandasm::Program *prog);
110 void HandleModifiedDefinedClassFunc(panda::pandasm::Program *prog);
/arkcompiler/ets_frontend/es2panda/compiler/core/
DcompileQueue.cpp99 auto *prog = compiler.CompileFile(*options_, src_, symbolTable_); in Run() local
100 if (prog == nullptr) { in Run()
105 util::Helpers::OptimizeProgram(prog, src_->fileName); in Run()
110 auto *cache = allocator_->New<util::ProgramCache>(src_->hash, std::move(*prog), true); in Run()
DcompilerImpl.cpp83 void CompilerImpl::DumpAsm(const panda::pandasm::Program *prog) in DumpAsm() argument
85 Emitter::DumpAsm(prog); in DumpAsm()
DcompilerImpl.h48 static void DumpAsm(const panda::pandasm::Program *prog);
/arkcompiler/ets_frontend/es2panda/aot/
Dmain.cpp53 static void GenerateBase64Output(panda::pandasm::Program *prog) in GenerateBase64Output() argument
55 auto pandaFile = panda::pandasm::AsmEmitter::Emit(*prog); in GenerateBase64Output()
128 auto *prog = &(programsInfo.begin()->second->program); in GenerateProgram() local
130 GenerateBase64Output(prog); in GenerateProgram()
135 … panda::proto::ProtobufSnapshotGenerator::GenerateSnapshot(*prog, options->compilerProtoOutput()); in GenerateProgram()
DemitFiles.h27 explicit EmitSingleAbcJob(const std::string &outputFileName, panda::pandasm::Program *prog, in EmitSingleAbcJob() argument
29 : outputFileName_(outputFileName), prog_(prog), statp_(statp) {}; in EmitSingleAbcJob()
/arkcompiler/runtime_core/compiler/tests/
DirBuilder_tests.cpp52 void TestBuildGraphFromFunc(pandasm::Program &prog, const char *methodName, const Callback &cb) in TestBuildGraphFromFunc() argument
55 auto pfile = pandasm::AsmEmitter::Emit(prog, &maps); in TestBuildGraphFromFunc()
60 … cda.EnumerateMethods([&prog, maps, methodName, &cb](panda_file::MethodDataAccessor &mda) { in TestBuildGraphFromFunc()
61 auto ir_interface = panda::bytecodeopt::BytecodeOptIrInterface(&maps, &prog); in TestBuildGraphFromFunc()
144 auto &prog = res.Value(); variable
145 for (auto &[name, func] : prog.function_table) {
153 TestBuildGraphFromFunc(prog, "foo:(any,any,any)", [](Graph* graph) { in __anon1538a8fc0302()
270 auto &prog = res.Value(); variable
271 EXPECT_TRUE(prog.function_table.size() == 1);
272 for (auto &[name, func] : prog.function_table) {
[all …]
/arkcompiler/ets_frontend/es2panda/
Des2panda.cpp108 auto *prog = compiler_->Compile(&ast, options, debugInfoSourceFile, pkgName); in Compile() local
111 return prog; in Compile()
152 void Compiler::DumpAsm(const panda::pandasm::Program *prog) in DumpAsm() argument
154 compiler::CompilerImpl::DumpAsm(prog); in DumpAsm()
/arkcompiler/ets_frontend/merge_abc/src/
Dmain.cpp72 auto *prog = allocator.New<panda::pandasm::Program>(); in Run() local
73 programs.emplace_back(prog); in Run()
DprotobufSnapshotGenerator.h27 static void GenerateProgram(const std::string &inputName, panda::pandasm::Program &prog,
DprotobufSnapshotGenerator.cpp39 …obufSnapshotGenerator::GenerateProgram(const std::string &inputName, panda::pandasm::Program &prog, in GenerateProgram() argument
54 Program::Deserialize(proto_program, prog, allocator); in GenerateProgram()
/arkcompiler/ets_frontend/es2panda/compiler/debugger/
DdebuginfoDumper.h29 explicit DebugInfoDumper(const pandasm::Program *prog);

12