Home
last modified time | relevance | path

Searched refs:CodeItem (Results 1 – 11 of 11) sorted by relevance

/arkcompiler/runtime_core/libpandafile/tests/
Ddebug_info_extractor_test.cpp55 CodeItem *code_item = container->CreateItem<CodeItem>(4, 1, instructions); in PreparePandaFile()
83 CodeItem *code_item_bar = container->CreateItem<CodeItem>(0, 2, instructions); in PreparePandaFile()
105 CodeItem *code_item_baz = container->CreateItem<CodeItem>(0, 2, instructions); in PreparePandaFile()
Dfile_item_container_test.cpp419 CodeItem *code_item = container.CreateItem<CodeItem>(0, 2, instructions);
836 CodeItem *code_item_1 = container.CreateItem<CodeItem>(0, 2, instructions_1);
848 CodeItem *code_item_2 = container.CreateItem<CodeItem>(0, 2, instructions_2);
857 CodeItem *code_item_3 = container.CreateItem<CodeItem>(0, 2, instructions_3);
922 EXPECT_EQ(static_cast<CodeItem *>((*item).get())->GetMethodNames()[0], "AA::foo1");
925 EXPECT_EQ(static_cast<CodeItem *>((*item).get())->GetMethodNames()[0], "BB::foo2");
928 EXPECT_EQ(static_cast<CodeItem *>((*item).get())->GetMethodNames()[0], "Test::foo3");
929 EXPECT_EQ(static_cast<CodeItem *>((*item).get())->GetMethodNames()[1], "Test::foo4");
996 EXPECT_EQ(static_cast<CodeItem *>((*item).get())->GetMethodNames()[0], "BB::foo2");
999 EXPECT_EQ(static_cast<CodeItem *>((*item).get())->GetMethodNames()[0], "Test::foo3");
[all …]
Dpgo_test.cpp39 CodeItem *code_item_1 = container.CreateItem<CodeItem>(0, 2, instructions_1); in CreateItems()
/arkcompiler/runtime_core/libpandafile/
Dfile_items.cpp719 size_t CodeItem::CatchBlock::CalculateSize() const in CalculateSize()
727 bool CodeItem::CatchBlock::Write(Writer *writer) in Write()
749 void CodeItem::TryBlock::ComputeLayout() in ComputeLayout()
761 size_t CodeItem::TryBlock::CalculateSizeWithoutCatchBlocks() const in CalculateSizeWithoutCatchBlocks()
767 size_t CodeItem::TryBlock::CalculateSize() const in CalculateSize()
778 bool CodeItem::TryBlock::Write(Writer *writer) in Write()
803 void CodeItem::ComputeLayout() in ComputeLayout()
816 size_t CodeItem::CalculateSizeWithoutTryBlocks() const in CalculateSizeWithoutTryBlocks()
826 size_t CodeItem::GetCodeSize() const in GetCodeSize()
831 size_t CodeItem::CalculateSize() const in CalculateSize()
[all …]
Dfile_items.h586 class CodeItem; variable
869 void SetCode(CodeItem *code) in SetCode()
921 CodeItem *GetCode() const in GetCode()
975 CodeItem *code_;
1308 class CodeItem : public BaseItem {
1369 CodeItem(size_t num_vregs, size_t num_args, std::vector<uint8_t> instructions) in CodeItem() function
1374 CodeItem() = default;
1376 ~CodeItem() override = default;
1451 DEFAULT_MOVE_SEMANTIC(CodeItem);
1452 DEFAULT_COPY_SEMANTIC(CodeItem);
Dpgo.cpp117 auto method_names = static_cast<CodeItem *>(item.get())->GetMethodNames(); in ProfileGuidedRelayout()
Dfile_item_container.cpp737 num_ins += static_cast<CodeItem *>(item.get())->GetNumInstructions(); in GetStat()
738 codesize += static_cast<CodeItem *>(item.get())->GetCodeSize(); in GetStat()
Dfile_reader.cpp669 …container_.CreateItem<CodeItem>(code_acc.GetNumVregs(), code_acc.GetNumArgs(), std::move(instructi… in CreateMethodItem()
672 std::vector<CodeItem::CatchBlock> catch_blocks; in CreateMethodItem()
685 …catch_blocks.emplace_back(CodeItem::CatchBlock(method_item, catch_type_item, catch_block.GetHandle… in CreateMethodItem()
690CodeItem::TryBlock(try_block.GetStartPc(), try_block.GetLength(), std::move(catch_blocks))); in CreateMethodItem()
Dfile_item_container.h211 if (std::is_same_v<T, CodeItem>) { in GetInsertPosition()
/arkcompiler/runtime_core/assembler/
Dassembly-function.h189 std::vector<panda_file::CodeItem::TryBlock> BuildTryBlocks(
Dassembly-emitter.cpp39 using panda::panda_file::CodeItem;
1093 auto *code = items->CreateItem<CodeItem>(); in SetCodeAndDebugInfo()
1709 std::vector<CodeItem::TryBlock> Function::BuildTryBlocks( in BuildTryBlocks()
1713 std::vector<CodeItem::TryBlock> try_blocks; in BuildTryBlocks()
1728 std::vector<CodeItem::CatchBlock> catch_block_items; in BuildTryBlocks()