Home
last modified time | relevance | path

Searched refs:panda_file (Results 1 - 25 of 669) sorted by relevance

12345678910>>...27

/arkcompiler/runtime_core/static_core/assembler/
H A Dassembly-literals.h30 panda_file::LiteralTag tag;
37 case panda_file::LiteralTag::ARRAY_I8: in IsSigned()
38 case panda_file::LiteralTag::ARRAY_I16: in IsSigned()
39 case panda_file::LiteralTag::ARRAY_I32: in IsSigned()
40 case panda_file::LiteralTag::ARRAY_I64: in IsSigned()
41 case panda_file::LiteralTag::INTEGER: in IsSigned()
42 case panda_file::LiteralTag::BIGINT: in IsSigned()
52 case panda_file::LiteralTag::ARRAY_U1: in IsArray()
53 case panda_file::LiteralTag::ARRAY_U8: in IsArray()
54 case panda_file in IsArray()
[all...]
H A Dassembly-emitter.h46 std::unordered_map<std::string, panda_file::BaseMethodItem *> methodItems;
47 std::unordered_map<std::string, panda_file::BaseFieldItem *> fieldItems;
48 std::unordered_map<std::string, panda_file::BaseClassItem *> classItems;
49 std::unordered_map<std::string_view, panda_file::StringItem *> stringItems;
50 std::unordered_map<std::string, panda_file::LiteralArrayItem *> literalarrayItems;
53 PANDA_PUBLIC_API static bool Emit(panda_file::ItemContainer *items, const Program &program,
55 ark::panda_file::pgo::ProfileOptimizer *profileOpt = nullptr);
58 PANDA_PUBLIC_API static bool Emit(panda_file::Writer *writer, const Program &program,
61 ark::panda_file::pgo::ProfileOptimizer *profileOpt = nullptr);
67 ark::panda_file
[all...]
H A Dassembly-type.h80 panda_file::Type::TypeId GetId() const in GetId()
88 return elem != panda_file::Type::TypeId::REFERENCE; in IsArrayContainsPrimTypes()
103 return typeId_ == panda_file::Type::TypeId::REFERENCE; in IsObject()
108 return typeId_ == panda_file::Type::TypeId::TAGGED; in IsTagged()
113 return typeId_ == panda_file::Type::TypeId::U1 || typeId_ == panda_file::Type::TypeId::U8 || in IsIntegral()
114 typeId_ == panda_file::Type::TypeId::I8 || typeId_ == panda_file::Type::TypeId::U16 || in IsIntegral()
115 typeId_ == panda_file::Type::TypeId::I16 || typeId_ == panda_file in IsIntegral()
[all...]
/arkcompiler/runtime_core/assembler/
H A Dassembly-literals.h30 panda_file::LiteralTag tag_;
37 case panda_file::LiteralTag::ARRAY_U1: in IsBoolValue()
38 case panda_file::LiteralTag::BOOL: in IsBoolValue()
48 case panda_file::LiteralTag::ARRAY_U8: in IsByteValue()
49 case panda_file::LiteralTag::ARRAY_I8: in IsByteValue()
50 case panda_file::LiteralTag::TAGVALUE: in IsByteValue()
51 case panda_file::LiteralTag::ACCESSOR: in IsByteValue()
52 case panda_file::LiteralTag::NULLVALUE: in IsByteValue()
62 case panda_file::LiteralTag::ARRAY_U16: in IsShortValue()
63 case panda_file in IsShortValue()
[all...]
H A Dassembly-emitter.h45 std::unordered_map<std::string, panda_file::BaseMethodItem *> method_items;
46 std::unordered_map<std::string, panda_file::BaseFieldItem *> field_items;
47 std::unordered_map<std::string, panda_file::BaseClassItem *> class_items;
48 std::unordered_map<std::string, panda_file::StringItem *> string_items;
49 std::unordered_map<std::string, panda_file::LiteralArrayItem *> literalarray_items;
52 static bool Emit(panda_file::ItemContainer *items, const Program &program, PandaFileToPandaAsmMaps *maps = nullptr,
53 bool emit_debug_info = true, panda::panda_file::pgo::ProfileOptimizer *profile_opt = nullptr);
55 static bool Emit(panda_file::Writer *writer, const Program &program, std::map<std::string, size_t> *stat = nullptr,
57 panda::panda_file::pgo::ProfileOptimizer *profile_opt = nullptr,
58 uint8_t api = 0, std::string subApi = panda_file
[all...]
H A Dassembly-type.h79 panda_file::Type::TypeId GetId() const in GetId()
87 return elem != panda_file::Type::TypeId::REFERENCE; in IsArrayContainsPrimTypes()
102 return type_id_ == panda_file::Type::TypeId::REFERENCE; in IsObject()
107 return type_id_ == panda_file::Type::TypeId::TAGGED; in IsTagged()
112 return type_id_ == panda_file::Type::TypeId::U1 || type_id_ == panda_file::Type::TypeId::U8 || in IsIntegral()
113 type_id_ == panda_file::Type::TypeId::I8 || type_id_ == panda_file::Type::TypeId::U16 || in IsIntegral()
114 type_id_ == panda_file::Type::TypeId::I16 || type_id_ == panda_file in IsIntegral()
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/types/
H A Dets_method_signature_test.cpp30 panda_file::Type {panda_file::Type::TypeId::VOID}, in MethodSignaturePrologue()
36 panda_file::Type {panda_file::Type::TypeId::VOID}, in MethodSignaturePrologue()
37 panda_file::Type {panda_file::Type::TypeId::I32}, in MethodSignaturePrologue()
44 panda_file::Type {panda_file::Type::TypeId::U1}, in MethodSignaturePrologue()
45 panda_file::Type {panda_file in MethodSignaturePrologue()
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/
H A Dets_type.h40 inline EtsType ConvertPandaTypeToEtsType(panda_file::Type type) in ConvertPandaTypeToEtsType()
43 case panda_file::Type::TypeId::INVALID: in ConvertPandaTypeToEtsType()
45 case panda_file::Type::TypeId::VOID: in ConvertPandaTypeToEtsType()
47 case panda_file::Type::TypeId::U1: in ConvertPandaTypeToEtsType()
49 case panda_file::Type::TypeId::I8: in ConvertPandaTypeToEtsType()
51 case panda_file::Type::TypeId::U16: in ConvertPandaTypeToEtsType()
53 case panda_file::Type::TypeId::I16: in ConvertPandaTypeToEtsType()
55 case panda_file::Type::TypeId::I32: in ConvertPandaTypeToEtsType()
57 case panda_file::Type::TypeId::I64: in ConvertPandaTypeToEtsType()
59 case panda_file in ConvertPandaTypeToEtsType()
[all...]
/arkcompiler/runtime_core/static_core/static_linker/
H A Dlinker_context.h38 panda_file::MethodItem *mi;
39 panda_file::IndexedItem *it;
46 panda_file::StringItem *it {};
51 panda_file::LiteralArrayItem *old;
53 panda_file::LiteralArrayItem *it {};
93 panda_file::MethodItem *omi;
94 panda_file::MethodItem *nmi;
95 const panda_file::FileReader *fileReader;
102 static std::vector<panda_file::Type> BreakProto(panda_file
[all...]
H A Dlinker_context.cpp42 void Context::AddItemToKnown(panda_file::BaseItem *item, const std::map<std::string, panda_file::BaseClassItem *> &cm, in AddItemToKnown()
43 const panda_file::FileReader &reader) in AddItemToKnown()
45 auto *fc = static_cast<panda_file::ForeignClassItem *>(item); in AddItemToKnown()
56 void Context::MergeItem(panda_file::BaseItem *item, const panda_file::FileReader &reader) in MergeItem()
59 case panda_file::ItemTypes::FOREIGN_METHOD_ITEM: in MergeItem()
60 MergeForeignMethod(&reader, static_cast<panda_file::ForeignMethodItem *>(item)); in MergeItem()
62 case panda_file::ItemTypes::FOREIGN_FIELD_ITEM: in MergeItem()
63 MergeForeignField(&reader, static_cast<panda_file in MergeItem()
[all...]
H A Dlinker_context_misc.cpp49 auto ty = panda_file::Type::GetTypeIdBySignature(s.front()); in DemangleName()
72 void ReprItem(std::ostream &o, const panda_file::BaseItem *i);
74 void ReprMethod(std::ostream &o, panda_file::StringItem *name, panda_file::BaseClassItem *clz, panda_file::ProtoItem *p) in ReprMethod()
101 void ReprValueItem(std::ostream &o, const panda_file::BaseItem *i) in ReprValueItem()
103 auto j = static_cast<const panda_file::ValueItem *>(i); in ReprValueItem()
105 case panda_file::ValueItem::Type::ARRAY: { in ReprValueItem()
106 auto *arr = static_cast<const panda_file::ArrayValueItem *>(j); in ReprValueItem()
118 case panda_file in ReprValueItem()
[all...]
/arkcompiler/runtime_core/static_core/quickener/
H A Dquickener.h32 Quickener(panda_file::ItemContainer *container, panda_file::File *file, in Quickener()
33 const std::map<panda_file::File::EntityId, panda_file::BaseItem *> *items) in Quickener()
39 panda_file::CodeItem *GetQuickenedCode(panda_file::CodeItem *code,
42 panda_file::DebugInfoItem *CreateDebugInfoItem(panda_file::File::EntityId debug_info_id);
44 void UpdateDebugInfo(panda_file::DebugInfoItem *debug_info_item, panda_file
[all...]
/arkcompiler/runtime_core/static_core/abc2program/
H A Dabc_literal_array_processor.cpp21 AbcLiteralArrayProcessor::AbcLiteralArrayProcessor(panda_file::File::EntityId entityId, Abc2ProgramKeyData &keyData) in AbcLiteralArrayProcessor()
24 literalDataAccessor_ = std::make_unique<panda_file::LiteralDataAccessor>(*file_, entityId_); in AbcLiteralArrayProcessor()
29 void AbcLiteralArrayProcessor::FillLiteralArrayData(pandasm::LiteralArray *litArray, const panda_file::LiteralTag &tag, in FillLiteralArrayData()
30 const panda_file::LiteralDataAccessor::LiteralValue &value) const in FillLiteralArrayData()
32 panda_file::File::EntityId id(std::get<uint32_t>(value)); in FillLiteralArrayData()
34 auto len = panda_file::helpers::Read<sizeof(uint32_t)>(&sp); in FillLiteralArrayData()
35 if (tag != panda_file::LiteralTag::ARRAY_STRING) { in FillLiteralArrayData()
39 lit.value = bit_cast<T>(panda_file::helpers::Read<sizeof(T)>(&sp)); in FillLiteralArrayData()
44 auto strId = panda_file::helpers::Read<sizeof(T)>(&sp); in FillLiteralArrayData()
47 lit.value = stringTable_->GetStringById(panda_file in FillLiteralArrayData()
[all...]
/arkcompiler/runtime_core/abc2program/
H A Ddump_utils.cpp22 {panda_file::LiteralTag::BOOL, "u1"},
23 {panda_file::LiteralTag::ARRAY_U1, "u1[]"},
24 {panda_file::LiteralTag::ARRAY_U8, "u8[]"},
25 {panda_file::LiteralTag::ARRAY_I8, "i8[]"},
26 {panda_file::LiteralTag::ARRAY_U16, "u16[]"},
27 {panda_file::LiteralTag::ARRAY_I16, "i16[]"},
28 {panda_file::LiteralTag::ARRAY_U32, "u32[]"},
29 {panda_file::LiteralTag::INTEGER, "i32"},
30 {panda_file::LiteralTag::ARRAY_I32, "i32[]"},
31 {panda_file
[all...]
H A Dabc_literal_array_processor.cpp22 AbcLiteralArrayProcessor::AbcLiteralArrayProcessor(panda_file::File::EntityId entity_id, in AbcLiteralArrayProcessor()
24 panda_file::LiteralDataAccessor &literal_data_accessor) in AbcLiteralArrayProcessor()
37 auto literal_vals_num = panda_file::helpers::Read<sizeof(uint32_t)>(&sp); in FillModuleRequestPhase()
40 lit.tag_ = panda_file::LiteralTag::INTEGER_8; in FillModuleRequestPhase()
41 lit.value_ = static_cast<uint8_t>(panda_file::helpers::Read<sizeof(uint8_t)>(&sp)); in FillModuleRequestPhase()
49 panda_file::File::EntityId lit_array_id) const in GetLiteralArrayById()
53 const panda_file::LiteralDataAccessor::LiteralValue &value, in GetLiteralArrayById()
54 const panda_file::LiteralTag &tag) { in GetLiteralArrayById()
60 const panda_file::LiteralDataAccessor::LiteralValue &value, in FillLiteralData()
61 const panda_file in FillLiteralData()
[all...]
/arkcompiler/runtime_core/static_core/bytecode_optimizer/
H A Druntime_adapter.h35 explicit BytecodeOptimizerRuntimeAdapter(const panda_file::File &pandaFile) : pandaFile_(pandaFile) {} in BytecodeOptimizerRuntimeAdapter()
42 return const_cast<panda_file::File *>(&pandaFile_);
72 panda_file::MethodDataAccessor mda(pandaFile_, MethodCast(method));
73 panda_file::ProtoDataAccessor pda(pandaFile_, mda.GetProtoId());
75 return ToCompilerType(panda_file::GetEffectiveType(pda.GetReturnType()));
80 panda_file::MethodDataAccessor mda(pandaFile_, MethodCast(method));
81 panda_file::ProtoDataAccessor pda(pandaFile_, mda.GetProtoId());
88 panda_file::MethodDataAccessor mda(pandaFile_, MethodCast(method));
93 panda_file::GetEffectiveType(panda_file
[all...]
/arkcompiler/runtime_core/static_core/disassembler/
H A Ddisasm_backed_debug_info_extractor.h22 class PANDA_PUBLIC_API DisasmBackedDebugInfoExtractor : public panda_file::DebugInfoExtractor {
25 const panda_file::File &file,
26 std::function<void(panda_file::File::EntityId, std::string_view)> &&onDisasmSourceName = [](auto, auto) {});
28 const panda_file::LineNumberTable &GetLineNumberTable(panda_file::File::EntityId methodId) const override;
29 const panda_file::ColumnNumberTable &GetColumnNumberTable(panda_file::File::EntityId methodId) const override;
30 const panda_file::LocalVariableTable &GetLocalVariableTable(panda_file::File::EntityId methodId) const override;
31 const std::vector<ParamInfo> &GetParameterInfo(panda_file
[all...]
H A Ddisassembler.h65 PANDA_PUBLIC_API void Disassemble(const panda_file::File &file, bool quiet = false, bool skipStrings = false);
66 PANDA_PUBLIC_API void Disassemble(std::unique_ptr<const panda_file::File> &file, bool quiet = false,
72 PANDA_PUBLIC_API void SetFile(std::unique_ptr<const panda_file::File> &file);
73 PANDA_PUBLIC_API void SetFile(const panda_file::File &file);
76 panda_file::LineNumberTable *lineTable = nullptr) const;
77 PANDA_PUBLIC_API void GetMethod(pandasm::Function *method, const panda_file::File::EntityId &methodId);
88 void GetRecord(pandasm::Record &record, const panda_file::File::EntityId &recordId);
89 void AddMethodToTables(const panda_file::File::EntityId &methodId);
92 void FillLiteralArrayData(pandasm::LiteralArray *litArray, const panda_file::LiteralTag &tag,
93 const panda_file
[all...]
/arkcompiler/runtime_core/libpandafile/
H A Dmodule_data_accessor-inl.h23 namespace panda::panda_file { namespace in panda
29 auto regular_import_num = panda_file::helpers::Read<panda_file::ID_SIZE>(&sp); in EnumerateModuleRecord()
31 auto local_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord()
32 auto import_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord()
33 auto module_request_idx = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint16_t)>(&sp)); in EnumerateModuleRecord()
37 auto namespace_import_num = panda_file::helpers::Read<panda_file::ID_SIZE>(&sp); in EnumerateModuleRecord()
39 auto local_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord()
40 auto module_request_idx = static_cast<uint32_t>(panda_file in EnumerateModuleRecord()
[all...]
/arkcompiler/runtime_core/static_core/runtime/
H A Dfield.cpp25 panda_file::File::StringData Field::GetName() const in GetName()
28 auto nameId = panda_file::FieldDataAccessor::GetNameId(*pandaFile, fileId_); in GetName()
42 case panda_file::Type::TypeId::U1: in ResolveTypeClass()
44 case panda_file::Type::TypeId::I8: in ResolveTypeClass()
46 case panda_file::Type::TypeId::U8: in ResolveTypeClass()
48 case panda_file::Type::TypeId::I16: in ResolveTypeClass()
50 case panda_file::Type::TypeId::U16: in ResolveTypeClass()
52 case panda_file::Type::TypeId::I32: in ResolveTypeClass()
54 case panda_file::Type::TypeId::U32: in ResolveTypeClass()
56 case panda_file in ResolveTypeClass()
[all...]
H A Dclass_helper.cpp45 char ClassHelper::GetPrimitiveTypeDescriptorChar(panda_file::Type::TypeId typeId) in GetPrimitiveTypeDescriptorChar()
52 const uint8_t *ClassHelper::GetPrimitiveTypeDescriptorStr(panda_file::Type::TypeId typeId) in GetPrimitiveTypeDescriptorStr()
54 if (typeId == panda_file::Type::TypeId::REFERENCE) { in GetPrimitiveTypeDescriptorStr()
59 return utf::CStringAsMutf8(panda_file::Type::GetSignatureByTypeId(panda_file::Type(typeId))); in GetPrimitiveTypeDescriptorStr()
63 const char *ClassHelper::GetPrimitiveTypeStr(panda_file::Type::TypeId typeId) in GetPrimitiveTypeStr()
66 case panda_file::Type::TypeId::VOID: in GetPrimitiveTypeStr()
68 case panda_file::Type::TypeId::U1: in GetPrimitiveTypeStr()
70 case panda_file::Type::TypeId::I8: in GetPrimitiveTypeStr()
72 case panda_file in GetPrimitiveTypeStr()
[all...]
/arkcompiler/runtime_core/bytecode_optimizer/
H A Druntime_adapter.h37 explicit BytecodeOptimizerRuntimeAdapter(const panda_file::File &panda_file) : panda_file_(panda_file) {} in BytecodeOptimizerRuntimeAdapter() argument
43 return const_cast<panda_file::File *>(&panda_file_);
58 panda_file::MethodDataAccessor mda(panda_file_, MethodCast(method));
61 panda_file::CodeDataAccessor cda(panda_file_, mda.GetCodeId().value());
68 panda_file::MethodDataAccessor mda(panda_file_, panda_file::File::EntityId(id));
71 panda_file::CodeDataAccessor cda(panda_file_, mda.GetCodeId().value());
78 panda_file
[all...]
/arkcompiler/runtime_core/static_core/runtime/tests/
H A Dinvokation_helper.cpp27 void CountMethodTypes(panda_file::ShortyIterator &it, arch::ArgCounter<RUNTIME_ARCH> counter) in CountMethodTypes()
30 case panda_file::Type::TypeId::U1: in CountMethodTypes()
31 case panda_file::Type::TypeId::U8: in CountMethodTypes()
32 case panda_file::Type::TypeId::I8: in CountMethodTypes()
33 case panda_file::Type::TypeId::I16: in CountMethodTypes()
34 case panda_file::Type::TypeId::U16: in CountMethodTypes()
35 case panda_file::Type::TypeId::I32: in CountMethodTypes()
36 case panda_file::Type::TypeId::U32: in CountMethodTypes()
39 case panda_file::Type::TypeId::F32: in CountMethodTypes()
42 case panda_file in CountMethodTypes()
[all...]
/arkcompiler/runtime_core/assembler/tests/
H A Demitter_test.cpp80 panda_file::ClassDataAccessor cda(*pf, class_id); in TEST()
89 cda.EnumerateRuntimeAnnotations([](panda_file::File::EntityId) { ASSERT_TRUE(false); }); in TEST()
91 cda.EnumerateAnnotations([](panda_file::File::EntityId) { ASSERT_TRUE(false); }); in TEST()
93 cda.EnumerateFields([](panda_file::FieldDataAccessor &) { ASSERT_TRUE(false); }); in TEST()
95 cda.EnumerateMethods([&](panda_file::MethodDataAccessor &mda) { in TEST()
101 panda_file::ProtoDataAccessor pda(*pf, mda.GetProtoId()); in TEST()
103 ASSERT_EQ(pda.GetReturnType().GetId(), panda_file::Type::TypeId::VOID); in TEST()
108 panda_file::CodeDataAccessor cdacc(*pf, mda.GetCodeId().value()); in TEST()
118 panda_file::DebugInfoDataAccessor dda(*pf, mda.GetDebugInfoId().value()); in TEST()
122 mda.EnumerateRuntimeAnnotations([](panda_file in TEST()
[all...]
/arkcompiler/runtime_core/disassembler/
H A Ddisassembler.h66 void GetRecord(pandasm::Record *record, const panda_file::File::EntityId &record_id);
67 void AddMethodToTables(const panda_file::File::EntityId &method_id);
68 void GetMethod(pandasm::Function *method, const panda_file::File::EntityId &method_id);
77 void FillLiteralArrayData(pandasm::LiteralArray *lit_array, const panda_file::LiteralTag &tag,
78 const panda_file::LiteralDataAccessor::LiteralValue &value) const;
80 panda_file::File::EntityId method_id) const;
92 void FillLiteralArrayTable(panda_file::File::EntityId &id, size_t index);
93 void FillLiteralData(pandasm::LiteralArray *lit_array, const panda_file::LiteralDataAccessor::LiteralValue &value,
94 const panda_file::LiteralTag &tag) const;
96 void GetFields(pandasm::Record *record, const panda_file
[all...]

Completed in 9 milliseconds

12345678910>>...27