Home
last modified time | relevance | path

Searched full:method_id (Results 1 – 25 of 87) sorted by relevance

1234

/arkcompiler/runtime_core/libpandafile/
Ddebug_info_extractor.cpp242 File::EntityId method_id = mda.GetMethodId(); in Extract() local
248 methods_.push_back({source_file, source_code, method_id, handler.GetLineNumberTable(), in Extract()
255 const LineNumberTable &DebugInfoExtractor::GetLineNumberTable(File::EntityId method_id) const in GetLineNumberTable()
258 if (method.method_id == method_id) { in GetLineNumberTable()
267 const ColumnNumberTable &DebugInfoExtractor::GetColumnNumberTable(File::EntityId method_id) const in GetColumnNumberTable()
270 if (method.method_id == method_id) { in GetColumnNumberTable()
279 const LocalVariableTable &DebugInfoExtractor::GetLocalVariableTable(File::EntityId method_id) const in GetLocalVariableTable()
282 if (method.method_id == method_id) { in GetLocalVariableTable()
291 …ebugInfoExtractor::ParamInfo> &DebugInfoExtractor::GetParameterInfo(File::EntityId method_id) const in GetParameterInfo()
294 if (method.method_id == method_id) { in GetParameterInfo()
[all …]
Dmethod_data_accessor.cpp20 MethodDataAccessor::MethodDataAccessor(const File &panda_file, File::EntityId method_id) in MethodDataAccessor() argument
21 : panda_file_(panda_file), method_id_(method_id) in MethodDataAccessor()
23 auto sp = panda_file_.GetSpanFromId(method_id); in MethodDataAccessor()
28 class_off_ = panda_file.ResolveClassIndex(method_id, class_idx_).GetOffset(); in MethodDataAccessor()
29 proto_off_ = panda_file.ResolveProtoIndex(method_id, proto_idx_).GetOffset(); in MethodDataAccessor()
34 is_external_ = panda_file_.IsExternal(method_id); in MethodDataAccessor()
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;
86 File::EntityId method_id; member
Dmethod_data_accessor-inl.h27 …line File::EntityId MethodDataAccessor::GetNameId(const File &panda_file, File::EntityId method_id) in GetNameId() argument
30 auto sp = panda_file.GetSpanFromId(method_id).SubSpan(IDX_SIZE * SKIP_NUM); in GetNameId()
35 …ile::File::StringData MethodDataAccessor::GetName(const File &panda_file, File::EntityId method_id) in GetName() argument
37 return panda_file.GetStringData(GetNameId(panda_file, method_id)); in GetName()
41 …ine File::EntityId MethodDataAccessor::GetProtoId(const File &panda_file, File::EntityId method_id) in GetProtoId() argument
44 auto sp = panda_file.GetSpanFromId(method_id).SubSpan(IDX_SIZE * SKIP_NUM); in GetProtoId()
46 return File::EntityId(panda_file.ResolveProtoIndex(method_id, proto_idx_).GetOffset()); in GetProtoId()
50 …ine File::EntityId MethodDataAccessor::GetClassId(const File &panda_file, File::EntityId method_id) in GetClassId() argument
52 auto sp = panda_file.GetSpanFromId(method_id); in GetClassId()
54 return File::EntityId(panda_file.ResolveClassIndex(method_id, class_idx).GetOffset()); in GetClassId()
Dfile_reader.h75 MethodItem *CreateMethodItem(ClassItem *cls, File::EntityId method_id);
76 ForeignMethodItem *CreateForeignMethodItem(BaseClassItem *fcls, File::EntityId method_id);
144 inline BaseItem *CreateGenericMethodItem(BaseClassItem *class_item, File::EntityId method_id) in CreateGenericMethodItem() argument
146 if (file_->IsExternal(method_id)) { in CreateGenericMethodItem()
147 return CreateForeignMethodItem(class_item, method_id); in CreateGenericMethodItem()
149 return CreateMethodItem(static_cast<ClassItem *>(class_item), method_id); in CreateGenericMethodItem()
Dfile_reader.cpp164 File::EntityId method_id(helpers::Read<sizeof(uint32_t)>(&sp)); in CreateLiteralArrayItem() local
165 MethodDataAccessor method_acc(*file_, method_id); in CreateLiteralArrayItem()
168 literal_array.emplace_back(CreateMethodItem(class_item, method_id)); in CreateLiteralArrayItem()
266 const File::EntityId method_id {scalar.Get<uint32_t>()}; in CreateAnnotationItem() local
267 MethodDataAccessor method_acc(*file_, method_id); in CreateAnnotationItem()
269 … elem_value_item = container_.GetOrCreateIdValueItem(CreateGenericMethodItem(cls_item, method_id)); in CreateAnnotationItem()
450 const File::EntityId method_id {array.Get<uint32_t>(j)}; in CreateAnnotationItem() local
451 MethodDataAccessor method_acc(*file_, method_id); in CreateAnnotationItem()
453 … items.emplace_back(ScalarValueItem(CreateGenericMethodItem(cls_item, method_id))); in CreateAnnotationItem()
601 MethodItem *FileReader::CreateMethodItem(ClassItem *cls, File::EntityId method_id) in CreateMethodItem() argument
[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);
/arkcompiler/runtime_core/disassembler/templates/
Dbc_ins_to_pandasm_ins.cpp.erb21 … panda_file::File::EntityId method_id) const {
48 ins.ids.push_back(IDToString(bc_ins, method_id, <%=id_count%>));
60 // if format has ID in it - recieve it. else instruction is indirect call and id = method_id
65 id = file_->ResolveMethodIndex(method_id, idx);
67 id = method_id;
82 << "> error encountered in code of " << std::dec << method_id.GetOffset() << " ("
83 … << "0x" << std::hex << method_id.GetOffset() << ") while disassembling call <" << ins.ToString("")
/arkcompiler/runtime_core/libpandafile/tests/
Ddebug_info_extractor_test.cpp271 … File::EntityId method_id, size_t offset) in GetLocalVariableInfoWrapper() argument
273 … std::vector<panda_file::LocalVariableInfo> variables = extractor.GetLocalVariableTable(method_id); in GetLocalVariableInfoWrapper()
284 …cePairLocation GetSourcePairLocationWrapper(DebugInfoExtractor extractor, File::EntityId method_id, in GetSourcePairLocationWrapper() argument
287 panda_file::LineNumberTable line_table = extractor.GetLineNumberTable(method_id); in GetSourcePairLocationWrapper()
297 return SourcePairLocation {extractor.GetSourceFile(method_id), line.value()}; in GetSourcePairLocationWrapper()
335 …auto [method_id, bytecode_offset] = GetBreakpointAddressWrapper(extractor, SourcePairLocation {SOU…
336 ASSERT_TRUE(method_id.IsValid());
339 auto source_location = GetSourcePairLocationWrapper(extractor, method_id, 2);
343 auto vars = GetLocalVariableInfoWrapper(extractor, method_id, 4);
359 …auto method_id = GetBreakpointAddressWrapper(extractor, SourcePairLocation {SOURCE_FILE, 14}).firs… variable
[all …]
/arkcompiler/runtime_core/disassembler/
Ddisassembler.h66 void AddMethodToTables(const panda_file::File::EntityId &method_id);
67 void GetMethod(pandasm::Function *method, const panda_file::File::EntityId &method_id);
87 IdList GetInstructions(pandasm::Function *method, panda_file::File::EntityId method_id,
89 LabelTable GetExceptions(pandasm::Function *method, panda_file::File::EntityId method_id,
100 void GetMetaData(pandasm::Function *method, const panda_file::File::EntityId &method_id) const;
110 std::string GetFullMethodName(const panda_file::File::EntityId &method_id) const;
111 std::string GetMethodSignature(const panda_file::File::EntityId &method_id) const;
115 void GetMethodInfo(const panda_file::File::EntityId &method_id, MethodInfo *method_info) const;
153 … panda_file::File::EntityId method_id) const;
155 …std::string IDToString(BytecodeInstruction bc_ins, panda_file::File::EntityId method_id, size_t id…
Ddisassembler.cpp148 void Disassembler::AddMethodToTables(const panda_file::File::EntityId &method_id) in AddMethodToTables() argument
151 GetMethod(&new_method, method_id); in AddMethodToTables()
158 method_name_to_id_.emplace(signature, method_id); in AddMethodToTables()
163 void Disassembler::GetMethod(pandasm::Function *method, const panda_file::File::EntityId &method_id) in GetMethod() argument
165 …DEBUG, DISASSEMBLER) << "\n[getting method]\nid: " << method_id << " (0x" << std::hex << method_id in GetMethod()
173 panda_file::MethodDataAccessor method_accessor(*file_, method_id); in GetMethod()
175 method->name = GetFullMethodName(method_id); in GetMethod()
180 GetMetaData(method, method_id); in GetMethod()
183 … const IdList id_list = GetInstructions(method, method_id, method_accessor.GetCodeId().value()); in GetMethod()
189 …G(ERROR, DISASSEMBLER) << "> error encountered at " << method_id << " (0x" << std::hex << method_id in GetMethod()
[all …]
/arkcompiler/runtime_core/runtime/tests/tooling/
Dtest_extractor.cpp69 PandaList<PtStepRange> TestExtractor::GetStepRanges(EntityId method_id, uint32_t current_offset) in GetStepRanges() argument
71 const panda_file::LineNumberTable &line_table = lang_extractor_->GetLineNumberTable(method_id); in GetStepRanges()
95 std::vector<panda_file::LocalVariableInfo> TestExtractor::GetLocalVariableInfo(EntityId method_id, … in GetLocalVariableInfo() argument
97 …ctor<panda_file::LocalVariableInfo> &variables = lang_extractor_->GetLocalVariableTable(method_id); in GetLocalVariableInfo()
129 SourceLocation TestExtractor::GetSourceLocation(EntityId method_id, uint32_t bytecode_offset) in GetSourceLocation() argument
131 const panda_file::LineNumberTable &line_table = lang_extractor_->GetLineNumberTable(method_id); in GetSourceLocation()
141 return SourceLocation {lang_extractor_->GetSourceFile(method_id), line.value()}; in GetSourceLocation()
/arkcompiler/runtime_core/compiler/optimizer/ir/
Daot_data.cpp52 intptr_t AotData::GetPltSlotOffset(uint64_t pc, uint32_t method_id) in GetPltSlotOffset() argument
55 auto slot = got_plt_->find({pfile_, method_id}); in GetPltSlotOffset()
60 got_plt_->insert({{pfile_, method_id}, slot_id}); in GetPltSlotOffset()
65 intptr_t AotData::GetVirtIndexSlotOffset(uint64_t pc, uint32_t method_id) in GetVirtIndexSlotOffset() argument
68 auto slot = got_virt_indexes_->find({pfile_, method_id}); in GetVirtIndexSlotOffset()
73 got_virt_indexes_->insert({{pfile_, method_id}, slot_id}); in GetVirtIndexSlotOffset()
/arkcompiler/runtime_core/verification/cache/
Dresults_cache.cpp129 void VerificationResultCache::CacheResult(uint64_t method_id, bool result) in CacheResult() argument
133 impl->verified_ok->insert(method_id); in CacheResult()
135 impl->verified_fail->insert(method_id); in CacheResult()
140 VerificationResultCache::Status VerificationResultCache::Check(uint64_t method_id) in Check() argument
143 if (impl->verified_ok->count(method_id) > 0) { in Check()
146 if (impl->verified_fail->count(method_id) > 0) { in Check()
Dresults_cache.h28 static void CacheResult(uint64_t method_id, bool result);
29 static Status Check(uint64_t method_id);
/arkcompiler/runtime_core/tests/cts-generator/cts-template/
Dcall.short.yaml29 Method, its class and the number of argument is resolved by given method_id in
43 - sig: call.short method_id, v1:in:top, v2:in:top
109 - sig: call.short method_id, v1:in:top, v2:in:top
148 - sig: call.short method_id, v1:in:top, v2:in:top
209 - sig: call.short method_id, v1:in:top, v2:in:top
259 - sig: call.short method_id, v1:in:top, v2:in:top
301 - sig: call.short method_id, v1:in:top, v2:in:top
371 - sig: call.short method_id, v1:in:top, v2:in:top
406 - sig: call.short method_id, v1:in:top, v2:in:top
437 - sig: call.short method_id, v1:in:top, v2:in:top
[all …]
Dcall.yaml30 Method, its class and the number of argument is resolved by given method_id in
44 - sig: call method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top
127 - sig: call method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top
165 - sig: call method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top
210 - sig: call method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top
260 - sig: call method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top
309 - sig: call method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top
371 - sig: call method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top
406 - sig: call method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top
438 - sig: call method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top
[all …]
Dcall.virt.short.negative.yaml36 - sig: call.virt.short method_id, v1:in:top, v2:in:top
46 Method, its class and the number of argument is resolved by given method_id in runtime
69 - sig: call.virt.short method_id, v1:in:top, v2:in:top
230 - sig: call.virt.short method_id, v1:in:top, v2:in:top
316 - sig: call.virt.short method_id, v1:in:top, v2:in:top
402 - sig: call.virt.short method_id, v1:in:top, v2:in:top
534 - sig: call.virt.short method_id, v1:in:top, v2:in:top
565 - sig: call.virt.short method_id, v1:in:top, v2:in:top
612 - sig: call.virt.short method_id, v1:in:top, v2:in:top
619 …Verifier should report that method is not accessible if method_id is not resolved to existing meth…
[all …]
Dcall.virt.range.negative.yaml37 - sig: call.virt.range method_id, v:in:top
47 Method, its class and the number of argument is resolved by given method_id in runtime
69 - sig: call.virt.range method_id, v:in:top
258 - sig: call.virt.range method_id, v:in:top
359 - sig: call.virt.range method_id, v:in:top
461 - sig: call.virt.range method_id, v:in:top
593 - sig: call.virt.range method_id, v:in:top
719 - sig: call.virt.range method_id, v:in:top
871 - sig: call.virt.range method_id, v:in:top
902 - sig: call.virt.range method_id, v:in:top
[all …]
Dcall.virt.negative.yaml37 - sig: call.virt method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top
47 Method, its class and the number of argument is resolved by given method_id in runtime
70 - sig: call.virt method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top
253 - sig: call.virt method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top
365 - sig: call.virt method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top
480 - sig: call.virt method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top
612 - sig: call.virt method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top
738 - sig: call.virt method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top
889 - sig: call.virt method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top
920 - sig: call.virt method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top
[all …]
Dcall.range.yaml29 Method, its class and the number of argument is resolved by given method_id in
44 - sig: call.range method_id, v:in:top
90 - sig: call.range method_id, v:in:top
126 - sig: call.range method_id, v:in:top
176 - sig: call.range method_id, v:in:top
221 - sig: call.range method_id, v:in:top
274 - sig: call.range method_id, v:in:top
335 - sig: call.range method_id, v:in:top
356 - sig: call.range method_id, v:in:top
389 - sig: call.range method_id, v:in:top
[all …]
/arkcompiler/runtime_core/verification/config/debug_breakpoint/
Dbreakpoint.h36 #define DBG_MANAGED_BRK(method_id, method_offset) \ argument
37 if (panda::verifier::debug::CheckManagedBreakpoint(method_id, method_offset)) { \
51 #define DBG_MANAGED_BRK(method_id, method_offset) argument
/arkcompiler/ets_runtime/ecmascript/
Decma_isa.yaml415 - sig: ecma.definefuncdyn method_id, imm, v:in:top
419 properties: [method_id]
420 - sig: ecma.definencfuncdyn method_id, imm, v:in:top
424 properties: [method_id]
425 - sig: ecma.definegeneratorfunc method_id, imm, v:in:top
429 properties: [method_id]
430 - sig: ecma.defineasyncfunc method_id, imm, v:in:top
434 properties: [method_id]
435 - sig: ecma.definemethod method_id, imm, v:in:top
439 properties: [method_id]
[all …]
/arkcompiler/runtime_core/runtime/tests/
Ddebugger_test.cpp101 panda_file::File::EntityId method_id; in TEST_F() local
105 method_id = mda.GetMethodId(); in TEST_F()
116 Method method(nullptr, file_ptr.get(), method_id, code_id, 0, nargs, nullptr); in TEST_F()
146 EXPECT_EQ(debug_frame.GetMethodId(), method_id); in TEST_F()
166 EXPECT_EQ(debug_frame.GetMethodId(), method_id); in TEST_F()
/arkcompiler/runtime_core/runtime/templates/
Dintrinsics.rb35 'method_id' => 'U32',
57 'method_id',
78 'method_id' => 'M',

1234