| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/napi/ |
| D | ets_napi.h | 666 ets_object CallObjectMethod(ets_object obj, ets_method method_id, ...) in CallObjectMethod() 669 va_start(args, method_id); in CallObjectMethod() 670 ets_object res = native_interface->CallObjectMethodList(this, obj, method_id, args); in CallObjectMethod() 674 ets_object CallObjectMethodList(ets_object obj, ets_method method_id, va_list args) in CallObjectMethodList() 676 return native_interface->CallObjectMethodList(this, obj, method_id, args); in CallObjectMethodList() 678 ets_object CallObjectMethodArray(ets_object obj, ets_method method_id, const ets_value *args) in CallObjectMethodArray() 680 return native_interface->CallObjectMethodArray(this, obj, method_id, args); in CallObjectMethodArray() 682 ets_boolean CallBooleanMethod(ets_object obj, ets_method method_id, ...) in CallBooleanMethod() 685 va_start(args, method_id); in CallBooleanMethod() 686 ets_boolean res = native_interface->CallBooleanMethodList(this, obj, method_id, args); in CallBooleanMethod() [all …]
|
| /arkcompiler/runtime_core/libpandafile/ |
| D | method_data_accessor.cpp | 20 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() 30 proto_off_ = panda_file.ResolveProtoIndex(method_id, proto_idx_).GetOffset(); in MethodDataAccessor() 36 is_external_ = panda_file_.IsExternal(method_id); in MethodDataAccessor()
|
| D | debug_info_extractor.h | 66 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
|
| D | debug_info_extractor.cpp | 259 File::EntityId method_id = mda.GetMethodId(); in Extract() local 265 ASSERT(methods_.find(method_id.GetOffset()) == methods_.end()); in Extract() 266 methods_.emplace(method_id.GetOffset(), in Extract() 267 … MethodDebugInfo {source_file, source_code, method_id, handler.GetLineNumberTable(), in Extract() 274 const LineNumberTable &DebugInfoExtractor::GetLineNumberTable(File::EntityId method_id) const in GetLineNumberTable() 276 auto it = methods_.find(method_id.GetOffset()); in GetLineNumberTable() 285 const ColumnNumberTable &DebugInfoExtractor::GetColumnNumberTable(File::EntityId method_id) const in GetColumnNumberTable() 287 auto it = methods_.find(method_id.GetOffset()); in GetColumnNumberTable() 296 const LocalVariableTable &DebugInfoExtractor::GetLocalVariableTable(File::EntityId method_id) const in GetLocalVariableTable() 298 auto it = methods_.find(method_id.GetOffset()); in GetLocalVariableTable() [all …]
|
| D | method_data_accessor-inl.h | 27 …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()
|
| D | method_data_accessor.h | 28 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);
|
| D | file_reader.h | 76 MethodItem *CreateMethodItem(ClassItem *cls, File::EntityId method_id); 77 ForeignMethodItem *CreateForeignMethodItem(BaseClassItem *fcls, File::EntityId method_id); 149 inline BaseItem *CreateGenericMethodItem(BaseClassItem *class_item, File::EntityId method_id) in CreateGenericMethodItem() argument 151 if (file_->IsExternal(method_id)) { in CreateGenericMethodItem() 152 return CreateForeignMethodItem(class_item, method_id); in CreateGenericMethodItem() 154 return CreateMethodItem(static_cast<ClassItem *>(class_item), method_id); in CreateGenericMethodItem()
|
| D | file_reader.cpp | 166 File::EntityId method_id(helpers::Read<sizeof(uint32_t)>(&sp)); in CreateLiteralArrayItem() local 167 MethodDataAccessor method_acc(*file_, method_id); in CreateLiteralArrayItem() 170 literal_array.emplace_back(CreateMethodItem(class_item, method_id)); in CreateLiteralArrayItem() 268 const File::EntityId method_id {scalar.Get<uint32_t>()}; in CreateAnnotationItem() local 269 MethodDataAccessor method_acc(*file_, method_id); in CreateAnnotationItem() 271 … elem_value_item = container_.GetOrCreateIdValueItem(CreateGenericMethodItem(cls_item, method_id)); in CreateAnnotationItem() 452 const File::EntityId method_id {array.Get<uint32_t>(j)}; in CreateAnnotationItem() local 453 MethodDataAccessor method_acc(*file_, method_id); in CreateAnnotationItem() 455 … items.emplace_back(ScalarValueItem(CreateGenericMethodItem(cls_item, method_id))); in CreateAnnotationItem() 641 … File::EntityId catch_cls_id = file_->ResolveClassIndex(method_id, catch_block.GetTypeIdx()); in EnumerateBlocks() [all …]
|
| /arkcompiler/runtime_core/disassembler/tests/ |
| D | disassembler_imm_tests.cpp | 24 panda_file::File::EntityId method_id {0x00}; variable 33 … const panda::pandasm::Ins *ins = disasm.BytecodeInstructionToPandasmInstruction(inst, method_id); in TEST() 42 … const panda::pandasm::Ins *ins = disasm.BytecodeInstructionToPandasmInstruction(inst, method_id); in TEST() 51 … const panda::pandasm::Ins *ins = disasm.BytecodeInstructionToPandasmInstruction(inst, method_id); in TEST() 60 … const panda::pandasm::Ins *ins = disasm.BytecodeInstructionToPandasmInstruction(inst, method_id); in TEST() 72 … const panda::pandasm::Ins *ins = disasm.BytecodeInstructionToPandasmInstruction(inst, method_id); in TEST() 81 … const panda::pandasm::Ins *ins = disasm.BytecodeInstructionToPandasmInstruction(inst, method_id); in TEST() 90 … const panda::pandasm::Ins *ins = disasm.BytecodeInstructionToPandasmInstruction(inst, method_id); in TEST() 100 … const panda::pandasm::Ins *ins = disasm.BytecodeInstructionToPandasmInstruction(inst, method_id); in TEST()
|
| /arkcompiler/runtime_core/libpandafile/tests/ |
| D | debug_info_extractor_test.cpp | 271 … 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/abc2program/common/ |
| D | abc_inst_convert.cpp.erb | 23 … panda_file::File::EntityId method_id) const 58 ids.push_back(IDToString(bc_ins, method_id, <%=id_count%>)); 70 // if format has ID in it - receive it. else instruction is indirect call and id = method_id 75 id = file_.ResolveMethodIndex(method_id, idx); 77 id = method_id; 93 << "> error encountered in code of " << std::dec << method_id.GetOffset() << " (" 94 …<< "0x" << std::hex << method_id.GetOffset() << ") while disassembling call <" << ins->ToString("")
|
| D | abc_code_converter.cpp | 20 …ring AbcCodeConverter::IDToString(BytecodeInstruction bc_ins, panda_file::File::EntityId method_id, in IDToString() argument 23 …panda_file::File::EntityId entity_id = file_.ResolveOffsetByIndex(method_id, bc_ins.GetId(idx).AsI… in IDToString() 24 if (bc_ins.IsIdMatchFlag(idx, BytecodeInstruction::Flags::METHOD_ID)) { in IDToString()
|
| D | abc2program_entity_container.cpp | 108 …ring Abc2ProgramEntityContainer::GetFullMethodNameById(const panda_file::File::EntityId &method_id) in GetFullMethodNameById() argument 110 auto method_id_offset = method_id.GetOffset(); in GetFullMethodNameById() 115 std::string full_method_name = ConcatFullMethodNameById(method_id); in GetFullMethodNameById() 120 …g Abc2ProgramEntityContainer::ConcatFullMethodNameById(const panda_file::File::EntityId &method_id) in ConcatFullMethodNameById() argument 122 panda::panda_file::MethodDataAccessor method_data_accessor(file_, method_id); in ConcatFullMethodNameById()
|
| /arkcompiler/runtime_core/disassembler/templates/ |
| D | bc_ins_to_pandasm_ins.cpp.erb | 21 … panda_file::File::EntityId method_id) const { 55 ids.push_back(IDToString(bc_ins, method_id, <%=id_count%>)); 67 // if format has ID in it - recieve it. else instruction is indirect call and id = method_id 72 id = file_->ResolveMethodIndex(method_id, idx); 74 id = method_id; 90 << "> error encountered in code of " << std::dec << method_id.GetOffset() << " (" 91 …<< "0x" << std::hex << method_id.GetOffset() << ") while disassembling call <" << ins->ToString("")
|
| /arkcompiler/runtime_core/verifier/ |
| D | verifier.h | 48 const panda_file::File::EntityId &method_id; member 87 bool CollectIdInInstructions(const panda_file::File::EntityId &method_id); 91 …ol CheckConstantPoolActions(const verifier::ActionType type, panda_file::File::EntityId method_id); 92 bool VerifyMethodId(const uint32_t &method_id) const; 113 const panda_file::File::EntityId &method_id); 114 bool CheckConstantPoolMethodContent(const panda_file::File::EntityId &method_id);
|
| D | verifier.cpp | 103 const panda_file::File::EntityId method_id = panda_file::File::EntityId(id); in VerifyRegisterIndex() local 104 panda_file::MethodDataAccessor method_accessor {*file_, method_id}; in VerifyRegisterIndex() 209 …er::CheckConstantPoolActions(const verifier::ActionType type, panda_file::File::EntityId method_id) in CheckConstantPoolActions() argument 213 return CheckConstantPoolMethodContent(method_id); in CheckConstantPoolActions() 216 all_method_ids_.push_back(method_id.GetOffset()); in CheckConstantPoolActions() 217 return CollectIdInInstructions(method_id); in CheckConstantPoolActions() 225 bool Verifier::CollectIdInInstructions(const panda_file::File::EntityId &method_id) in CollectIdInInstructions() argument 227 panda_file::MethodDataAccessor method_accessor(*file_, method_id); in CollectIdInInstructions() 248 const auto literal_id = file_->ResolveMethodIndex(method_id, arg_literal_idx); in CollectIdInInstructions() 251 if (bc_ins.HasFlag(BytecodeInstruction::Flags::METHOD_ID)) { in CollectIdInInstructions() [all …]
|
| /arkcompiler/runtime_core/static_core/verification/config/debug_breakpoint/ |
| D | breakpoint.h | 39 #define DBG_MANAGED_BRK(ctx, method_id, method_offset) \ argument 40 if (ark::verifier::debug::CheckManagedBreakpoint(ctx, method_id, method_offset)) { \ 55 #define DBG_MANAGED_BRK(ctx, method_id, method_offset) argument
|
| /arkcompiler/runtime_core/disassembler/ |
| D | disassembler.h | 67 void AddMethodToTables(const panda_file::File::EntityId &method_id); 68 void GetMethod(pandasm::Function *method, const panda_file::File::EntityId &method_id); 80 … panda_file::File::EntityId method_id) const; 101 … void GetMethodAnnotations(pandasm::Function &method, const panda_file::File::EntityId &method_id); 109 IdList GetInstructions(pandasm::Function *method, panda_file::File::EntityId method_id, 111 LabelTable GetExceptions(pandasm::Function *method, panda_file::File::EntityId method_id, 122 void GetMetaData(pandasm::Function *method, const panda_file::File::EntityId &method_id) const; 134 std::string GetFullMethodName(const panda_file::File::EntityId &method_id) const; 135 std::string GetMethodSignature(const panda_file::File::EntityId &method_id) const; 139 void GetMethodInfo(const panda_file::File::EntityId &method_id, MethodInfo *method_info) const; [all …]
|
| /arkcompiler/runtime_core/tests/cts-generator/cts-template/ |
| D | call.short.yaml | 29 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 …]
|
| D | call.yaml | 30 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 …]
|
| D | call.virt.short.negative.yaml | 36 - 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 …]
|
| /arkcompiler/runtime_core/static_core/tests/cts-generator/cts-template/ |
| D | call.short.yaml | 25 Method, its class and the number of argument is resolved by given method_id in 39 - sig: call.short method_id, v1:in:top, v2:in:top 105 - sig: call.short method_id, v1:in:top, v2:in:top 144 - sig: call.short method_id, v1:in:top, v2:in:top 203 - sig: call.short method_id, v1:in:top, v2:in:top 253 - sig: call.short method_id, v1:in:top, v2:in:top 294 - sig: call.short method_id, v1:in:top, v2:in:top 363 - sig: call.short method_id, v1:in:top, v2:in:top 398 - sig: call.short method_id, v1:in:top, v2:in:top 429 - sig: call.short method_id, v1:in:top, v2:in:top [all …]
|
| D | call.yaml | 26 Method, its class and the number of argument is resolved by given method_id in 40 - sig: call method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top 123 - sig: call method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top 161 - sig: call method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top 205 - sig: call method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top 255 - sig: call method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top 303 - sig: call method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top 363 - sig: call method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top 398 - sig: call method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top 430 - sig: call method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/isa/ |
| D | isa.yaml | 134 Call method from an object by method name method_id, i.e., resolve method and 141 method_id in runtime constant-pool based on object reference. 155 - method_id 166 method = resolve_method_by_name(method_id) 177 - sig: ets.call.name.short method_id, v1:in:top, v2:in:top 181 - sig: ets.call.name method_id, v1:in:top, v2:in:top, v3:in:top, v4:in:top 185 - sig: ets.call.name.range method_id, v:in:top
|
| /arkcompiler/runtime_core/static_core/tests/irtoc-interpreter-tests/irtoc-tag/generator/ |
| D | creator.rb | 75 command['method_id'] = "foo_#{instr.opcode}" 76 command['method_id'] = "A.#{command['method_id']}" if instr.virt?
|