Home
last modified time | relevance | path

Searched refs:methodName (Results 1 – 25 of 32) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/pgo_profiler/
Dpgo_profiler_decoder.h88 … const auto *methodName = MethodLiteral::GetMethodName(jsPandaFile, methodLiteral->GetMethodId()); in GetTypeInfo() local
91 PGOMethodInfo::CalcChecksum(methodName, methodLiteral->GetBytecodeArray(), in GetTypeInfo()
94 return recordSimpleInfos_->GetTypeInfo(recordName, methodName, checksum, callback); in GetTypeInfo()
96 recordSimpleInfos_->GetTypeInfo(recordName, methodName, callback); in GetTypeInfo()
99 void MatchAndMarkMethod(const CString &recordName, const char *methodName, EntityId methodId) in MatchAndMarkMethod() argument
104 recordSimpleInfos_->MatchAndMarkMethod(recordName, methodName, methodId); in MatchAndMarkMethod()
Dpgo_profiler_info.h340 PGOMethodInfo(PGOMethodId id, uint32_t count, SampleMode mode, const char *methodName) in PGOMethodInfo() argument
343 size_t len = strlen(methodName); in PGOMethodInfo()
345 if (len > 0 && memcpy_s(&methodName_, len, methodName, len) != EOK) { in PGOMethodInfo()
346 LOG_ECMA(ERROR) << "SetMethodName memcpy_s failed" << methodName << ", len = " << len; in PGOMethodInfo()
900 void GetTypeInfo(const char *methodName, Callback callback) in GetTypeInfo() argument
903 auto iter = methodInfoMap_.find(methodName); in GetTypeInfo()
910 void GetTypeInfo(const char *methodName, uint32_t checksum, Callback callback) in GetTypeInfo() argument
912 auto iter = methodInfoMap_.find(methodName); in GetTypeInfo()
916 LOG_ECMA(DEBUG) << "Method checksum mismatched, name: " << methodName; in GetTypeInfo()
919 void MatchAndMarkMethod(const char *methodName, EntityId methodId) in MatchAndMarkMethod() argument
[all …]
Dpgo_profiler_info.cpp626 CString methodName = jsMethod->GetMethodName(); in AddMethod() local
627 size_t strlen = methodName.size(); in AddMethod()
630 auto info = new (infoAddr) PGOMethodInfo(methodId, incCount, mode, methodName.c_str()); in AddMethod()
834 std::string methodName = infoStrings[PGOMethodInfo::METHOD_NAME_INDEX]; in ParseFromText() local
836 size_t len = methodName.size(); in ParseFromText()
838 … auto info = new (infoAddr) PGOMethodInfo(PGOMethodId(methodId), count, mode, methodName.c_str()); in ParseFromText()
/arkcompiler/ets_frontend/es2panda/test/compiler/ts/cases/conformance/decorators/
Dtest-ts-decorators-16.ts29 …return function (target: any, methodName: any, desc: any) { print("inner-methodDec-", methodName);…
34 return function (target: any, methodName: any, idx: any) { print("inner-paramDec-idx=", idx); }
/arkcompiler/ets_runtime/ecmascript/compiler/
Dcompiler_log.cpp31 const std::string &methodName, AotMethodLogList *logList) in SetMethodLog() argument
35 enableMethodLog = logList->IncludesMethod(fileName, methodName); in SetMethodLog()
49 bool MethodLogList::IncludesMethod(const std::string &methodName) const in IncludesMethod()
51 bool empty = methodName.empty(); in IncludesMethod()
52 bool found = methods_.find(methodName) != std::string::npos; in IncludesMethod()
56 bool AotMethodLogList::IncludesMethod(const std::string &fileName, const std::string &methodName) c… in IncludesMethod()
62 auto it = find(methodVector.begin(), methodVector.end(), methodName); in IncludesMethod()
88 TimeScope::TimeScope(std::string name, std::string methodName, uint32_t methodOffset, CompilerLog* … in TimeScope() argument
89 …: ClockScope(), name_(std::move(name)), methodName_(std::move(methodName)), methodOffset_(methodOf… in TimeScope()
125 const std::string TimeScope::GetShortName(const std::string& methodName) in GetShortName() argument
[all …]
Dcode_generator.h37 const std::string &methodName) = 0;
42 CodeGenerator(std::unique_ptr<CodeGeneratorImpl> &impl, const std::string& methodName) in CodeGenerator() argument
43 : impl_(std::move(impl)), methodName_(methodName) in CodeGenerator()
Dcompiler_log.h103 …void SetMethodLog(const std::string &fileName, const std::string &methodName, AotMethodLogList *lo…
154 bool IncludesMethod(const std::string &methodName) const;
170 bool IncludesMethod(const std::string &fileName, const std::string &methodName) const;
180 TimeScope(std::string name, std::string methodName, uint32_t methodOffset, CompilerLog* log);
198 const std::string GetShortName(const std::string& methodName);
Dcompilation_driver.h82 const std::string &methodName, in CompileMethod() argument
89 cb(bytecodeInfo_.GetRecordName(index), methodName, methodLiteral, methodOffset, in CompileMethod()
117 …const std::string methodName(MethodLiteral::GetMethodName(jsPandaFile_, methodLiteral->GetMethodId… in Run()
118 … if (FilterMethod(bytecodeInfo_.GetRecordName(index), methodLiteral, methodPcInfo, methodName)) { in Run()
123 … CompileMethod(cb, index, methodName, methodLiteral, compilingMethod, methodPcInfo, methodInfo); in Run()
127 … CompileMethod(cb, index, methodName, methodLiteral, compilingMethod, methodPcInfo, methodInfo); in Run()
336 const MethodPcInfo &methodPCInfo, const std::string &methodName) const;
343 const std::string &methodName) const;
Dcompilation_driver.cpp194 … const MethodPcInfo &methodPCInfo, const std::string &methodName) const in FilterMethod()
202 return !FilterOption(optionSelectMethods_, ConvertToStdString(recordName), methodName); in FilterMethod()
204 return FilterOption(optionSkipMethods_, ConvertToStdString(recordName), methodName); in FilterMethod()
242 … const std::string &recordName, const std::string &methodName) const in FilterOption()
254 return find(vec.begin(), vec.end(), methodName) != vec.end(); in FilterOption()
Dllvm_codegen.cpp228 … const JSPandaFile *jsPandaFile, const std::string &methodName) in GenerateCode() argument
239 enableLog_, methodLiteral->IsFastCall(), methodName); in GenerateCode()
544 std::string methodName = addr2name->at(addr); in GetCalleeReg2Offset() local
545 codeStream << "------------------- asm code [" << methodName << "] -------------------" in GetCalleeReg2Offset()
609 std::string methodName; in GetCalleeReg2Offset() local
614 methodName = addr2name.at(addr); in GetCalleeReg2Offset()
617 logFlag = logFlag && logList.IncludesMethod(methodName); in GetCalleeReg2Offset()
622 … codeStream << "------------------- asm code [" << methodName << "] -------------------" in GetCalleeReg2Offset()
629 dwarfCtx.get(), llvmModule_, methodName); in GetCalleeReg2Offset()
Dpass_manager.cpp72 const std::string &methodName, in Compile()
85 log_->SetMethodLog(fileName, methodName, logList_); in Compile()
109 TimeScope timeScope("BytecodeToCircuit", methodName, methodOffset, log_); in Compile()
Dscheduler.h31 [[maybe_unused]] const std::string& methodName = "", bool enableLog = false);
Dverifier.h65 …static bool Run(const Circuit *circuit, const std::string& methodName = "", bool enableLog = false…
Dts_inline_lowering.cpp130 const std::string methodName( in TryInline() local
134 std::string fullName = methodName + "@" + recordName + "@" + fileName; in TryInline()
187 const std::string methodName(MethodLiteral::GetMethodName(jsPandaFile, method->GetMethodId())); in InlineCall() local
189 std::string fullName = methodName + "@" + std::string(recordName) + "@" + fileName; in InlineCall()
201 … TimeScope timeScope("BytecodeToCircuit", methodName, method->GetMethodId().GetOffset(), log); in InlineCall()
/arkcompiler/ets_runtime/ecmascript/containers/tests/
Dcontainers_test_helper.h56 #define CONTAINERS_API_EXCEPTION_TEST(className, methodName, callInfoName) \ argument
59 JSTaggedValue testResult = className::methodName(callInfoName); \
66 #define CONTAINERS_API_TYPE_MISMATCH_EXCEPTION_TEST(className, methodName) \ argument
69 CONTAINERS_API_EXCEPTION_TEST(className, methodName, callInfo); \
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Dmethod_literal.cpp90 std::string methodName(GetMethodName(jsPandaFile, methodId)); in ParseFunctionName() local
91 if (LIKELY(methodName[0] != '#')) { in ParseFunctionName()
92 return methodName; in ParseFunctionName()
95 size_t index = methodName.find_last_of('#'); in ParseFunctionName()
96 return methodName.substr(index + 1); in ParseFunctionName()
Dpanda_file_translator.h40 static void TranslateClasses(JSPandaFile *jsPandaFile, const CString &methodName);
46 … const MethodLiteral *methodLiteral, const CString &methodName = JSPandaFile::ENTRY_FUNCTION_NAME);
Djs_pandafile_manager.cpp447 CString methodName = entryPoint.data(); in GenerateJSPandaFile() local
452 methodName = entryPoint.substr(pos + 1); in GenerateJSPandaFile()
455 methodName = JSPandaFile::ENTRY_FUNCTION_NAME; in GenerateJSPandaFile()
458 PandaFileTranslator::TranslateClasses(newJsPandaFile.get(), methodName); in GenerateJSPandaFile()
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/tests/
Dpgo_profiler_test.cpp683 auto methodName = methodLiteral->GetMethodName(jsPandaFile.get(), methodId); in HWTEST_F_L0() local
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()
688 if (std::string(methodName) == "Test") { in HWTEST_F_L0()
715 auto methodName = methodLiteral->GetMethodName(jsPandaFile.get(), methodId); in HWTEST_F_L0() local
716 decoder.MatchAndMarkMethod(targetRecordName, methodName, methodId); in HWTEST_F_L0()
718 auto callback = [methodName, methodId](uint32_t offset, PGOType *type) { in HWTEST_F_L0()
723 if (std::string(methodName) == "Foot" || std::string(methodName) == "Arm") { in HWTEST_F_L0()
726 } else if (std::string(methodName) == "foo" || std::string(methodName) == "Body") { in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/patch/
Dpatch_loader.cpp337 CString methodName = MethodLiteral::GetMethodName(patchFile, methodId); in GeneratePatchInfo() local
338 if (methodName == JSPandaFile::ENTRY_FUNCTION_NAME || in GeneratePatchInfo()
339 methodName == JSPandaFile::PATCH_FUNCTION_NAME_0 || in GeneratePatchInfo()
340 methodName == JSPandaFile::PATCH_FUNCTION_NAME_1) { in GeneratePatchInfo()
347 iter->second.emplace(methodName, methodLiteral); in GeneratePatchInfo()
349 CMap<CString, MethodLiteral*> methodNameInfo = {{methodName, methodLiteral}}; in GeneratePatchInfo()
Dquick_fix_manager.cpp243 CString methodName = stackInfo.substr(firstIndex + methodNameOffsetToFirstIndex, in ParseStackInfo() local
245 methodNames.emplace(methodName); in ParseStackInfo()
/arkcompiler/runtime_core/compiler/tests/
DirBuilder_tests.cpp52 void TestBuildGraphFromFunc(pandasm::Program &prog, const char *methodName, const Callback &cb) in TestBuildGraphFromFunc() argument
60 … cda.EnumerateMethods([&prog, maps, methodName, &cb](panda_file::MethodDataAccessor &mda) { in TestBuildGraphFromFunc()
63 if (func_name != methodName) { in TestBuildGraphFromFunc()
105 … auto methodName = std::string(utf::Mutf8AsCString(pfile->GetStringData(mda.GetNameId()).data)); in TestBuildGraphFromFile() local
107 cb(graph, methodName); in TestBuildGraphFromFile()
447 TestBuildGraphFromFile(pFile, [&testMethodName](Graph* graph, std::string &methodName) { in __anon32a3985d0502() argument
448 if (testMethodName != methodName) { in __anon32a3985d0502()
525 TestBuildGraphFromFile(pFile, [testMethodName](Graph* graph, std::string &methodName) { in __anon32a3985d0602() argument
526 if (testMethodName != methodName) { in __anon32a3985d0602()
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/
Dpanda_file_translator_test.cpp129 const char *methodName = MethodLiteral::GetMethodName(pf.get(), methodId[0]); in HWTEST_F_L0() local
130 PandaFileTranslator::TranslateClasses(pf.get(), CString(methodName)); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/dfx/stackinfo/
Djs_stackgetter.cpp135 JSHandle<EcmaString> methodName(funcNameValue); in GetNativeStack() local
136 methodNameStr = EcmaStringAccessor(methodName).ToStdString(); in GetNativeStack()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_function.cpp278 … JSHandle<EcmaString> methodName(JSObject::GetProperty(thread, thisValue, nameKey).GetValue()); in FunctionPrototypeToString() local
279 std::string nameStr = EcmaStringAccessor(methodName).ToStdString(); in FunctionPrototypeToString()

12