/arkcompiler/runtime_core/bytecode_optimizer/tests/ |
D | optimize_bytecode_test.cpp | 37 void EmitAndOptimize(const std::string &abc_file_name, panda::pandasm::Program &program) const in EmitAndOptimize() 40 …EXPECT_TRUE(panda::pandasm::AsmEmitter::Emit(abc_file_name, program, nullptr, &panda_file_to_asm_m… in EmitAndOptimize() 41 …EXPECT_TRUE(panda::bytecodeopt::OptimizeBytecode(&program, &panda_file_to_asm_maps, abc_file_name,… in EmitAndOptimize() 94 auto &program = res.Value(); variable 96 auto it = program.function_table.find(fun_name); 97 EXPECT_NE(it, program.function_table.end()); 98 EmitAndOptimize("codegenTryCatch.abc", program); 149 auto &program = res.Value(); variable 151 auto it = program.function_table.find(fun_name); 153 EXPECT_NE(it, program.function_table.end()); [all …]
|
D | bcopt_type_adaption_test.cpp | 108 panda::pandasm::Program &program) const in SetTypeAnnotationForFunc() 110 auto id = std::to_string(program.literalarray_table.size()); in SetTypeAnnotationForFunc() 111 program.literalarray_table.emplace(id, arr); in SetTypeAnnotationForFunc() 120 const auto iterator = program.record_table.find(TSTYPE_ANNO_RECORD_NAME.data()); in SetTypeAnnotationForFunc() 121 EXPECT_NE(iterator, program.record_table.end()); in SetTypeAnnotationForFunc() 123 …EXPECT_TRUE(program.record_table.find(TSTYPE_ANNO_RECORD_NAME.data())->second.metadata->IsAnnotati… in SetTypeAnnotationForFunc() 127 TypeInfoIndex AddAnTypeLiteralArray(panda::pandasm::Program &program) const in AddAnTypeLiteralArray() 138 const std::string litKey = std::to_string(program.literalarray_table.size()); in AddAnTypeLiteralArray() 139 program.literalarray_table.emplace(litKey, arr); in AddAnTypeLiteralArray() 144 void EmitAndOptimize(const std::string &abcFileName, panda::pandasm::Program &program) const in EmitAndOptimize() [all …]
|
D | excluded_keys_test.cpp | 34 void EmitAndOptimize(const std::string &abc_file_name, panda::pandasm::Program &program) const in EmitAndOptimize() 37 …EXPECT_TRUE(panda::pandasm::AsmEmitter::Emit(abc_file_name, program, nullptr, &panda_file_to_asm_m… in EmitAndOptimize() 38 …EXPECT_TRUE(panda::bytecodeopt::OptimizeBytecode(&program, &panda_file_to_asm_maps, abc_file_name,… in EmitAndOptimize() 84 auto &program = res.Value(); variable 86 auto it = program.function_table.find(fun_name); 87 EXPECT_NE(it, program.function_table.end()); 90 EmitAndOptimize("ExcludedKeysTest1.abc", program);
|
D | const_array_resolver_test.cpp | 40 pandasm::Program program; in TEST_F() local 43 IrInterfaceTest interface(&program, &maps); in TEST_F() 83 pandasm::Program program; in TEST_F() local 86 IrInterfaceTest interface(&program, &maps); in TEST_F() 121 pandasm::Program program; in TEST_F() local 124 IrInterfaceTest interface(&program, &maps); in TEST_F() 151 pandasm::Program program; in TEST_F() local 154 IrInterfaceTest interface(&program, &maps); in TEST_F() 182 pandasm::Program program; in TEST_F() local 185 IrInterfaceTest interface(&program, &maps); in TEST_F() [all …]
|
D | bitops_bitwise_and_test.cpp | 69 auto &program = res.Value(); in TEST_F() local 71 ASSERT_TRUE(ParseToGraph(&program, "main")); in TEST_F() 120 auto &function = program.function_table.at(sig_main); in TEST_F()
|
/arkcompiler/ets_frontend/merge_abc/src/ |
D | assemblyProgramProto.cpp | 19 void Program::Serialize(const panda::pandasm::Program &program, protoPanda::Program &protoProgram) in Serialize() argument 21 protoProgram.set_lang(static_cast<uint32_t>(program.lang)); in Serialize() 23 for (const auto &[name, record] : program.record_table) { in Serialize() 30 for (const auto &[name, func] : program.function_table) { in Serialize() 37 for (const auto &[name, array] : program.literalarray_table) { in Serialize() 43 for (const auto &str : program.strings) { in Serialize() 46 for (const auto &type : program.array_types) { in Serialize() 52 void Program::Deserialize(const protoPanda::Program &protoProgram, panda::pandasm::Program &program, in Deserialize() argument 55 program.lang = static_cast<panda::panda_file::SourceLang>(protoProgram.lang()); in Deserialize() 63 program.record_table.insert({name, std::move(record)}); in Deserialize() [all …]
|
D | protobufSnapshotGenerator.cpp | 22 void ProtobufSnapshotGenerator::GenerateSnapshot(const panda::pandasm::Program &program, const std:… in GenerateSnapshot() argument 26 Program::Serialize(program, protoProgram); in GenerateSnapshot() 73 auto *program = allocator->New<panda::pandasm::Program>(); in GetCacheContext() local 74 Program::Deserialize(protoCache.program(), *program, allocator); in GetCacheContext() 76 …*programCache = allocator->New<panda::es2panda::util::ProgramCache>(hashCode, std::move(*program)); in GetCacheContext() 87 Program::Serialize(programCache->program, *protoProgram); in UpdateCacheFile()
|
D | assemblyProgramProto.h | 29 … static void Serialize(const panda::pandasm::Program &program, protoPanda::Program &protoProgram); 30 … static void Deserialize(const protoPanda::Program &protoProgram, panda::pandasm::Program &program,
|
/arkcompiler/ets_frontend/es2panda/util/ |
D | programCache.h | 25 panda::pandasm::Program program; member 28 …ache(uint32_t hashCode, panda::pandasm::Program program) : hashCode(hashCode), program(std::move(p… in ProgramCache() 32 ProgramCache(uint32_t hashCode, panda::pandasm::Program program, bool needUpdateCache) in ProgramCache() 33 : hashCode(hashCode), program(std::move(program)), needUpdateCache(needUpdateCache) in ProgramCache()
|
/arkcompiler/runtime_core/assembler/ |
D | assembly-emitter.cpp | 130 …::string AsmEmitter::GetMethodSignatureFromProgram(const std::string &name, const Program &program) in GetMethodSignatureFromProgram() argument 136 const auto it_synonym = program.function_synonyms.find(name); in GetMethodSignatureFromProgram() 137 const bool is_method_known = (it_synonym != program.function_synonyms.end()); in GetMethodSignatureFromProgram() 257 …ontainer *container, const Value *value, std::vector<ScalarValueItem> *out, const Program &program, in CreateScalarMethodValueItem() argument 262 name = GetMethodSignatureFromProgram(name, program); in CreateScalarMethodValueItem() 280 …ontainer *container, const Value *value, std::vector<ScalarValueItem> *out, const Program &program, in CreateScalarLiteralArrayItem() argument 317 …ontainer *container, const Value *value, std::vector<ScalarValueItem> *out, const Program &program, in CreateScalarAnnotationValueItem() argument 321 auto *annotation_item = CreateAnnotationItem(container, annotation, program, entities); in CreateScalarAnnotationValueItem() 336 … std::vector<ScalarValueItem> *out, const Program &program, in CreateScalarValueItem() argument 369 … return CreateScalarMethodValueItem(container, value, out, program, entities.method_items); in CreateScalarValueItem() [all …]
|
D | assembly-emitter.h | 52 …static bool Emit(panda_file::ItemContainer *items, const Program &program, PandaFileToPandaAsmMaps… 55 …static bool Emit(panda_file::Writer *writer, const Program &program, std::map<std::string, size_t>… 59 …static bool Emit(const std::string &filename, const Program &program, std::map<std::string, size_t… 65 static std::unique_ptr<const panda_file::File> Emit(const Program &program, 74 static void MakeStringItems(panda_file::ItemContainer *items, const Program &program, 76 static void MakeLiteralItems(panda_file::ItemContainer *items, const Program &program, 78 static void MakeArrayTypeItems(panda_file::ItemContainer *items, const Program &program, 81 panda_file::ItemContainer *items, const Program &program, AsmEntityCollections &entities, 84 …static bool HandleBaseRecord(panda_file::ItemContainer *items, const Program &program, const std::… 86 …static bool HandleInterfaces(panda_file::ItemContainer *items, const Program &program, const std::… [all …]
|
D | pandasm.cpp | 142 bool DumpProgramInJson(panda::pandasm::Program &program, const panda::PandArg<std::string> &scopes_… in DumpProgramInJson() argument 152 dump_file << program.JsonDump(); in DumpProgramInJson() 158 bool EmitProgramInBinary(panda::pandasm::Program &program, panda::PandArgParser &pa_parser, in EmitProgramInBinary() argument 168 …if (!panda::pandasm::AsmEmitter::Emit(output_file.GetValue(), program, statp, mapsp, emit_debug_in… in EmitProgramInBinary() 190 bool BuildFiles(panda::pandasm::Program &program, panda::PandArgParser &pa_parser, in BuildFiles() argument 194 if (!DumpProgramInJson(program, scopes_file)) { in BuildFiles() 198 if (!EmitProgramInBinary(program, pa_parser, output_file, optimize, size_stat)) { in BuildFiles() 259 auto &program = res.Value(); in main() local 266 …if (!panda::pandasm::BuildFiles(program, pa_parser, output_file, optimize, size_stat, scopes_file)… in main()
|
D | pandasm.h | 39 bool DumpProgramInJson(panda::pandasm::Program &program, const panda::PandArg<std::string> &scopes_… 41 bool EmitProgramInBinary(panda::pandasm::Program &program, panda::PandArgParser &pa_parser, 45 bool BuildFiles(panda::pandasm::Program &program, panda::PandArgParser &pa_parser,
|
D | assembly-function.h | 171 …void EmitLocalVariable(panda_file::LineNumberProgramItem *program, panda_file::ItemContainer *cont… 174 …void EmitNumber(panda_file::LineNumberProgramItem *program, std::vector<uint8_t> *constant_pool, u… 176 …void EmitLineNumber(panda_file::LineNumberProgramItem *program, std::vector<uint8_t> *constant_poo… 180 …void EmitColumnNumber(panda_file::LineNumberProgramItem *program, std::vector<uint8_t> *constant_p…
|
/arkcompiler/ets_frontend/es2panda/compiler/core/ |
D | compilerImpl.cpp | 39 panda::pandasm::Program *CompilerImpl::Compile(parser::Program *program, const es2panda::CompilerOp… in Compile() argument 42 …bool isTypeExtractorEnabled = ((program->Extension() == ScriptExtension::TS) && options.typeExtrac… in Compile() 43 …CompilerContext context(program->Binder(), options.isDebug, options.isDebuggerEvaluateExpressionMo… in Compile() 45 program->RecordName(), patchFixHelper_); in Compile() 51 extractor_ = std::make_unique<extractor::TypeExtractor>(rootNode, program->IsDtsFile(), in Compile() 53 extractor_->StartTypeExtractor(program); in Compile() 74 if (program->Extension() == ScriptExtension::TS) { in Compile() 77 std::string(program->RecordName())); in Compile()
|
/arkcompiler/ets_runtime/ecmascript/ts_types/tests/ |
D | ts_type_test_helper.h | 30 static void AddLiteral(pandasm::Program &program, const std::string &literalId, in AddLiteral() argument 40 program.literalarray_table.emplace(literalId, literalArray); in AddLiteral() 43 static void AddTypeSummary(pandasm::Program &program, const std::vector<std::string> &typeIds) in AddTypeSummary() argument 46 AddSummaryLiteral(program, typeSummaryId, typeIds); in AddTypeSummary() 49 auto iter = program.record_table.find(testStr); in AddTypeSummary() 50 EXPECT_NE(iter, program.record_table.end()); in AddTypeSummary() 51 if (iter != program.record_table.end()) { in AddTypeSummary() 62 static void AddCommonJsField(pandasm::Program &program) in AddCommonJsField() argument 65 auto iter = program.record_table.find(testStr); in AddCommonJsField() 66 EXPECT_NE(iter, program.record_table.end()); in AddCommonJsField() [all …]
|
D | ts_type_parser_test.cpp | 93 auto &program = res.Value(); in HWTEST_F_L0() local 121 TSTypeTestHelper::AddLiteral(program, classId, classTags, classValues); in HWTEST_F_L0() 124 TSTypeTestHelper::AddTypeSummary(program, { classId }); in HWTEST_F_L0() 125 TSTypeTestHelper::AddCommonJsField(program); in HWTEST_F_L0() 129 EXPECT_TRUE(pandasm::AsmEmitter::Emit(abcFileName, program, statp, mapsp, false)); in HWTEST_F_L0() 173 auto &program = res.Value(); in HWTEST_F_L0() local 194 TSTypeTestHelper::AddLiteral(program, functionId, functionTags, functionValues); in HWTEST_F_L0() 197 TSTypeTestHelper::AddTypeSummary(program, { functionId }); in HWTEST_F_L0() 198 TSTypeTestHelper::AddCommonJsField(program); in HWTEST_F_L0() 202 EXPECT_TRUE(pandasm::AsmEmitter::Emit(abcFileName, program, statp, mapsp, false)); in HWTEST_F_L0() [all …]
|
D | ts_type_table_generator_test.cpp | 97 auto &program = res.Value(); in HWTEST_F_L0() local 100 TSTypeTestHelper::AddTypeSummary(program, {}); in HWTEST_F_L0() 101 TSTypeTestHelper::AddCommonJsField(program); in HWTEST_F_L0() 105 EXPECT_TRUE(pandasm::AsmEmitter::Emit(abcFileName, program, statp, mapsp, false)); in HWTEST_F_L0()
|
/arkcompiler/ets_frontend/arkguard/src/cli/ |
D | SecHarmony.ts | 18 import {program} from 'commander'; 36 let configPath: string = program.opts()?.configPath; 39 program.args.forEach((value) => { 55 program.name('SecHarmony')
|
/arkcompiler/runtime_core/assembler/tests/ |
D | assembler_emitter_test.cpp | 924 auto program = par.Parse(source, source_filename); variable 926 auto pf = AsmEmitter::Emit(program.Value()); 947 auto program = par.Parse(v); variable 949 auto pf = AsmEmitter::Emit(program.Value()); 974 auto program = par.Parse(source, source_filename); variable 979 program.Value().record_table.at("R").field_list[0].metadata->SetValue(insn_order); 981 auto pf = AsmEmitter::Emit(program.Value()); 984 …program.Value().literalarray_table.at("array").literals_[0].tag_ = panda_file::LiteralTag::LITERAL… 985 … program.Value().literalarray_table.at("array").literals_[0].value_.emplace<std::string>("array"); 987 program.Value().record_table.at("R").field_list[0].metadata->SetValue(insn_order_lite); [all …]
|
/arkcompiler/ets_frontend/arkguard/src/utils/ |
D | TypeUtils.ts | 86 let program: Program = createProgram([ast.fileName], option, customHost); 87 return program.getTypeChecker();
|
/arkcompiler/ets_frontend/ts2panda/tests/types/ |
D | typeUtils.ts | 48 let program = ts.createProgram(filePath, options); variable 49 let sourceFile = program.getSourceFile(fileName); 51 typeChecker.setTypeChecker(program.getTypeChecker());
|
/arkcompiler/ets_frontend/es2panda/parser/context/ |
D | parserContext.h | 71 explicit ParserContext(const Program *program) : program_(program) {} in DEFINE_BITOPS()
|
/arkcompiler/ets_frontend/ts2panda/src/ |
D | index.ts | 77 let program = ts.createProgram(fileNames, options, host); 79 typeChecker.setTypeChecker(program.getTypeChecker()); 82 for (let sourceFile of program.getSourceFiles()) { 89 …if (sourceFile.isDeclarationFile && !program.isSourceFileDefaultLibrary(sourceFile) && originFileN… 96 if (checkDiagnosticsError(program)) { 103 let emitResult = program.emit( 202 .getPreEmitDiagnostics(program) 498 function checkDiagnosticsError(program: ts.Program): boolean { 501 .getPreEmitDiagnostics(program);
|
/arkcompiler/ets_frontend/es2panda/aot/ |
D | emitFiles.cpp | 54 … auto emitSingleAbcJob = new EmitSingleAbcJob(outputFileName, &(info.second->program), statp_); in Schedule() 84 progs.push_back(&(info.second->program)); in Run()
|