Home
last modified time | relevance | path

Searched refs:EntityId (Results 1 – 25 of 156) sorted by relevance

1234567

/arkcompiler/runtime_core/libpandafile/
Dfile.h99 class EntityId {
101 explicit constexpr EntityId(uint32_t offset) : offset_(offset) {} in EntityId() function
103 EntityId() = default;
105 ~EntityId() = default;
122 friend bool operator<(const EntityId &l, const EntityId &r)
127 friend bool operator==(const EntityId &l, const EntityId &r)
132 friend std::ostream &operator<<(std::ostream &stream, const EntityId &id)
143 StringData GetStringData(EntityId id) const;
144 EntityId GetLiteralArraysId() const;
146 EntityId GetClassId(const uint8_t *mutf8_name) const;
[all …]
Dmethod_data_accessor-inl.h27 inline File::EntityId MethodDataAccessor::GetNameId(const File &panda_file, File::EntityId method_i… in GetNameId()
31 return File::EntityId(helpers::Read<ID_SIZE>(&sp)); in GetNameId()
35 …ile::File::StringData MethodDataAccessor::GetName(const File &panda_file, File::EntityId method_id) in GetName()
41 inline File::EntityId MethodDataAccessor::GetProtoId(const File &panda_file, File::EntityId method_… in GetProtoId()
46 return File::EntityId(panda_file.ResolveProtoIndex(method_id, proto_idx_).GetOffset()); in GetProtoId()
50 inline File::EntityId MethodDataAccessor::GetClassId(const File &panda_file, File::EntityId method_… in GetClassId()
54 return File::EntityId(panda_file.ResolveClassIndex(method_id, class_idx).GetOffset()); in GetClassId()
74 EnumerateRuntimeAnnotations([](File::EntityId /* unused */) {}); in SkipRuntimeAnnotations()
89 EnumerateAnnotations([](File::EntityId /* unused */) {}); in SkipAnnotations()
99 EnumerateTypeAnnotations([](File::EntityId /* unused */) {}); in SkipTypeAnnotation()
[all …]
Dmethod_data_accessor.h28 MethodDataAccessor(const File &panda_file, File::EntityId method_id);
33 static File::EntityId GetNameId(const File &panda_file, File::EntityId method_id);
36 static panda_file::File::StringData GetName(const File &panda_file, File::EntityId method_id);
39 static File::EntityId GetProtoId(const File &panda_file, File::EntityId method_id);
42 static File::EntityId GetClassId(const File &panda_file, File::EntityId method_id);
89 File::EntityId GetClassId() const in GetClassId()
91 return File::EntityId(class_off_); in GetClassId()
99 File::EntityId GetNameId() const in GetNameId()
101 return File::EntityId(name_off_); in GetNameId()
106 File::EntityId GetProtoId() const in GetProtoId()
[all …]
Dfield_data_accessor-inl.h29 inline File::EntityId FieldDataAccessor::GetTypeId(const File &panda_file, File::EntityId field_id) in GetTypeId()
37 inline File::EntityId FieldDataAccessor::GetNameId(const File &panda_file, File::EntityId field_id) in GetNameId()
40 return File::EntityId(helpers::Read<panda_file::ID_SIZE>(&sp)); in GetNameId()
87 inline std::optional<File::EntityId> FieldDataAccessor::GetValue() in GetValue()
101 return File::EntityId(std::get<uint32_t>(field_value)); in GetValue()
111 EnumerateRuntimeAnnotations([](File::EntityId /* unused */) {}); in SkipRuntimeAnnotations()
116 EnumerateAnnotations([](File::EntityId /* unused */) {}); in SkipAnnotations()
121 EnumerateRuntimeTypeAnnotations([](File::EntityId /* unused */) {}); in SkipRuntimeTypeAnnotations()
126 EnumerateTypeAnnotations([](File::EntityId /* unused */) {}); in SkipTypeAnnotations()
140 helpers::EnumerateTaggedValues<File::EntityId, FieldTag, Callback>( in EnumerateRuntimeAnnotations()
[all …]
Dfile_reader.h74 File::EntityId array_id);
75 AnnotationItem *CreateAnnotationItem(File::EntityId ann_id);
76 MethodItem *CreateMethodItem(ClassItem *cls, File::EntityId method_id);
77 ForeignMethodItem *CreateForeignMethodItem(BaseClassItem *fcls, File::EntityId method_id);
78 FieldItem *CreateFieldItem(ClassItem *cls, File::EntityId field_id);
79 ForeignFieldItem *CreateForeignFieldItem(BaseClassItem *fcls, File::EntityId field_id);
80 ClassItem *CreateClassItem(File::EntityId class_id);
81 ForeignClassItem *CreateForeignClassItem(File::EntityId class_id);
82 MethodHandleItem *CreateMethodHandleItem(File::EntityId mh_id);
86 DebugInfoItem *CreateDebugInfoItem(File::EntityId debug_info_id);
[all …]
Dannotation_data_accessor.h29 Elem(const File &panda_file, File::EntityId name_id, uint32_t value) in Elem()
38 File::EntityId GetNameId() const in GetNameId()
50 return ArrayValue(panda_file_, File::EntityId(value_)); in GetArrayValue()
55 File::EntityId name_id_;
76 AnnotationDataAccessor(const File &panda_file, File::EntityId annotation_id);
82 File::EntityId GetClassId() const in GetClassId()
84 return File::EntityId(class_off_); in GetClassId()
101 File::EntityId GetAnnotationId() const in GetAnnotationId()
112 File::EntityId annotation_id_;
Dclass_data_accessor-inl.h34 EnumerateRuntimeAnnotations([](File::EntityId /* unused */) {}); in SkipRuntimeAnnotations()
39 EnumerateAnnotations([](File::EntityId /* unused */) {}); in SkipAnnotations()
59 EnumerateRuntimeTypeAnnotations([](File::EntityId /* unused */) {}); in SkipRuntimeTypeAnnotations()
64 EnumerateTypeAnnotations([](File::EntityId /* unused */) {}); in SkipTypeAnnotations()
78 inline File::EntityId ClassDataAccessor::GetInterfaceId(size_t idx) const in GetInterfaceId()
99 helpers::EnumerateTaggedValues<File::EntityId, ClassTag, Callback>( in EnumerateRuntimeAnnotations()
110 …helpers::EnumerateTaggedValues<File::EntityId, ClassTag, Callback>(annotations_sp_, ClassTag::ANNO… in EnumerateAnnotations()
121 return helpers::EnumerateTaggedValuesWithEarlyStop<File::EntityId, ClassTag, Callback>( in EnumerateRuntimeAnnotationsWithEarlyStop()
132 …return helpers::EnumerateTaggedValuesWithEarlyStop<File::EntityId, ClassTag, Callback>(annotations… in EnumerateAnnotationsWithEarlyStop()
136 inline std::optional<File::EntityId> ClassDataAccessor::GetSourceFileId() in GetSourceFileId()
[all …]
Dfield_data_accessor.h32 FieldDataAccessor(const File &panda_file, File::EntityId field_id);
40 static File::EntityId GetTypeId(const File &panda_file, File::EntityId field_id);
42 static File::EntityId GetNameId(const File &panda_file, File::EntityId field_id);
49 File::EntityId GetClassId() const in GetClassId()
51 return File::EntityId(class_off_); in GetClassId()
54 File::EntityId GetNameId() const in GetNameId()
56 return File::EntityId(name_off_); in GetNameId()
149 File::EntityId GetFieldId() const in GetFieldId()
175 File::EntityId field_id_;
Ddebug_info_extractor.h66 const LineNumberTable &GetLineNumberTable(File::EntityId method_id) const;
68 const ColumnNumberTable &GetColumnNumberTable(File::EntityId method_id) const;
70 const LocalVariableTable &GetLocalVariableTable(File::EntityId method_id) const;
72 const std::vector<ParamInfo> &GetParameterInfo(File::EntityId method_id) const;
74 const char *GetSourceFile(File::EntityId method_id) const;
76 const char *GetSourceCode(File::EntityId method_id) const;
78 std::vector<File::EntityId> GetMethodIdList() const;
86 File::EntityId method_id;
Dmethod_handle_data_accessor.h27 MethodHandleDataAccessor(const File &panda_file, File::EntityId method_handle_id);
46 File::EntityId GetMethodHandleId() const in GetMethodHandleId()
51 File::EntityId GetEntityId() const in GetEntityId()
53 return File::EntityId(offset_); in GetEntityId()
58 File::EntityId method_handle_id_;
Dliteral_data_accessor.h64 LiteralDataAccessor(const File &panda_file, File::EntityId literal_data_id);
73 void EnumerateLiteralVals(File::EntityId id, const Callback &cb);
75 size_t GetLiteralValsNum(File::EntityId id) const;
88 File::EntityId GetLiteralDataId() const in GetLiteralDataId()
93 File::EntityId GetLiteralArrayId(size_t index) const in GetLiteralArrayId()
97 return File::EntityId(static_cast<uint32_t>(helpers::Read<sizeof(uint32_t)>(&l_sp))); in GetLiteralArrayId()
100 size_t ResolveLiteralArrayIndex(File::EntityId id) const in ResolveLiteralArrayIndex()
121 File::EntityId literal_data_id_;
Dpanda_cache.h38 File::EntityId id_;
43 File::EntityId id_;
48 File::EntityId id_;
64 inline uint32_t GetMethodIndex(File::EntityId id) const in GetMethodIndex()
69 inline uint32_t GetFieldIndex(File::EntityId id) const in GetFieldIndex()
75 inline uint32_t GetClassIndex(File::EntityId id) const in GetClassIndex()
80 inline Method *GetMethodFromCache(File::EntityId id) const in GetMethodFromCache()
94 inline void SetMethodCache(File::EntityId id, Method *method) in SetMethodCache()
107 inline Field *GetFieldFromCache(File::EntityId id) const in GetFieldFromCache()
121 inline void SetFieldCache(File::EntityId id, Field *field) in SetFieldCache()
[all …]
Dfile_reader.cpp55 File::EntityId array_id) in CreateLiteralArrayItem()
65 File::EntityId id(std::get<uint32_t>(lit_value)); in CreateLiteralArrayItem()
142 File::EntityId str_id(helpers::Read<sizeof(uint32_t)>(&sp)); in CreateLiteralArrayItem()
153 File::EntityId str_id(helpers::Read<sizeof(uint32_t)>(&sp)); in CreateLiteralArrayItem()
164 File::EntityId method_id(helpers::Read<sizeof(uint32_t)>(&sp)); in CreateLiteralArrayItem()
166 File::EntityId class_id(method_acc.GetClassId()); in CreateLiteralArrayItem()
181 AnnotationItem *FileReader::CreateAnnotationItem(File::EntityId ann_id) in CreateAnnotationItem()
189 File::EntityId ann_class_id {ann_acc.GetClassId()}; in CreateAnnotationItem()
251 const File::EntityId str_id(scalar.Get<uint32_t>()); in CreateAnnotationItem()
260 const File::EntityId class_id {scalar.Get<uint32_t>()}; in CreateAnnotationItem()
[all …]
Dclass_data_accessor.h29 ClassDataAccessor(const File &panda_file, File::EntityId class_id);
33 File::EntityId GetSuperClassId() const in GetSuperClassId()
35 return File::EntityId(super_class_off_); in GetSuperClassId()
67 File::EntityId GetInterfaceId(size_t idx) const;
92 std::optional<File::EntityId> GetSourceFileId();
114 File::EntityId GetClassId() const in GetClassId()
142 File::EntityId class_id_;
Dvalue.h38 static_assert(std::is_arithmetic_v<T> || std::is_same_v<T, File::EntityId>); in Get()
51 File::EntityId id(value_); in Get()
74 ArrayValue(const File &panda_file, File::EntityId id) : panda_file_(panda_file), id_(id) in ArrayValue()
89 static_assert(std::is_arithmetic_v<T> || std::is_same_v<T, File::EntityId>); in Get()
108 File::EntityId GetId() const in GetId()
117 File::EntityId id_;
Ddebug_info_extractor.cpp27 return utf::Mutf8AsCString(pf.GetStringData(File::EntityId(offset)).data); in GetStringFromConstantPool()
188 File::EntityId id(classes[i]); in Extract()
213 dda.EnumerateParameters([&](File::EntityId &param_id) { in Extract()
235 … LineProgramState state(panda_file, source_file_id.value_or(File::EntityId(0)), dda.GetLineStart(), in Extract()
242 File::EntityId method_id = mda.GetMethodId(); in Extract()
255 const LineNumberTable &DebugInfoExtractor::GetLineNumberTable(File::EntityId method_id) const in GetLineNumberTable()
267 const ColumnNumberTable &DebugInfoExtractor::GetColumnNumberTable(File::EntityId method_id) const in GetColumnNumberTable()
279 const LocalVariableTable &DebugInfoExtractor::GetLocalVariableTable(File::EntityId method_id) const in GetLocalVariableTable()
291 …ebugInfoExtractor::ParamInfo> &DebugInfoExtractor::GetParameterInfo(File::EntityId method_id) const in GetParameterInfo()
303 const char *DebugInfoExtractor::GetSourceFile(File::EntityId method_id) const in GetSourceFile()
[all …]
Dcode_data_accessor.h111 CodeDataAccessor(const File &panda_file, File::EntityId code_id);
118 static uint32_t GetNumVregs(const File &pf, File::EntityId code_id);
120 static const uint8_t *GetInstructions(const File &pf, File::EntityId code_id, uint32_t *vregs);
122 static const uint8_t *GetInstructions(const File &pf, File::EntityId code_id);
166 File::EntityId GetCodeId() in GetCodeId()
175 File::EntityId code_id_;
/arkcompiler/runtime_core/disassembler/
Ddisassembler.h65 void GetRecord(pandasm::Record *record, const panda_file::File::EntityId &record_id);
66 void AddMethodToTables(const panda_file::File::EntityId &method_id);
67 void GetMethod(pandasm::Function *method, const panda_file::File::EntityId &method_id);
83 void GetFields(pandasm::Record *record, const panda_file::File::EntityId &record_id);
85 void GetMethods(const panda_file::File::EntityId &record_id);
86 void GetParams(pandasm::Function *method, const panda_file::File::EntityId &proto_id) const;
87 IdList GetInstructions(pandasm::Function *method, panda_file::File::EntityId method_id,
88 panda_file::File::EntityId code_id) const;
89 LabelTable GetExceptions(pandasm::Function *method, panda_file::File::EntityId method_id,
90 panda_file::File::EntityId code_id) const;
[all …]
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Ddebug_info_extractor.h84 const LineNumberTable &GetLineNumberTable(const panda_file::File::EntityId methodId);
86 const ColumnNumberTable &GetColumnNumberTable(const panda_file::File::EntityId methodId);
88 const LocalVariableTable &GetLocalVariableTable(const panda_file::File::EntityId methodId);
90 const std::string &GetSourceFile(const panda_file::File::EntityId methodId);
92 const std::string &GetSourceCode(const panda_file::File::EntityId methodId);
104 panda_file::File::EntityId id(classes[i]); in MatchWithLocation()
109 CVector<panda_file::File::EntityId> methodIds; in MatchWithLocation()
124 EntityId currentMethodId; in MatchWithLocation()
125 EntityId minColumnMethodId; in MatchWithLocation()
165 … bool MatchLineWithOffset(const Callback &cb, panda_file::File::EntityId methodId, uint32_t offset) in MatchLineWithOffset()
[all …]
Dmethod_literal.cpp26 MethodLiteral::MethodLiteral(EntityId methodId) in MethodLiteral()
35 EntityId methodId = GetMethodId(); in Initialize()
47 mda.EnumerateAnnotations([&](EntityId annotationId) { in Initialize()
84 std::string MethodLiteral::ParseFunctionName(const JSPandaFile *jsPandaFile, EntityId methodId) in ParseFunctionName()
99 const char *MethodLiteral::GetMethodName(const JSPandaFile *jsPandaFile, EntityId methodId) in GetMethodName()
111 CString MethodLiteral::GetRecordName(const JSPandaFile *jsPandaFile, EntityId methodId) in GetRecordName()
124 const char *MethodLiteral::GetRecordNameWithSymbol(const JSPandaFile *jsPandaFile, EntityId methodI… in GetRecordNameWithSymbol()
136 uint32_t MethodLiteral::GetCodeSize(const JSPandaFile *jsPandaFile, EntityId methodId) in GetCodeSize()
Dmethod_literal.h30 using EntityId = panda_file::File::EntityId; variable
41 explicit MethodLiteral(EntityId methodId);
226 EntityId GetMethodId() const in GetMethodId()
228 return EntityId(MethodIdBits::Decode(literalInfo_)); in GetMethodId()
297 static EntityId GetMethodId(uint64_t literalInfo) in GetMethodId()
299 return EntityId(MethodIdBits::Decode(literalInfo)); in GetMethodId()
307 static const char PUBLIC_API *GetMethodName(const JSPandaFile *jsPandaFile, EntityId methodId);
308 …static std::string PUBLIC_API ParseFunctionName(const JSPandaFile *jsPandaFile, EntityId methodId);
309 static uint32_t GetCodeSize(const JSPandaFile *jsPandaFile, EntityId methodId);
310 static CString GetRecordName(const JSPandaFile *jsPandaFile, EntityId methodId);
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/
Dcompilation_driver.h50 void UpdateCompileQueue(const CString &recordName, EntityId resolvedMethod) in UpdateCompileQueue()
58 std::unordered_set<EntityId> fullResolvedMethodSet; in UpdateCompileQueue()
60 … [[maybe_unused]] const std::unordered_set<EntityId> &oldIds) -> std::unordered_set<EntityId> & { in UpdateCompileQueue()
62 std::unordered_set<EntityId> currentResolvedMethodSet {resolvedMethod}; in UpdateCompileQueue()
151 panda_file::File::EntityId resolvedMethodId(resolvedMethod); in AddResolvedMethod()
202 bool VerifyAndMarkCurMethod(uint32_t methodOffset, std::unordered_set<EntityId> &newMethodSet) in VerifyAndMarkCurMethod()
221 panda_file::File::EntityId methodId(methodOffset); in VerifyAndMarkCurMethod()
248 …void SearchForCompilation(const CString &recordName, const std::unordered_set<EntityId> &methodSet, in SearchForCompilation()
249 std::unordered_set<EntityId> &newMethodSet, in SearchForCompilation()
253 std::unordered_set<EntityId> mainMethodSet; in SearchForCompilation()
[all …]
/arkcompiler/ets_runtime/ecmascript/debugger/
Djs_pt_location.h28 using EntityId = panda_file::File::EntityId;
30 JSPtLocation(const JSPandaFile *jsPandaFile, EntityId methodId, uint32_t bytecodeOffset,
46 EntityId GetMethodId() const in GetMethodId()
81 EntityId methodId_;
/arkcompiler/toolchain/tooling/test/utils/
Dtest_extractor.h22 using EntityId = panda_file::File::EntityId; variable
41 std::pair<EntityId, uint32_t> GetBreakpointAddress(const SourceLocation &sourceLocation);
43 …SourceLocation GetSourceLocation(const JSPandaFile *file, EntityId methodId, uint32_t bytecodeOffs…
Dtest_extractor.cpp29 std::pair<EntityId, uint32_t> TestExtractor::GetBreakpointAddress(const SourceLocation &sourceLocat… in GetBreakpointAddress()
31 EntityId retId = EntityId(); in GetBreakpointAddress()
42 SourceLocation TestExtractor::GetSourceLocation(const JSPandaFile *file, EntityId methodId, uint32_… in GetSourceLocation()

1234567