Home
last modified time | relevance | path

Searched refs:methodId (Results 1 – 25 of 63) sorted by relevance

123

/arkcompiler/ets_runtime/ecmascript/jspandafile/
Dmethod_literal.cpp26 MethodLiteral::MethodLiteral(EntityId methodId) in MethodLiteral() argument
28 ASSERT(methodId.IsValid()); in MethodLiteral()
29 SetMethodId(methodId); in MethodLiteral()
35 EntityId methodId = GetMethodId(); in Initialize() local
36 panda_file::MethodDataAccessor mda(*pf, methodId); in Initialize()
84 std::string MethodLiteral::ParseFunctionName(const JSPandaFile *jsPandaFile, EntityId methodId) in ParseFunctionName() argument
90 std::string methodName(GetMethodName(jsPandaFile, methodId)); in ParseFunctionName()
99 const char *MethodLiteral::GetMethodName(const JSPandaFile *jsPandaFile, EntityId methodId) in GetMethodName() argument
106 panda_file::MethodDataAccessor mda(*pf, methodId); in GetMethodName()
111 CString MethodLiteral::GetRecordName(const JSPandaFile *jsPandaFile, EntityId methodId) in GetRecordName() argument
[all …]
Ddebug_info_extractor.cpp183 … LineNumberTable &DebugInfoExtractor::GetLineNumberTable(const panda_file::File::EntityId methodId) in GetLineNumberTable() argument
188 auto iter = methods_.find(methodId.GetOffset()); in GetLineNumberTable()
190 if (!ExtractorMethodDebugInfo(methodId)) { in GetLineNumberTable()
193 return methods_[methodId.GetOffset()].lineNumberTable; in GetLineNumberTable()
199 …umnNumberTable &DebugInfoExtractor::GetColumnNumberTable(const panda_file::File::EntityId methodId) in GetColumnNumberTable() argument
204 auto iter = methods_.find(methodId.GetOffset()); in GetColumnNumberTable()
206 if (!ExtractorMethodDebugInfo(methodId)) { in GetColumnNumberTable()
209 return methods_[methodId.GetOffset()].columnNumberTable; in GetColumnNumberTable()
215 …VariableTable &DebugInfoExtractor::GetLocalVariableTable(const panda_file::File::EntityId methodId) in GetLocalVariableTable() argument
220 auto iter = methods_.find(methodId.GetOffset()); in GetLocalVariableTable()
[all …]
Ddebug_info_extractor.h84 const LineNumberTable &GetLineNumberTable(const panda_file::File::EntityId methodId);
86 const ColumnNumberTable &GetColumnNumberTable(const panda_file::File::EntityId methodId);
88 const LocalVariableTable &GetLocalVariableTable(const panda_file::File::EntityId methodId);
90 const std::string &GetSourceFile(const panda_file::File::EntityId methodId);
92 const std::string &GetSourceCode(const panda_file::File::EntityId methodId);
126 for (auto &methodId : methodIds) { in MatchWithLocation()
127 const std::string &sourceFile = GetSourceFile(methodId); in MatchWithLocation()
132 const LineNumberTable &lineTable = GetLineNumberTable(methodId); in MatchWithLocation()
133 const ColumnNumberTable &columnTable = GetColumnNumberTable(methodId); in MatchWithLocation()
138 currentMethodId = methodId; in MatchWithLocation()
[all …]
Dliteral_data_extractor.cpp47 uint32_t methodId = 0; in ExtractObjectDatas() local
51 … &methodId, &kind, &constpool, &entryPoint](const LiteralValue &value, const LiteralTag &tag) { in ExtractObjectDatas()
78 methodId = std::get<uint32_t>(value); in ExtractObjectDatas()
83 methodId = std::get<uint32_t>(value); in ExtractObjectDatas()
90 … DefineMethodInLiteral(thread, jsPandaFile, methodId, constpool, kind, length, entryPoint); in ExtractObjectDatas()
146 uint32_t methodId = 0; in EnumerateLiteralVals() local
149 … index, [literals, &pos, factory, thread, jsPandaFile, &methodId, &kind, &constpool, &entryPoint] in EnumerateLiteralVals()
172 methodId = std::get<uint32_t>(value); in EnumerateLiteralVals()
177 methodId = std::get<uint32_t>(value); in EnumerateLiteralVals()
184 … DefineMethodInLiteral(thread, jsPandaFile, methodId, constpool, kind, length, entryPoint); in EnumerateLiteralVals()
[all …]
Dmethod_literal.h41 explicit MethodLiteral(EntityId methodId);
307 static const char PUBLIC_API *GetMethodName(const JSPandaFile *jsPandaFile, EntityId methodId);
308 …static std::string PUBLIC_API ParseFunctionName(const JSPandaFile *jsPandaFile, EntityId methodId);
309 static uint32_t GetCodeSize(const JSPandaFile *jsPandaFile, EntityId methodId);
310 static CString GetRecordName(const JSPandaFile *jsPandaFile, EntityId methodId);
311 … const char PUBLIC_API *GetRecordNameWithSymbol(const JSPandaFile *jsPandaFile, EntityId methodId);
343 void SetMethodId(EntityId methodId) in SetMethodId()
345 literalInfo_ = MethodIdBits::Update(literalInfo_, methodId.GetOffset()); in SetMethodId()
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/
Dpanda_file_translator_test.cpp78 std::vector<File::EntityId> methodId {}; in HWTEST_F_L0() local
80 methodId.push_back(mda.GetMethodId()); in HWTEST_F_L0()
82 pf->UpdateMainMethodIndex(methodId[0].GetOffset()); in HWTEST_F_L0()
83 MethodLiteral *method1 = new MethodLiteral(methodId[0]); in HWTEST_F_L0()
84 MethodLiteral *method2 = new MethodLiteral(methodId[1]); in HWTEST_F_L0()
94 pf->UpdateMainMethodIndex(methodId[1].GetOffset()); in HWTEST_F_L0()
121 std::vector<File::EntityId> methodId {}; in HWTEST_F_L0() local
123 methodId.push_back(mda.GetMethodId()); in HWTEST_F_L0()
125 pf->UpdateMainMethodIndex(methodId[0].GetOffset()); in HWTEST_F_L0()
127 EXPECT_TRUE(pf->FindMethodLiteral(methodId[0].GetOffset()) == nullptr); in HWTEST_F_L0()
[all …]
Djs_pandafile_test.cpp134 std::vector<File::EntityId> methodId {}; in HWTEST_F_L0() local
137 methodId.push_back(mda.GetMethodId()); in HWTEST_F_L0()
142 MethodLiteral *method1 = new MethodLiteral(methodId[0]); in HWTEST_F_L0()
143 MethodLiteral *method2 = new MethodLiteral(methodId[1]); in HWTEST_F_L0()
144 MethodLiteral *method3 = new MethodLiteral(methodId[2]); in HWTEST_F_L0()
148 EXPECT_STREQ(MethodLiteral::ParseFunctionName(pf.get(), methodId[0]).c_str(), "foo1"); in HWTEST_F_L0()
149 EXPECT_STREQ(MethodLiteral::ParseFunctionName(pf.get(), methodId[1]).c_str(), "foo2"); in HWTEST_F_L0()
150 EXPECT_STREQ(MethodLiteral::ParseFunctionName(pf.get(), methodId[2]).c_str(), "foo3"); in HWTEST_F_L0()
168 std::vector<File::EntityId> methodId {}; in HWTEST_F_L0() local
171 methodId.push_back(mda.GetMethodId()); in HWTEST_F_L0()
[all …]
Djs_pandafile_executor_test.cpp78 std::vector<File::EntityId> methodId {}; in HWTEST_F_L0() local
80 methodId.push_back(mda.GetMethodId()); in HWTEST_F_L0()
82 pf->UpdateMainMethodIndex(methodId[0].GetOffset()); in HWTEST_F_L0()
83 MethodLiteral *method = new MethodLiteral(methodId[0]); in HWTEST_F_L0()
114 std::vector<File::EntityId> methodId {}; in HWTEST_F_L0() local
116 methodId.push_back(mda.GetMethodId()); in HWTEST_F_L0()
118 pf->UpdateMainMethodIndex(methodId[0].GetOffset()); in HWTEST_F_L0()
119 MethodLiteral *method = new MethodLiteral(methodId[0]); in HWTEST_F_L0()
152 std::vector<File::EntityId> methodId {}; in HWTEST_F_L0() local
154 methodId.push_back(mda.GetMethodId()); in HWTEST_F_L0()
[all …]
/arkcompiler/toolchain/tooling/test/
Djs_pt_hooks_test.cpp65 EntityId methodId(0); in HWTEST_F_L0() local
67 JSPtLocation ptLocation1(nullptr, methodId, bytecodeOffset); in HWTEST_F_L0()
84 EntityId methodId(0); in HWTEST_F_L0() local
86 JSPtLocation ptLocation2(nullptr, methodId, bytecodeOffset); in HWTEST_F_L0()
95 EntityId methodId(0); in HWTEST_F_L0() local
97 JSPtLocation ptLocation4(nullptr, methodId, bytecodeOffset); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/dfx/vmstat/
Dfunction_call_timer.cpp60 void FunctionCallTimer::InitialStatAndTimer(Method *method, size_t methodId, bool isAot) in InitialStatAndTimer() argument
63 auto iter = aotCallStat_.find(methodId); in InitialStatAndTimer()
67 aotCallStat_[methodId] = stat; in InitialStatAndTimer()
70 auto iter = intCallStat_.find(methodId); in InitialStatAndTimer()
74 intCallStat_[methodId] = stat; in InitialStatAndTimer()
79 callTimer_[methodId] = timer; in InitialStatAndTimer()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dbytecode_info_collector.cpp88 auto methodId = mda.GetMethodId(); in ProcessClasses() local
89 methodIndexes.emplace_back(methodId); in ProcessClasses()
90 CollectFunctionTypeId(methodId); in ProcessClasses()
93 … vm_->GetJSThread()->GetCurrentEcmaContext()->FindOrCreateConstPool(jsPandaFile_, methodId); in ProcessClasses()
95 auto methodOffset = methodId.GetOffset(); in ProcessClasses()
103 InitializeMemory(methodLiteral, methodId); in ProcessClasses()
107 panda_file::IndexAccessor indexAccessor(*pf, methodId); in ProcessClasses()
131 pfDecoder_.MatchAndMarkMethod(recordName, name.c_str(), methodId); in ProcessClasses()
182 auto methodId = method->GetMethodId().GetOffset(); in CollectInnerFuncType() local
183 auto methodIter = methodList.find(methodId); in CollectInnerFuncType()
[all …]
/arkcompiler/toolchain/tooling/test/utils/
Dtest_extractor.cpp42 SourceLocation TestExtractor::GetSourceLocation(const JSPandaFile *file, EntityId methodId, uint32_… in GetSourceLocation() argument
53 MatchLineWithOffset(callbackLineFunc, methodId, bytecodeOffset); in GetSourceLocation()
54 MatchColumnWithOffset(callbackColumnFunc, methodId, bytecodeOffset); in GetSourceLocation()
/arkcompiler/ets_runtime/ecmascript/dfx/stackinfo/
Djs_stackgetter.cpp67 … EntityId methodId = reinterpret_cast<MethodLiteral *>(methodKey.methodIdentifier)->GetMethodId(); in ParseMethodInfo() local
69 const char *functionName = MethodLiteral::GetMethodName(jsPandaFile, methodId); in ParseMethodInfo()
85 const char *recordName = MethodLiteral::GetRecordNameWithSymbol(jsPandaFile, methodId); in ParseMethodInfo()
98 const std::string &sourceFile = debugExtractor->GetSourceFile(methodId); in ParseMethodInfo()
105 codeEntry.lineNumber = debugExtractor->GetFristLine(methodId); in ParseMethodInfo()
106 codeEntry.columnNumber = debugExtractor->GetFristColumn(methodId); in ParseMethodInfo()
238 panda_file::File::EntityId methodId = methodLiteral->GetMethodId(); in GetNativeMethodCallPos() local
239 const std::string &sourceFile = debugExtractor->GetSourceFile(methodId); in GetNativeMethodCallPos()
260 if (!debugExtractor->MatchLineWithOffset(callbackLineFunc, methodId, offset)) { in GetNativeMethodCallPos()
263 if (!debugExtractor->MatchColumnWithOffset(callbackColumnFunc, methodId, offset)) { in GetNativeMethodCallPos()
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/
Dpgo_profiler_info.cpp618 PGOMethodId methodId(jsMethod->GetMethodId()); in AddMethod() local
619 auto result = methodInfos_.find(methodId); in AddMethod()
630 auto info = new (infoAddr) PGOMethodInfo(methodId, incCount, mode, methodName.c_str()); in AddMethod()
631 methodInfos_.emplace(methodId, info); in AddMethod()
634 methodsChecksum_.emplace(methodId, checksum); in AddMethod()
639 PGOMethodTypeSet *PGOMethodInfoMap::GetOrInsertMethodTypeSet(Chunk *chunk, PGOMethodId methodId) in GetOrInsertMethodTypeSet() argument
641 auto typeInfoSetIter = methodTypeInfos_.find(methodId); in GetOrInsertMethodTypeSet()
646 methodTypeInfos_.emplace(methodId, typeInfoSet); in GetOrInsertMethodTypeSet()
651 bool PGOMethodInfoMap::AddType(Chunk *chunk, PGOMethodId methodId, int32_t offset, PGOSampleType ty… in AddType() argument
653 auto typeInfoSet = GetOrInsertMethodTypeSet(chunk, methodId); in AddType()
[all …]
Dpgo_profiler_info.h839 bool AddType(Chunk *chunk, PGOMethodId methodId, int32_t offset, PGOSampleType type);
840 bool AddCallTargetType(Chunk *chunk, PGOMethodId methodId, int32_t offset, PGOSampleType type);
841 … bool AddObjectInfo(Chunk *chunk, PGOMethodId methodId, int32_t offset, const PGOObjectInfo &info);
842 …bool AddDefine(Chunk *chunk, PGOMethodId methodId, int32_t offset, PGOSampleType type, PGOSampleTy…
861 PGOMethodTypeSet *GetOrInsertMethodTypeSet(Chunk *chunk, PGOMethodId methodId);
883 bool Match(EntityId methodId) in Match() argument
885 return candidateSet_.find(methodId) != candidateSet_.end(); in Match()
919 void MatchAndMarkMethod(const char *methodName, EntityId methodId) in MatchAndMarkMethod() argument
926 candidateSet_.emplace(methodId); in MatchAndMarkMethod()
950 PGODecodeMethodInfo& GetOrCreateMethodInfo(uint32_t checksum, PGOMethodId methodId) in GetOrCreateMethodInfo() argument
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/type_inference/
Dglobal_type_infer.cpp133 uint32_t methodId = 0; in ProcessTypeInference() local
135 std::tie(type, methodId) = infer->TraverseInfer(); in ProcessTypeInference()
136 if (IsLegalMethod(methodId)) { in ProcessTypeInference()
137 MethodTypeInfer *nextInfer = GetTypeInfer(methodId); in ProcessTypeInference()
140 tsManager->StoreNamespaceType(methodId, type); in ProcessTypeInference()
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/tests/
Dpgo_profiler_test.cpp541 EntityId methodId = methodLiterals[i]->GetMethodId(); in HWTEST_F_L0() local
542 …tchAndMarkMethod(expectRecordName, methodLiterals[i]->GetMethodName(pf.get(), methodId), methodId); in HWTEST_F_L0()
682 auto methodId = methodLiteral->GetMethodId(); in HWTEST_F_L0() local
683 auto methodName = methodLiteral->GetMethodName(jsPandaFile.get(), methodId); in HWTEST_F_L0()
684 decoder.MatchAndMarkMethod(targetRecordName, methodName, methodId); in HWTEST_F_L0()
685 decoder1.MatchAndMarkMethod(targetRecordName, methodName, methodId); in HWTEST_F_L0()
686 decoder2.MatchAndMarkMethod(targetRecordName, methodName, methodId); in HWTEST_F_L0()
687 ASSERT_TRUE(decoder.Match(targetRecordName, methodId)); in HWTEST_F_L0()
689 ASSERT_TRUE(!decoder1.Match(targetRecordName, methodId)); in HWTEST_F_L0()
690 ASSERT_TRUE(!decoder2.Match(targetRecordName, methodId)); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/debugger/
Djs_pt_method.h27 PtMethod(const JSPandaFile *jsPandaFile, EntityId methodId, bool isNative) in PtMethod() argument
28 : jsPandaFile_(jsPandaFile), methodId_(methodId), isNative_(isNative) in PtMethod()
Djs_pt_location.h30 JSPtLocation(const JSPandaFile *jsPandaFile, EntityId methodId, uint32_t bytecodeOffset,
31 const std::string &sourceFile = "") : jsPandaFile_(jsPandaFile), methodId_(methodId), in jsPandaFile_()
/arkcompiler/ets_runtime/ecmascript/
Dmethod.cpp95 EntityId methodId = methodLiteral->GetMethodId(); in Create() local
96 …JSTaggedValue patchVal = vm->GetQuickFixManager()->CheckAndGetPatch(thread, jsPandaFile, methodId); in Create()
102 …Pool> newConstpool = thread->GetCurrentEcmaContext()->FindOrCreateConstPool(jsPandaFile, methodId); in Create()
/arkcompiler/toolchain/test/fuzztest/backend/backendsinglestep_fuzzer/
Dbackendsinglestep_fuzzer.cpp50 EntityId methodId(input); in BackendSingleStepFuzzTest() local
54 JSPtLocation ptLocation1(nullptr, methodId, bytecodeOffset); in BackendSingleStepFuzzTest()
/arkcompiler/toolchain/test/fuzztest/backend/backendbreakpoint_fuzzer/
Dbackendbreakpoint_fuzzer.cpp50 EntityId methodId(input); in BackendBreakpointFuzzTest() local
54 JSPtLocation ptLocation1(nullptr, methodId, bytecodeOffset); in BackendBreakpointFuzzTest()
/arkcompiler/toolchain/test/fuzztest/backend/backendexception_fuzzer/
Dbackendexception_fuzzer.cpp50 EntityId methodId(input); in BackendExceptionFuzzTest() local
54 JSPtLocation ptLocation1(nullptr, methodId, bytecodeOffset); in BackendExceptionFuzzTest()
/arkcompiler/toolchain/test/fuzztest/backend/backendloadmodule_fuzzer/
Dbackendloadmodule_fuzzer.cpp50 EntityId methodId(input); in BackendLoadModuleFuzzTest() local
54 JSPtLocation ptLocation1(nullptr, methodId, bytecodeOffset); in BackendLoadModuleFuzzTest()
/arkcompiler/toolchain/test/fuzztest/backend/backendnativecalling_fuzzer/
Dbackendnativecalling_fuzzer.cpp50 EntityId methodId(input); in BackendNativeCallingFuzzTest() local
54 JSPtLocation ptLocation1(nullptr, methodId, bytecodeOffset); in BackendNativeCallingFuzzTest()

123