Home
last modified time | relevance | path

Searched refs:extractor (Results 1 - 25 of 26) sorted by relevance

12

/arkcompiler/runtime_core/libpandafile/tests/
H A Ddebug_info_extractor_test.cpp242 static std::pair<File::EntityId, uint32_t> GetBreakpointAddressWrapper(DebugInfoExtractor extractor, in GetBreakpointAddressWrapper() argument
252 std::vector<panda_file::File::EntityId> methods = extractor.GetMethodIdList(); in GetBreakpointAddressWrapper()
254 if (extractor.GetSourceFile(method) == source_location.path || extractor.GetSourceFile(method) == name) { in GetBreakpointAddressWrapper()
255 panda_file::LineNumberTable line_table = extractor.GetLineNumberTable(method); in GetBreakpointAddressWrapper()
270 static std::vector<panda_file::LocalVariableInfo> GetLocalVariableInfoWrapper(DebugInfoExtractor extractor, in GetLocalVariableInfoWrapper() argument
273 std::vector<panda_file::LocalVariableInfo> variables = extractor.GetLocalVariableTable(method_id); in GetLocalVariableInfoWrapper()
284 static SourcePairLocation 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 in GetSourcePairLocationWrapper()
[all...]
H A Dfile_item_container_test.cpp729 DebugInfoExtractor extractor(panda_file.get()); in HWTEST()
730 const auto &methods = extractor.GetMethodIdList(); in HWTEST()
732 for (const auto &info : extractor.GetParameterInfo(method_id)) { in HWTEST()
/arkcompiler/runtime_core/static_core/libpandafile/tests/
H A Ddebug_info_extractor_test.cpp249 static std::pair<File::EntityId, uint32_t> GetBreakpointAddressWrapper(const DebugInfoExtractor &extractor, in GetBreakpointAddressWrapper() argument
259 std::vector<panda_file::File::EntityId> methods = extractor.GetMethodIdList(); in GetBreakpointAddressWrapper()
261 if (extractor.GetSourceFile(method) == sourceLocation.path || extractor.GetSourceFile(method) == name) { in GetBreakpointAddressWrapper()
262 const panda_file::LineNumberTable &lineTable = extractor.GetLineNumberTable(method); in GetBreakpointAddressWrapper()
277 static std::vector<panda_file::LocalVariableInfo> GetLocalVariableInfoWrapper(const DebugInfoExtractor &extractor, in GetLocalVariableInfoWrapper() argument
280 std::vector<panda_file::LocalVariableInfo> variables = extractor.GetLocalVariableTable(methodId); in GetLocalVariableInfoWrapper()
291 static SourcePairLocation GetSourcePairLocationWrapper(const DebugInfoExtractor &extractor, File::EntityId methodId, in GetSourcePairLocationWrapper() argument
294 const panda_file::LineNumberTable &lineTable = extractor.GetLineNumberTable(methodId); in GetSourcePairLocationWrapper()
304 return SourcePairLocation {extractor in GetSourcePairLocationWrapper()
[all...]
/arkcompiler/runtime_core/static_core/disassembler/tests/
H A Dextractor_test.cpp48 ark::disasm::DisasmBackedDebugInfoExtractor extractor(*pf, [&methodId, &sourceName](auto id, auto sn) { in TEST()
53 auto idList = extractor.GetMethodIdList(); in TEST()
57 ASSERT_NE(extractor.GetSourceCode(id), nullptr); in TEST()
60 ASSERT_EQ(extractor.GetSourceFile(id), sourceName); in TEST()
62 auto lineTable = extractor.GetLineNumberTable(id); in TEST()
/arkcompiler/toolchain/tooling/backend/
H A Djs_single_stepper.cpp90 std::list<JSPtStepRange> SingleStepper::GetStepRanges(DebugInfoExtractor *extractor, in GetStepRanges() argument
94 const LineNumberTable &table = extractor->GetLineNumberTable(methodId); in GetStepRanges()
105 extractor->MatchLineWithOffset(callbackFunc, methodId, offset); in GetStepRanges()
115 DebugInfoExtractor *extractor = JSPandaFileManager::GetInstance()->GetJSPtExtractor( in GetStepper() local
117 if (extractor == nullptr) { in GetStepper()
118 LOG_DEBUGGER(ERROR) << "GetStepper: extractor is null"; in GetStepper()
126 std::list<JSPtStepRange> ranges = GetStepRanges(extractor, ptMethod->GetMethodId(), in GetStepper()
H A Djs_single_stepper.h55 static std::list<JSPtStepRange> GetStepRanges(DebugInfoExtractor *extractor,
/arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/tooling/
H A Dtest_debug_info.cpp44 panda_file::DebugInfoExtractor extractor(file.get()); in TEST_F()
45 auto methods = extractor.GetMethodIdList(); in TEST_F()
47 auto sourceFilePath = extractor.GetSourceFile(methods[0]); in TEST_F()
/arkcompiler/runtime_core/static_core/runtime/tests/tooling/
H A Dtest_util.cpp42 auto extractor = extractorFactory_->MakeTestExtractor(pf); in GetValueRegister() local
44 auto variables = extractor->GetLocalVariableInfo(location.GetMethodId(), location.GetBytecodeOffset()); in GetValueRegister()
51 auto params = extractor->GetParameterInfo(location.GetMethodId()); in GetValueRegister()
H A Dtest_util.h135 auto extractor = extractorFactory_->MakeTestExtractor(pf); in GetLocation() local
136 auto [id, offset] = extractor->GetBreakpointAddress({sourceFile, line}); in GetLocation()
/arkcompiler/toolchain/tooling/agent/
H A Ddebugger_impl.cpp85 DebugInfoExtractor *extractor = GetExtractor(jsPandaFile); in NotifyScriptParsed() local
86 if (extractor == nullptr) { in NotifyScriptParsed()
93 const std::string &source = extractor->GetSourceCode(mainMethodIndex); in NotifyScriptParsed()
94 const std::string &url = extractor->GetSourceFile(mainMethodIndex); in NotifyScriptParsed()
168 DebugInfoExtractor *extractor = JSPandaFileManager::GetInstance()->GetJSPtExtractor(jsPandaFile); in SendableMethodEntry() local
169 if (extractor == nullptr) { in SendableMethodEntry()
170 LOG_DEBUGGER(ERROR) << "extractor is nullptr"; in SendableMethodEntry()
174 const std::string &url = extractor->GetSourceFile(methodId); in SendableMethodEntry()
178 const std::string &source = extractor->GetSourceCode(methodId); in SendableMethodEntry()
242 DebugInfoExtractor *extractor in IsSkipLine() local
301 DebugInfoExtractor *extractor = nullptr; NotifyPaused() local
1627 DebugInfoExtractor *extractor = JSPandaFileManager::GetInstance()->GetJSPtExtractor(jsPandaFile); GetExtractors() local
1676 DebugInfoExtractor *extractor = GetExtractor(jsPandaFile); GenerateCallFrame() local
1756 DebugInfoExtractor *extractor = GetExtractor(jsPandaFile); GetLocalScopeChain() local
1808 DebugInfoExtractor *extractor = GetExtractor(jsPandaFile); GetClosureScopeChains() local
1921 auto *extractor = GetExtractor(jsPandaFile); GetLocalVariables() local
2028 DebugInfoExtractor *extractor = GetExtractor(DebuggerApi::GetJSPandaFile(vm_)); CmptEvaluateValue() local
[all...]
/arkcompiler/ets_runtime/ecmascript/jspandafile/
H A Dclass_info_extractor.cpp28 void ClassInfoExtractor::BuildClassInfoExtractorFromLiteral(JSThread *thread, JSHandle<ClassInfoExtractor> &extractor, in BuildClassInfoExtractorFromLiteral() argument
59 Method *method = Method::Cast(extractor->GetConstructorMethod().GetTaggedObject()); in BuildClassInfoExtractorFromLiteral()
69 extractor->SetNonStaticWithElements(true); in BuildClassInfoExtractorFromLiteral()
70 extractor->SetNonStaticElements(thread, nonStaticElements); in BuildClassInfoExtractorFromLiteral()
74 extractor->SetNonStaticKeys(thread, nonStaticKeys); in BuildClassInfoExtractorFromLiteral()
75 extractor->SetNonStaticProperties(thread, nonStaticProperties); in BuildClassInfoExtractorFromLiteral()
105 extractor->SetStaticWithElements(true); in BuildClassInfoExtractorFromLiteral()
106 extractor->SetStaticElements(thread, staticElements); in BuildClassInfoExtractorFromLiteral()
119 extractor->SetStaticKeys(thread, staticKeys); in BuildClassInfoExtractorFromLiteral()
120 extractor in BuildClassInfoExtractorFromLiteral()
384 DefineClassFromExtractor(JSThread *thread, const JSHandle<JSTaggedValue> &base, JSHandle<ClassInfoExtractor> &extractor, const JSHandle<JSTaggedValue> &lexenv) DefineClassFromExtractor() argument
470 DefineClassWithIHClass(JSThread *thread, const JSHandle<JSTaggedValue> &base, JSHandle<ClassInfoExtractor> &extractor, const JSHandle<JSTaggedValue> &lexenv, const JSHandle<JSTaggedValue> &prototypeOrHClassVal, const JSHandle<JSTaggedValue> &constructorHClassVal) DefineClassWithIHClass() argument
730 DefineSendableClassFromExtractor(JSThread *thread, JSHandle<ClassInfoExtractor> &extractor, const JSHandle<TaggedArray> &staticFieldArray) DefineSendableClassFromExtractor() argument
[all...]
H A Djs_pandafile_manager.cpp428 LOG_ECMA(FATAL) << "get extractor failed, file not exist: " << filename in GetJSPtExtractor()
436 DebugInfoExtractor *extractor = extractorPtr.get(); in GetJSPtExtractor() local
438 return extractor; in GetJSPtExtractor()
451 LOG_ECMA(FATAL) << "get extractor failed, file not exist: " << filename; in GetJSPtExtractorAndExtract()
458 DebugInfoExtractor *extractor = extractorPtr.get(); in GetJSPtExtractorAndExtract() local
459 extractor->Extract(); in GetJSPtExtractorAndExtract()
461 return extractor; in GetJSPtExtractorAndExtract()
474 LOG_ECMA(FATAL) << "get extractor failed, file not exist: " << filename; in CpuProfilerGetJSPtExtractor()
478 DebugInfoExtractor *extractor = nullptr; in CpuProfilerGetJSPtExtractor() local
482 extractor in CpuProfilerGetJSPtExtractor()
[all...]
H A Dclass_info_extractor.h61 static void BuildClassInfoExtractorFromLiteral(JSThread *thread, JSHandle<ClassInfoExtractor> &extractor,
114 JSHandle<ClassInfoExtractor> &extractor,
118 JSHandle<ClassInfoExtractor> &extractor,
143 JSHandle<ClassInfoExtractor> &extractor,
/arkcompiler/ets_frontend/ets2panda/evaluate/
H A DdebugInfoStorage.cpp150 context.extractor = std::make_unique<panda_file::DebugInfoExtractor>(contextPandaFile); in FillEvaluateContext()
152 for (auto methodId : context.extractor->GetMethodIdList()) { in FillEvaluateContext()
153 for (const auto &entry : context.extractor->GetLineNumberTable(methodId)) { in FillEvaluateContext()
157 util::UString sourceFilePath(std::string_view(context.extractor->GetSourceFile(methodId)), allocator_); in FillEvaluateContext()
H A DevaluateContext.h62 std::unique_ptr<panda_file::DebugInfoExtractor> extractor {nullptr};
H A DscopedDebugInfoPlugin.cpp391 const auto &localVariableTable = context_.extractor->GetLocalVariableTable(context_.methodId);
/arkcompiler/ets_runtime/ecmascript/extractortool/src/
H A Dextractor.cpp16 #include "extractor.h"
252 std::shared_ptr<Extractor> extractor = std::make_shared<Extractor>(hapPath); in GetExtractor() local
253 if (!extractor->Init()) { in GetExtractor()
258 extractorMap_.emplace(hapPath, extractor); in GetExtractor()
261 return extractor; in GetExtractor()
H A Dsource_map.cpp26 #include "ecmascript/extractortool/src/extractor.h"
60 std::shared_ptr<Extractor> extractor = ExtractorUtil::GetExtractor( in ReadSourceMapData() local
62 if (extractor == nullptr) { in ReadSourceMapData()
67 if (!extractor->ExtractToBufByName(MEGER_SOURCE_MAP_PATH, dataPtr, len)) { in ReadSourceMapData()
/arkcompiler/ets_runtime/ecmascript/dfx/stackinfo/
H A Djs_stackinfo.cpp24 #include "ecmascript/extractortool/src/extractor.h"
64 debugExtractor = lastCache.extractor; in BuildMethodTrace()
68 lastCache.extractor = debugExtractor; in BuildMethodTrace()
642 auto extractor = reinterpret_cast<JSSymbolExtractor*>(extractorptr);
643 if (extractor == nullptr) {
644 LOG_ECMA(ERROR) << "Parse JSframe info failed, extractor is nullptr.";
647 auto jsPandaFile = extractor->GetJSPandaFile(data, dataSize);
652 auto debugExtractor = extractor->GetDebugExtractor();
653 auto methodInfos = extractor->GetMethodInfos();
669 ParseJsFrameInfo(jsPandaFile, debugExtractor, EntityId(methodId), offset, *jsFunction, extractor
[all...]
H A Djs_stackinfo.h140 static bool Destory(JSSymbolExtractor* extractor);
172 DebugInfoExtractor *extractor{nullptr};
/arkcompiler/toolchain/tooling/test/utils/
H A Dtest_util.h151 TestExtractor extractor(jsPandaFile.get()); in GetLocation()
152 auto [id, offset] = extractor.GetBreakpointAddress({jsPandaFile.get(), line, column}); in GetLocation()
163 TestExtractor extractor(jsPandaFile.get()); in GetSourceLocation()
164 return extractor.GetSourceLocation(jsPandaFile.get(), location.GetMethodId(), location.GetBytecodeOffset()); in GetSourceLocation()
/arkcompiler/ets_runtime/ecmascript/compiler/aot_snapshot/
H A Dsnapshot_constantpool_data.h89 const JSHandle<ClassInfoExtractor> &extractor);
92 const JSHandle<ClassInfoExtractor> &extractor);
H A Dsnapshot_constantpool_data.cpp187 const JSHandle<ClassInfoExtractor> &extractor) in CheckAOTIhcPropertiesForRep()
201 JSHandle<TaggedArray> nonStaticProperties(thread, extractor->GetNonStaticProperties()); in CheckAOTIhcPropertiesForRep()
207 const JSHandle<ClassInfoExtractor> &extractor) in CheckAOTChcPropertiesForRep()
214 JSHandle<TaggedArray> staticProperties(thread, extractor->GetStaticProperties()); in CheckAOTChcPropertiesForRep()
310 auto extractor = factory->NewClassInfoExtractor(JSHandle<JSTaggedValue>(thread_, method)); in StoreDataToGlobalData() local
311 ClassInfoExtractor::BuildClassInfoExtractorFromLiteral(thread_, extractor, arrayHandle, in StoreDataToGlobalData()
313 if (!CheckAOTIhcPropertiesForRep(thread_, ihc, extractor)) { in StoreDataToGlobalData()
316 if (!CheckAOTChcPropertiesForRep(thread_, chc, extractor)) { in StoreDataToGlobalData()
186 CheckAOTIhcPropertiesForRep(JSThread *thread, const JSHandle<JSTaggedValue> &ihc, const JSHandle<ClassInfoExtractor> &extractor) CheckAOTIhcPropertiesForRep() argument
206 CheckAOTChcPropertiesForRep(JSThread *thread, const JSHandle<JSTaggedValue> &chc, const JSHandle<ClassInfoExtractor> &extractor) CheckAOTChcPropertiesForRep() argument
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/
H A Djs_pandafile_manager_test.cpp310 DebugInfoExtractor *extractor = pfManager->GetJSPtExtractor(pf.get()); in HWTEST_F_L0() local
311 EXPECT_TRUE(extractor != nullptr); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/debugger/
H A Ddebugger_api.cpp181 DebugInfoExtractor *extractor = JSPandaFileManager::GetInstance()->GetJSPtExtractor(method->GetJSPandaFile()); in GetVregIndex() local
182 if (extractor == nullptr) { in GetVregIndex()
183 LOG_DEBUGGER(ERROR) << "GetVregIndex: extractor is null"; in GetVregIndex()
191 auto table = extractor->GetLocalVariableTable(method->GetMethodId()); in GetVregIndex()

Completed in 21 milliseconds

12