/arkcompiler/runtime_core/static_core/bytecode_optimizer/ |
H A D | runtime_adapter.h | 35 explicit BytecodeOptimizerRuntimeAdapter(const panda_file::File &pandaFile) : pandaFile_(pandaFile) {} in BytecodeOptimizerRuntimeAdapter() 42 return const_cast<panda_file::File *>(&pandaFile_); 47 return pandaFile_.ResolveMethodIndex(MethodCast(parentMethod), index).GetOffset(); 52 return pandaFile_.ResolveFieldIndex(MethodCast(parentMethod), index).GetOffset(); 57 return pandaFile_.ResolveClassIndex(MethodCast(parentMethod), index).GetOffset(); 72 panda_file::MethodDataAccessor mda(pandaFile_, MethodCast(method)); 73 panda_file::ProtoDataAccessor pda(pandaFile_, mda.GetProtoId()); 80 panda_file::MethodDataAccessor mda(pandaFile_, MethodCast(method)); 81 panda_file::ProtoDataAccessor pda(pandaFile_, mda.GetProtoId()); 88 panda_file::MethodDataAccessor mda(pandaFile_, MethodCas 465 const panda_file::File &pandaFile_; global() member in ark::BytecodeOptimizerRuntimeAdapter [all...] |
/arkcompiler/runtime_core/static_core/libpandafile/external/ |
H A D | file_ext.cpp | 44 explicit PandaFileExt(std::unique_ptr<const ark::panda_file::File> &&pandaFile) : pandaFile_(std::move(pandaFile)) in PandaFileExt() 50 return ark::panda_file::debug_helpers::GetLineNumber(mda, bcOffset, pandaFile_.get()); in GetExtFileLineNumber() 65 ark::panda_file::CodeDataAccessor ca {*pandaFile_, mda.GetCodeId().value()}; in QueryMethodSymByOffset() 69 entry.name = std::string(ark::utf::Mutf8AsCString(pandaFile_->GetStringData(mda.GetNameId()).data)); in QueryMethodSymByOffset() 79 for (uint32_t id : pandaFile_->GetClasses()) { in QueryMethodSymByOffset() 80 if (pandaFile_->IsExternal(ark::panda_file::File::EntityId(id))) { in QueryMethodSymByOffset() 84 ark::panda_file::ClassDataAccessor cda {*pandaFile_, ark::panda_file::File::EntityId(id)}; in QueryMethodSymByOffset() 93 ark::panda_file::ClassDataAccessor cda {*pandaFile_, ark::panda_file::File::EntityId(id)}; in EnumerateAllMethods() 96 ark::panda_file::CodeDataAccessor ca {*pandaFile_, mda.GetCodeId().value()}; in EnumerateAllMethods() 100 entry.name = std::string(ark::utf::Mutf8AsCString(pandaFile_ in EnumerateAllMethods() 187 std::unique_ptr<const ark::panda_file::File> pandaFile_; global() member [all...] |
/arkcompiler/runtime_core/static_core/runtime/include/tooling/ |
H A D | pt_location.h | 29 : pandaFile_(pandaFile), methodId_(methodId), bytecodeOffset_(bytecodeOffset) in PtLocation() 35 return pandaFile_; in GetPandaFile() 51 ::strcmp(pandaFile_, location.pandaFile_) == 0; in operator ==() 60 const char *pandaFile_; member in ark::tooling::PtLocation
|
/arkcompiler/runtime_core/static_core/runtime/ |
H A D | method.cpp | 201 pandaFile_(pf), 245 panda_file::ProtoDataAccessor pda(*(pandaFile_), in GetArgType() 246 panda_file::MethodDataAccessor::GetProtoId(*(pandaFile_), fileId_)); in GetArgType() 253 panda_file::ProtoDataAccessor pda(*(pandaFile_), in GetRefReturnType() 254 panda_file::MethodDataAccessor::GetProtoId(*(pandaFile_), fileId_)); in GetRefReturnType() 256 return pandaFile_->GetStringData(classId); in GetRefReturnType() 263 return pandaFile_->GetStringData(panda_file::MethodDataAccessor::GetClassId(*(pandaFile_), fileId_)); in GetRefArgType() 273 panda_file::ProtoDataAccessor pda(*(pandaFile_), in GetRefArgType() 274 panda_file::MethodDataAccessor::GetProtoId(*(pandaFile_), fileId in GetRefArgType() [all...] |
/arkcompiler/runtime_core/static_core/libpandafile/ |
H A D | proto_data_accessor-inl.h | 40 auto sp = pandaFile_.GetSpanFromId(protoId_); in EnumerateTypes() 78 auto sp1 = pandaFile_.GetSpanFromId(protoId_); in IsEqual() 79 auto sp2 = other->pandaFile_.GetSpanFromId(other->protoId_); in IsEqual() 104 auto id1 = pandaFile_.ResolveClassIndex(protoId_, helpers::Read<IDX_SIZE>(&sp1)); in IsEqual() 105 auto id2 = other->pandaFile_.ResolveClassIndex(other->protoId_, helpers::Read<IDX_SIZE>(&sp2)); in IsEqual() 106 if (pandaFile_.GetStringData(id1) != other->pandaFile_.GetStringData(id2)) { in IsEqual() 136 return pandaFile_.ResolveClassIndex(protoId_, classIdx); in GetReferenceType() 144 auto sp = pandaFile_.GetSpanFromId(protoId_); in GetType()
|
H A D | method_data_accessor.cpp | 22 : pandaFile_(pandaFile), methodId_(methodId) in MethodDataAccessor() 24 auto sp = pandaFile_.GetSpanFromId(methodId); in MethodDataAccessor() 35 isExternal_ = pandaFile_.IsExternal(methodId); in MethodDataAccessor() 40 size_ = pandaFile_.GetIdFromPointer(sp.data()).GetOffset() - methodId_.GetOffset(); in MethodDataAccessor()
|
H A D | literal_data_accessor.cpp | 21 : pandaFile_(pandaFile), literalDataId_(literalDataId) in LiteralDataAccessor() 23 literalNum_ = pandaFile_.GetHeader()->numLiteralarrays; in LiteralDataAccessor() 24 literalDataSp_ = pandaFile_.GetSpanFromId(literalDataId_); in LiteralDataAccessor()
|
H A D | annotation_data_accessor.h | 30 : pandaFile_(pandaFile), nameId_(nameId), value_(value) in Elem() 45 return ScalarValue(pandaFile_, value_); in GetScalarValue() 50 return ArrayValue(pandaFile_, File::EntityId(value_)); in GetArrayValue() 54 const File &pandaFile_; member in ark::panda_file::AnnotationDataAccessor::Elem 111 const File &pandaFile_; member in ark::panda_file::AnnotationDataAccessor
|
H A D | field_data_accessor.cpp | 24 : pandaFile_(pandaFile), fieldId_(fieldId) in FieldDataAccessor() 26 auto sp = pandaFile_.GetSpanFromId(fieldId_); in FieldDataAccessor() 36 isExternal_ = pandaFile_.IsExternal(fieldId_); in FieldDataAccessor() 43 size_ = pandaFile_.GetIdFromPointer(sp.data()).GetOffset() - fieldId_.GetOffset(); in FieldDataAccessor() 68 auto valueSp = pandaFile_.GetSpanFromId(File::EntityId(offset)); in GetValueInternal()
|
H A D | method_handle_data_accessor.cpp | 22 : pandaFile_(pandaFile), methodHandleId_(methodHandleId) in MethodHandleDataAccessor() 24 auto sp = pandaFile_.GetSpanFromId(methodHandleId_); in MethodHandleDataAccessor() 29 size_ = pandaFile_.GetIdFromPointer(sp.data()).GetOffset() - methodHandleId_.GetOffset(); in MethodHandleDataAccessor()
|
H A D | annotation_data_accessor.cpp | 22 : pandaFile_(pandaFile), annotationId_(annotationId) in AnnotationDataAccessor() 24 auto sp = pandaFile_.GetSpanFromId(annotationId_); in AnnotationDataAccessor() 26 classOff_ = pandaFile_.ResolveClassIndex(annotationId_, classIdx).GetOffset(); in AnnotationDataAccessor() 40 return AnnotationDataAccessor::Elem(pandaFile_, File::EntityId(name), value); in GetElement()
|
H A D | proto_data_accessor.h | 27 ProtoDataAccessor(const File &pandaFile, File::EntityId protoId) : pandaFile_(pandaFile), protoId_(protoId) {} in ProtoDataAccessor() 33 return pandaFile_; in GetPandaFile() 43 return pandaFile_.GetSpanFromId(protoId_); in GetShorty() 84 const File &pandaFile_; member in ark::panda_file::ProtoDataAccessor
|
H A D | value.h | 28 ScalarValue(const File &pandaFile, uint32_t value) : pandaFile_(pandaFile), value_(value) {} in ScalarValue() 52 auto sp = pandaFile_.GetSpanFromId(id); in Get() 68 const File &pandaFile_; member in ark::panda_file::ScalarValue 74 ArrayValue(const File &pandaFile, File::EntityId id) : pandaFile_(pandaFile), id_(id) in ArrayValue() 76 auto sp = pandaFile_.GetSpanFromId(id_); in ArrayValue() 116 const File &pandaFile_; member in ark::panda_file::ArrayValue
|
H A D | debug_data_accessor-inl.h | 69 auto lineNumProgramId = pandaFile_.ResolveLineNumberProgramIndex(index); in GetLineNumberProgram() 71 size_ = pandaFile_.GetIdFromPointer(sp.data()).GetOffset() - debugInfoId_.GetOffset(); in GetLineNumberProgram() 73 return pandaFile_.GetSpanFromId(lineNumProgramId).data(); in GetLineNumberProgram()
|
H A D | debug_data_accessor.cpp | 22 : pandaFile_(pandaFile), debugInfoId_(debugInfoId) in DebugInfoDataAccessor() 24 auto sp = pandaFile_.GetSpanFromId(debugInfoId_); in DebugInfoDataAccessor()
|
H A D | class_data_accessor-inl.h | 75 cb(pandaFile_.ResolveClassIndex(classId_, index)); in EnumerateInterfaces() 84 return pandaFile_.ResolveClassIndex(classId_, index); in GetInterfaceId() 140 EnumerateAnnotationsWithEarlyStop([&cb, &pf = pandaFile_, name, &result](panda_file::File::EntityId annotationId) { 186 EnumerateClassElements<Callback, FieldDataAccessor>(pandaFile_, fieldsSp_, numFields_, cb, &methodsSp_); 198 EnumerateClassElements<Callback, MethodDataAccessor>(pandaFile_, methodsSp_, numMethods_, cb, &sp); 200 size_ = pandaFile_.GetIdFromPointer(sp.data()).GetOffset() - classId_.GetOffset();
|
H A D | method_handle_data_accessor.h | 43 return pandaFile_; in GetPandaFile() 57 const File &pandaFile_; member in ark::panda_file::MethodHandleDataAccessor
|
H A D | debug_data_accessor.h | 62 return pandaFile_; in GetPandaFile() 77 const File &pandaFile_; member in ark::panda_file::DebugInfoDataAccessor
|
/arkcompiler/toolchain/tooling/test/testcases/ |
H A D | js_single_step_test.h | 35 locationStart_ = TestUtil::GetLocation(sourceFile_.c_str(), 19, 0, pandaFile_.c_str()); in JsSingleStepTest() 37 locationEnd_ = TestUtil::GetLocation(sourceFile_.c_str(), 22, 0, pandaFile_.c_str()); in JsSingleStepTest() 39 ASSERT_EQ(moduleName, pandaFile_); in JsSingleStepTest() 83 return {pandaFile_, entryPoint_}; 87 std::string pandaFile_ = DEBUGGER_ABC_DIR "sample.abc"; member in panda::ecmascript::tooling::test::JsSingleStepTest
|
H A D | js_range_error_test.h | 42 auto sourceLocation = TestUtil::GetSourceLocation(location, pandaFile_.c_str()); in JsRangeErrorTest() 60 location_ = TestUtil::GetLocation(sourceFile_.c_str(), 21, 4, pandaFile_.c_str()); in JsRangeErrorTest() 63 ASSERT_EQ(moduleName, pandaFile_); in JsRangeErrorTest() 64 ASSERT_TRUE(debugger_->NotifyScriptParsed(0, pandaFile_)); in JsRangeErrorTest() 93 return {pandaFile_, entryPoint_}; 98 std::string pandaFile_ = DEBUGGER_ABC_DIR "range_error.abc"; member in panda::ecmascript::tooling::test::JsRangeErrorTest
|
H A D | js_throw_exception_test.h | 42 auto sourceLocation = TestUtil::GetSourceLocation(location, pandaFile_.c_str());
in JsThrowExceptionTest() 61 location_ = TestUtil::GetLocation(sourceFile_.c_str(), 31, 0, pandaFile_.c_str());
in JsThrowExceptionTest() 66 ASSERT_EQ(moduleName, pandaFile_);
in JsThrowExceptionTest() 67 ASSERT_TRUE(debugger_->NotifyScriptParsed(0, pandaFile_));
in JsThrowExceptionTest() 96 return {pandaFile_, entryPoint_};
102 std::string pandaFile_ = DEBUGGER_ABC_DIR + testFile + ".abc";
member in panda::ecmascript::tooling::test::JsThrowExceptionTest
|
H A D | js_syntax_exception_test.h | 42 auto sourceLocation = TestUtil::GetSourceLocation(location, pandaFile_.c_str());
in JsSyntaxExceptionTest() 60 location_ = TestUtil::GetLocation(sourceFile_.c_str(), 29, 4, pandaFile_.c_str());
in JsSyntaxExceptionTest() 63 ASSERT_EQ(moduleName, pandaFile_);
in JsSyntaxExceptionTest() 64 ASSERT_TRUE(debugger_->NotifyScriptParsed(0, pandaFile_));
in JsSyntaxExceptionTest() 93 return {pandaFile_, entryPoint_};
99 std::string pandaFile_ = DEBUGGER_ABC_DIR + testFile + ".abc";
member in panda::ecmascript::tooling::test::JsSyntaxExceptionTest
|
H A D | js_step_over_test.h | 41 ASSERT_EQ(moduleName, pandaFile_); in JsStepOverTest() 96 return {pandaFile_, entryPoint_}; 104 std::string pandaFile_ = DEBUGGER_ABC_DIR "step.abc"; member in panda::ecmascript::tooling::test::JsStepOverTest 118 arr[i * LINE_COLUMN + 1], pandaFile_.c_str()); in SetJSPtLocation()
|
H A D | js_step_out_test.h | 41 ASSERT_EQ(moduleName, pandaFile_); in JsStepOutTest() 92 return {pandaFile_, entryPoint_}; 100 std::string pandaFile_ = DEBUGGER_ABC_DIR "step.abc"; member in panda::ecmascript::tooling::test::JsStepOutTest 114 arr[i * LINE_COLUMN + 1], pandaFile_.c_str()); in SetJSPtLocation()
|
H A D | js_step_into_test.h | 43 ASSERT_EQ(moduleName, pandaFile_); in JsStepIntoTest() 98 return {pandaFile_, entryPoint_}; 106 std::string pandaFile_ = DEBUGGER_ABC_DIR "step.abc"; member in panda::ecmascript::tooling::test::JsStepIntoTest 118 arr[i * LINE_COLUMN + 1], pandaFile_.c_str()); in SetJSPtLocation()
|