/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ |
D | pgo_profiler_decoder.h | 88 … 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()
|
D | pgo_profiler_info.h | 340 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 …]
|
D | pgo_profiler_info.cpp | 626 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/ |
D | test-ts-decorators-16.ts | 29 …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/ |
D | compiler_log.cpp | 31 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 …]
|
D | code_generator.h | 37 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()
|
D | compiler_log.h | 103 …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);
|
D | compilation_driver.h | 82 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;
|
D | compilation_driver.cpp | 194 … 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()
|
D | llvm_codegen.cpp | 228 … 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()
|
D | pass_manager.cpp | 72 const std::string &methodName, in Compile() 85 log_->SetMethodLog(fileName, methodName, logList_); in Compile() 109 TimeScope timeScope("BytecodeToCircuit", methodName, methodOffset, log_); in Compile()
|
D | scheduler.h | 31 [[maybe_unused]] const std::string& methodName = "", bool enableLog = false);
|
D | verifier.h | 65 …static bool Run(const Circuit *circuit, const std::string& methodName = "", bool enableLog = false…
|
D | ts_inline_lowering.cpp | 130 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/ |
D | containers_test_helper.h | 56 #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/ |
D | method_literal.cpp | 90 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()
|
D | panda_file_translator.h | 40 static void TranslateClasses(JSPandaFile *jsPandaFile, const CString &methodName); 46 … const MethodLiteral *methodLiteral, const CString &methodName = JSPandaFile::ENTRY_FUNCTION_NAME);
|
D | js_pandafile_manager.cpp | 447 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/ |
D | pgo_profiler_test.cpp | 683 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/ |
D | patch_loader.cpp | 337 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()
|
D | quick_fix_manager.cpp | 243 CString methodName = stackInfo.substr(firstIndex + methodNameOffsetToFirstIndex, in ParseStackInfo() local 245 methodNames.emplace(methodName); in ParseStackInfo()
|
/arkcompiler/runtime_core/compiler/tests/ |
D | irBuilder_tests.cpp | 52 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/ |
D | panda_file_translator_test.cpp | 129 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/ |
D | js_stackgetter.cpp | 135 JSHandle<EcmaString> methodName(funcNameValue); in GetNativeStack() local 136 methodNameStr = EcmaStringAccessor(methodName).ToStdString(); in GetNativeStack()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_function.cpp | 278 … JSHandle<EcmaString> methodName(JSObject::GetProperty(thread, thisValue, nameKey).GetValue()); in FunctionPrototypeToString() local 279 std::string nameStr = EcmaStringAccessor(methodName).ToStdString(); in FunctionPrototypeToString()
|