Home
last modified time | relevance | path

Searched refs:extractor (Results 1 – 25 of 43) sorted by relevance

12

/arkcompiler/runtime_core/libpandafile/tests/
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) == … in GetBreakpointAddressWrapper()
255 panda_file::LineNumberTable line_table = extractor.GetLineNumberTable(method); in GetBreakpointAddressWrapper()
270 …td::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… 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()
331 DebugInfoExtractor extractor(pf);
[all …]
/arkcompiler/runtime_core/static_core/libpandafile/tests/
Ddebug_info_extractor_test.cpp248 …td::pair<File::EntityId, uint32_t> GetBreakpointAddressWrapper(const DebugInfoExtractor &extractor, in GetBreakpointAddressWrapper() argument
258 std::vector<panda_file::File::EntityId> methods = extractor.GetMethodIdList(); in GetBreakpointAddressWrapper()
260 …if (extractor.GetSourceFile(method) == sourceLocation.path || extractor.GetSourceFile(method) == n… in GetBreakpointAddressWrapper()
261 const panda_file::LineNumberTable &lineTable = extractor.GetLineNumberTable(method); in GetBreakpointAddressWrapper()
276 …tor<panda_file::LocalVariableInfo> GetLocalVariableInfoWrapper(const DebugInfoExtractor &extractor, in GetLocalVariableInfoWrapper() argument
279 … std::vector<panda_file::LocalVariableInfo> variables = extractor.GetLocalVariableTable(methodId); in GetLocalVariableInfoWrapper()
290 static SourcePairLocation GetSourcePairLocationWrapper(const DebugInfoExtractor &extractor, File::E… in GetSourcePairLocationWrapper() argument
293 const panda_file::LineNumberTable &lineTable = extractor.GetLineNumberTable(methodId); in GetSourcePairLocationWrapper()
303 return SourcePairLocation {extractor.GetSourceFile(methodId), line.value()}; in GetSourcePairLocationWrapper()
341 DebugInfoExtractor extractor(pf); in TEST_F() local
[all …]
/arkcompiler/ets_frontend/es2panda/compiler/core/
DcompilerContext.h34 namespace panda::es2panda::extractor {
121 extractor::TypeRecorder *TypeRecorder() const in TypeRecorder()
126 extractor::TypeExtractor *TypeExtractor() const in TypeExtractor()
131 void SetTypeRecorder(extractor::TypeRecorder *recorder);
132 void SetTypeExtractor(extractor::TypeExtractor *extractor);
156 extractor::TypeRecorder *recorder_ {};
157 extractor::TypeExtractor *extractor_ {};
DcompilerContext.cpp34 void CompilerContext::SetTypeRecorder(extractor::TypeRecorder *recorder) in SetTypeRecorder()
41 void CompilerContext::SetTypeExtractor(extractor::TypeExtractor *extractor) in SetTypeExtractor() argument
43 extractor_ = extractor; in SetTypeExtractor()
DcompilerImpl.h59 std::unique_ptr<extractor::TypeExtractor> extractor_ {};
DcompilerImpl.cpp51 extractor_ = std::make_unique<extractor::TypeExtractor>(rootNode, program->IsDtsFile(), in Compile()
/arkcompiler/runtime_core/static_core/disassembler/tests/
Dextractor_test.cpp47 …panda::disasm::DisasmBackedDebugInfoExtractor extractor(*pf, [&methodId, &sourceName](auto id, aut… in TEST() local
52 auto idList = extractor.GetMethodIdList(); in TEST()
56 ASSERT_NE(extractor.GetSourceCode(id), nullptr); in TEST()
59 ASSERT_EQ(extractor.GetSourceFile(id), sourceName); in TEST()
61 auto lineTable = extractor.GetLineNumberTable(id); in TEST()
/arkcompiler/toolchain/tooling/backend/
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()
126 std::list<JSPtStepRange> ranges = GetStepRanges(extractor, ptMethod->GetMethodId(), in GetStepper()
Djs_single_stepper.h55 static std::list<JSPtStepRange> GetStepRanges(DebugInfoExtractor *extractor,
/arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/tooling/
Dtest_debug_info.cpp44 panda_file::DebugInfoExtractor extractor(file.get()); in TEST_F() local
45 auto methods = extractor.GetMethodIdList(); in TEST_F()
47 auto sourceFilePath = extractor.GetSourceFile(methods[0]); in TEST_F()
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Dclass_info_extractor.cpp24 …ctor::BuildClassInfoExtractorFromLiteral(JSThread *thread, JSHandle<ClassInfoExtractor> &extractor, in BuildClassInfoExtractorFromLiteral() argument
44 Method *method = Method::Cast(extractor->GetConstructorMethod().GetTaggedObject()); in BuildClassInfoExtractorFromLiteral()
54 extractor->SetNonStaticWithElements(true); in BuildClassInfoExtractorFromLiteral()
55 extractor->SetNonStaticElements(thread, nonStaticElements); in BuildClassInfoExtractorFromLiteral()
59 extractor->SetNonStaticKeys(thread, nonStaticKeys); in BuildClassInfoExtractorFromLiteral()
60 extractor->SetNonStaticProperties(thread, nonStaticProperties); in BuildClassInfoExtractorFromLiteral()
83 extractor->SetStaticWithElements(true); in BuildClassInfoExtractorFromLiteral()
84 extractor->SetStaticElements(thread, staticElements); in BuildClassInfoExtractorFromLiteral()
97 extractor->SetStaticKeys(thread, staticKeys); in BuildClassInfoExtractorFromLiteral()
98 extractor->SetStaticProperties(thread, staticProperties); in BuildClassInfoExtractorFromLiteral()
[all …]
Djs_pandafile_manager.cpp428 DebugInfoExtractor *extractor = extractorPtr.get(); in GetJSPtExtractor() local
430 return extractor; in GetJSPtExtractor()
450 DebugInfoExtractor *extractor = extractorPtr.get(); in GetJSPtExtractorAndExtract() local
451 extractor->Extract(); in GetJSPtExtractorAndExtract()
453 return extractor; in GetJSPtExtractorAndExtract()
470 DebugInfoExtractor *extractor = nullptr; in CpuProfilerGetJSPtExtractor() local
474 extractor = extractorPtr.get(); in CpuProfilerGetJSPtExtractor()
477 extractor = iter->second.get(); in CpuProfilerGetJSPtExtractor()
480 extractor->Extract(); in CpuProfilerGetJSPtExtractor()
481 return extractor; in CpuProfilerGetJSPtExtractor()
Dclass_info_extractor.h56 … void BuildClassInfoExtractorFromLiteral(JSThread *thread, JSHandle<ClassInfoExtractor> &extractor,
107 JSHandle<ClassInfoExtractor> &extractor,
111 JSHandle<ClassInfoExtractor> &extractor,
130 … JSHandle<ClassInfoExtractor> &extractor,
/arkcompiler/toolchain/tooling/agent/
Ddebugger_impl.cpp92 DebugInfoExtractor *extractor = GetExtractor(jsPandaFile); in NotifyScriptParsed() local
93 if (extractor == nullptr) { in NotifyScriptParsed()
100 const std::string &source = extractor->GetSourceCode(mainMethodIndex); in NotifyScriptParsed()
101 const std::string &url = extractor->GetSourceFile(mainMethodIndex); in NotifyScriptParsed()
170 DebugInfoExtractor *extractor = nullptr; in IsSkipLine() local
172 auto scriptFunc = [this, &extractor, jsPandaFile](PtScript *) -> bool { in IsSkipLine()
173 extractor = GetExtractor(jsPandaFile); in IsSkipLine()
179 …if (!MatchScripts(scriptFunc, fileName.c_str(), ScriptMatchType::FILE_NAME) || extractor == nullpt… in IsSkipLine()
189 if (extractor->MatchLineWithOffset(callbackFunc, methodId, offset)) { in IsSkipLine()
229 DebugInfoExtractor *extractor = nullptr; in NotifyPaused() local
[all …]
/arkcompiler/ets_frontend/es2panda/typescript/extractor/
DtypeSystem.h55 namespace panda::es2panda::extractor {
248 explicit BaseType(TypeExtractor *extractor) in BaseType() argument
249 … : extractor_(extractor), recorder_(extractor_->Recorder()), buffer_(recorder_->NewLiteralBuffer()) in BaseType()
334 explicit TypeCounter(TypeExtractor *extractor) : BaseType(extractor) in TypeCounter() argument
385 explicit IndexSigType(TypeExtractor *extractor, int64_t typeIndexRefShift, in IndexSigType() argument
387 : BaseType(extractor), typeIndexRefShift_(typeIndexRefShift) in IndexSigType()
431 …explicit FunctionType(TypeExtractor *extractor, const ir::AstNode *node, const util::StringView &n… in FunctionType() argument
432 : BaseType(extractor), paramsTypeIndex_(recorder_->Allocator()->Adapter()) in FunctionType()
623 …explicit ClassType(TypeExtractor *extractor, const ir::ClassDefinition *classDef, const util::Stri… in ClassType() argument
624 : BaseType(extractor), in ClassType()
[all …]
DtypeExtractor.h25 namespace panda::es2panda::extractor {
148 explicit GenericParamTypeBindScope(TypeExtractor *extractor, in GenericParamTypeBindScope() argument
149 const ArenaMap<util::StringView, int64_t> *genericParamTypeMap) : extractor_(extractor) in GenericParamTypeBindScope()
/arkcompiler/runtime_core/static_core/runtime/tests/tooling/
Dtest_util.cpp42 auto extractor = extractorFactory_->MakeTestExtractor(pf); in GetValueRegister() local
44 …auto variables = extractor->GetLocalVariableInfo(location.GetMethodId(), location.GetBytecodeOffse… in GetValueRegister()
51 auto params = extractor->GetParameterInfo(location.GetMethodId()); in GetValueRegister()
Dtest_util.h133 auto extractor = extractorFactory_->MakeTestExtractor(pf); in GetLocation() local
134 auto [id, offset] = extractor->GetBreakpointAddress({sourceFile, line}); in GetLocation()
/arkcompiler/ets_frontend/es2panda/compiler/core/emitter/
DtypeExtractorEmitter.cpp56 static void GenTypeInfo(const extractor::TypeRecorder *recorder, int64_t typeIndex, std::vector<Lit… in GenTypeInfo()
75 static void GenInsnTypeInfo(const extractor::TypeRecorder *recorder, uint32_t orderIndex, int64_t t… in GenInsnTypeInfo()
107 if (typeIndex > extractor::TypeRecorder::PRIMITIVETYPE_ANY) { in GenFunctionTypeInfo()
117 if (pg_->TypedFunc().first != extractor::TypeRecorder::PRIMITIVETYPE_ANY) { in GenFunctionTypeInfo()
122 if (pg_->TypedFunc().second > extractor::TypeRecorder::PRIMITIVETYPE_ANY) { in GenFunctionTypeInfo()
147 const extractor::TypeRecorder *recorder, const M &map, AnnotationData &funcTypeAnnotation) in GenImportOrDeclareTypeInfo()
236 const extractor::TypeRecorder *recorder) in GenTypeLiteralBuffers()
DtypeExtractorEmitter.h42 …static void GenTypeLiteralBuffers(panda::pandasm::Program *prog, const extractor::TypeRecorder *re…
64 …void GenImportOrDeclareTypeInfo(panda::pandasm::Program *prog, const extractor::TypeRecorder *reco…
Demitter.h115 void FillTypeLiteralBuffers(const extractor::TypeRecorder *recorder) const;
/arkcompiler/ets_runtime/ecmascript/extractortool/src/
Dextractor.cpp249 std::shared_ptr<Extractor> extractor = std::make_shared<Extractor>(hapPath); in GetExtractor() local
250 if (!extractor->Init()) { in GetExtractor()
255 extractorMap_.emplace(hapPath, extractor); in GetExtractor()
258 return extractor; in GetExtractor()
Dsource_map.cpp56 std::shared_ptr<Extractor> extractor = ExtractorUtil::GetExtractor( in ReadSourceMapData() local
58 if (extractor == nullptr) { in ReadSourceMapData()
63 if (!extractor->ExtractToBufByName(MEGER_SOURCE_MAP_PATH, dataPtr, len)) { in ReadSourceMapData()
/arkcompiler/toolchain/tooling/test/utils/
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.GetBytecode… in GetSourceLocation()
/arkcompiler/runtime_core/verifier/tests/
DBUILD.gn64 extra_args = [ "--type-extractor" ]

12