Home
last modified time | relevance | path

Searched refs:methodLiteral (Results 1 - 25 of 57) sorted by relevance

123

/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dcompilation_driver.h53 MethodLiteral *methodLiteral, in CompileMethod()
59 cb(recordName, methodName, methodLiteral, methodOffset, in CompileMethod()
73 auto methodLiteral = jsPandaFile_->FindMethodLiteral(methodId); in Run() local
74 if (methodLiteral == nullptr) { in Run()
77 const std::string methodName(MethodLiteral::GetMethodName(jsPandaFile_, methodLiteral->GetMethodId())); in Run()
79 methodLiteral->GetMethodId().GetOffset())) { in Run()
84 CompileMethod(cb, methodInfo.GetRecordName(), methodName, methodLiteral, in Run()
152 bool CompileMethod(const JSPandaFile *jsPandaFile, MethodLiteral *methodLiteral, in CompileMethod() argument
157 if (methodLiteral == nullptr) { in CompileMethod()
160 const std::string methodName(MethodLiteral::GetMethodName(jsPandaFile, methodLiteral in CompileMethod()
50 CompileMethod(const Callback &cb, const CString &recordName, const std::string &methodName, MethodLiteral *methodLiteral, uint32_t methodOffset, const MethodPcInfo &methodPcInfo, MethodInfo &methodInfo) CompileMethod() argument
[all...]
H A Dir_module.cpp22 std::string IRModule::GetFuncName(const MethodLiteral *methodLiteral, in GetFuncName() argument
26 std::string name = MethodLiteral::GetMethodName(jsPandaFile, methodLiteral->GetMethodId()); in GetFuncName()
27 auto methodId = methodLiteral->GetMethodId(); in GetFuncName()
31 auto offset = methodLiteral->GetMethodId().GetOffset(); in GetFuncName()
H A Dpass_manager.cpp54 MethodLiteral *methodLiteral = compilationEnv_->GetMethodLiteral(); in Compile() local
74 return cmpDriver_->CompileMethod(jsPandaFile, methodLiteral, profileTypeInfo, pcStart, header, abcId, in Compile()
78 MethodLiteral *methodLiteral, in Compile()
97 std::string fullName = module->GetFuncName(methodLiteral, jsPandaFile); in Compile()
110 methodLiteral->GetMethodId(), abcId, pcStart, in Compile()
111 methodLiteral->GetCodeSize(jsPandaFile, methodLiteral->GetMethodId()), in Compile()
128 builder_ = new BytecodeCircuitBuilder(jsPandaFile, methodLiteral, methodPCInfo, in Compile()
144 methodLiteral, methodOffset, &methodFlagMap, CVector<AbcFileInfo> {}, in Compile()
284 MethodLiteral *methodLiteral,
[all...]
H A Daot_compiler_preprocessor.cpp149 const MethodLiteral *methodLiteral) const in MethodHasTryCatch()
151 if (jsPandaFile == nullptr || methodLiteral == nullptr) { in MethodHasTryCatch()
155 panda_file::MethodDataAccessor mda(*pf, methodLiteral->GetMethodId()); in MethodHasTryCatch()
211 auto methodLiteral = jsPandaFile->FindMethodLiteral(methodId); in AnalyzeGraphs() local
213 if (MethodHasTryCatch(jsPandaFile, methodLiteral)) { in AnalyzeGraphs()
214 AnalyzeGraph(bytecodeInfo, cOptions, collector, methodLiteral, methodPcInfo); in AnalyzeGraphs()
220 BytecodeInfoCollector &collector, MethodLiteral *methodLiteral, in AnalyzeGraph()
223 if (methodLiteral == nullptr) { in AnalyzeGraph()
237 std::string fullName = module->GetFuncName(methodLiteral, jsPandaFile); in AnalyzeGraph()
245 BytecodeCircuitBuilder builder(jsPandaFile, methodLiteral, methodPCInf in AnalyzeGraph()
219 AnalyzeGraph(BCInfo &bytecodeInfo, CompilationOptions &cOptions, BytecodeInfoCollector &collector, MethodLiteral *methodLiteral, MethodPcInfo &methodPCInfo) AnalyzeGraph() argument
419 IsSkipMethod(const JSPandaFile *jsPandaFile, const BCInfo &bytecodeInfo, const CString &recordName, const MethodLiteral *methodLiteral, const MethodPcInfo &methodPCInfo, const std::string &methodName, CompilationOptions &cOptions) const IsSkipMethod() argument
459 auto methodLiteral = jsPandaFile->FindMethodLiteral(index); GenerateMethodMap() local
[all...]
H A Dbytecode_info_collector.cpp92 MethodLiteral *methodLiteral = methods + (methodIdx++); in ProcessClasses()
93 InitializeMemory(methodLiteral, methodId); in ProcessClasses()
94 methodLiteral->Initialize(jsPandaFile_); in ProcessClasses()
100 methodLiteral->SetIsShared(isShared); in ProcessClasses()
102 methodLiteral->SetFunctionKind(kind); in ProcessClasses()
111 CollectMethodPcsFromBC(codeSize, insns, methodLiteral, in ProcessClasses()
118 jsPandaFile_->SetMethodLiteralToMap(methodLiteral); in ProcessClasses()
131 void BytecodeInfoCollector::ProcessMethod(MethodLiteral *methodLiteral) in ProcessMethod() argument
133 if (UNLIKELY(methodLiteral == nullptr)) { in ProcessMethod()
136 panda_file::File::EntityId methodIdx = methodLiteral in ProcessMethod()
[all...]
H A Dargument_accessor.h56 Circuit *circuit, const MethodLiteral *methodLiteral = nullptr) in ArgumentAccessor()
58 method_(methodLiteral), in ArgumentAccessor()
H A Dbytecode_info_collector.h333 bool FilterMethod(const MethodLiteral *methodLiteral, const MethodPcInfo &methodPCInfo) const in FilterMethod() argument
335 auto recordName = MethodLiteral::GetRecordName(jsPandaFile_, methodLiteral->GetMethodId()); in FilterMethod()
337 bool methodFilteredByPGO = !pfDecoder_.Match(jsPandaFile_, recordName, methodLiteral->GetMethodId()); in FilterMethod()
364 void ProcessMethod(MethodLiteral *methodLiteral);
H A Dcode_generator.h183 const MethodLiteral *methodLiteral, const JSPandaFile *jsPandaFile,
208 const MethodLiteral *methodLiteral, const JSPandaFile *jsPandaFile, const FrameType frameType, in Run()
211 impl_->GenerateCode(circuit, graph, cfg, methodLiteral, jsPandaFile, methodName_, frameType, in Run()
207 Run(Circuit *circuit, const ControlFlowGraph &graph, const CompilationConfig *cfg, const MethodLiteral *methodLiteral, const JSPandaFile *jsPandaFile, const FrameType frameType, bool enableOptInlining, bool enableOptBranchProfiling) Run() argument
H A Dntype_hcr_lowering.h27 const MethodLiteral *methodLiteral, bool enablePgoSpace, Chunk* chunk) in NTypeHCRLowering()
36 methodLiteral_(methodLiteral), in NTypeHCRLowering()
26 NTypeHCRLowering(Circuit *circuit, RPOVisitor *visitor, PassContext *ctx, const CString &recordName, const MethodLiteral *methodLiteral, bool enablePgoSpace, Chunk* chunk) NTypeHCRLowering() argument
H A Dir_module.h76 static std::string GetFuncName(const MethodLiteral *methodLiteral, const JSPandaFile *jsPandaFile);
H A Dpass_manager.h80 bool FilterMethod(const MethodLiteral *methodLiteral, const MethodPcInfo &methodPCInfo) const in FilterMethod() argument
82 return bcInfoCollector_->FilterMethod(methodLiteral, methodPCInfo); in FilterMethod()
H A Daot_compiler_preprocessor.h124 MethodLiteral *methodLiteral, MethodPcInfo &methodPCInfo);
142 const CString &recordName, const MethodLiteral *methodLiteral,
148 bool MethodHasTryCatch(const JSPandaFile *jsPandaFile, const MethodLiteral *methodLiteral) const;
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/tests/
H A Dpgo_profiler_test.cpp109 auto *methodLiteral = new MethodLiteral(mda.GetMethodId()); in CreateJSPandaFile()
110 methodLiteral->Initialize(pf_.get()); in CreateJSPandaFile()
111 pf_->SetMethodLiteralToMap(methodLiteral); in CreateJSPandaFile()
112 methodLiterals.push_back(methodLiteral); in CreateJSPandaFile()
134 auto *methodLiteral = new MethodLiteral(mda.GetMethodId()); in CreateJSPandaFile()
135 methodLiteral->Initialize(pf_.get()); in CreateJSPandaFile()
136 pf_->SetMethodLiteralToMap(methodLiteral); in CreateJSPandaFile()
137 methodLiterals.push_back(methodLiteral); in CreateJSPandaFile()
214 for (auto &methodLiteral : methodLiterals) { in CheckApMethodsInApFiles()
215 auto methodName = MethodLiteral::GetRecordName(pf_.get(), methodLiteral in CheckApMethodsInApFiles()
467 MethodLiteral *methodLiteral = new MethodLiteral(EntityId(61)); HWTEST_F_L0() local
746 auto methodLiteral = iter.second; HWTEST_F_L0() local
778 auto methodLiteral = iter.second; HWTEST_F_L0() local
817 auto methodLiteral = iter.second; HWTEST_F_L0() local
872 auto methodLiteral = iter.second; HWTEST_F_L0() local
919 auto methodLiteral = iter.second; HWTEST_F_L0() local
986 auto methodLiteral = iter.second; HWTEST_F_L0() local
1034 auto methodLiteral = iter.second; HWTEST_F_L0() local
1071 auto methodLiteral = iter.second; HWTEST_F_L0() local
1109 auto methodLiteral = iter.second; HWTEST_F_L0() local
1277 auto methodLiteral = iter.second; HWTEST_F_L0() local
[all...]
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefisasync_fuzzer/
H A Djsvaluerefisasync_fuzzer.cpp43 MethodLiteral *methodLiteral = nullptr; in JSValueRefIsAsyncGeneratorFunctionTrueFuzzTest() local
44 JSHandle<Method> method = factory->NewSMethod(methodLiteral); in JSValueRefIsAsyncGeneratorFunctionTrueFuzzTest()
84 MethodLiteral *methodLiteral = nullptr; in JSValueRefIsAsyncGeneratorObjectTrueFuzzTest() local
85 JSHandle<Method> method = factory->NewSMethod(methodLiteral); in JSValueRefIsAsyncGeneratorObjectTrueFuzzTest()
/arkcompiler/ets_runtime/ecmascript/dfx/stackinfo/
H A Djs_stackgetter.cpp215 MethodLiteral *methodLiteral = method->GetMethodLiteral(); in GetRunningState() local
216 if (methodLiteral != nullptr && MethodLiteral::IsAotWithCallField(methodLiteral->GetCallField())) { in GetRunningState()
258 MethodLiteral *methodLiteral = nextMethod->GetMethodLiteral(); in GetNativeMethodCallPos() local
259 if (methodLiteral == nullptr) { in GetNativeMethodCallPos()
262 panda_file::File::EntityId methodId = methodLiteral->GetMethodId(); in GetNativeMethodCallPos()
307 MethodLiteral *methodLiteral = method->GetMethodLiteral(); in GetMethodIdentifier() local
308 return reinterpret_cast<void *>(methodLiteral); in GetMethodIdentifier()
326 MethodLiteral *methodLiteral = nextMethod->GetMethodLiteral(); in GetCallLineNumber() local
327 if (methodLiteral in GetCallLineNumber()
[all...]
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/
H A Dpgo_profiler_decoder.h100 void GetTypeInfo(const JSPandaFile *jsPandaFile, const CString &recordName, const MethodLiteral *methodLiteral, in GetTypeInfo() argument
103 if (!isLoaded_ || !isVerifySuccess_ || methodLiteral == nullptr) { in GetTypeInfo()
106 const auto *methodName = MethodLiteral::GetMethodName(jsPandaFile, methodLiteral->GetMethodId()); in GetTypeInfo()
109 PGOMethodInfo::CalcChecksum(methodName, methodLiteral->GetBytecodeArray(), in GetTypeInfo()
110 MethodLiteral::GetCodeSize(jsPandaFile, methodLiteral->GetMethodId())); in GetTypeInfo()
/arkcompiler/ets_runtime/ecmascript/
H A Dmethod.cpp115 JSHandle<Method> Method::Create(JSThread *thread, const JSPandaFile *jsPandaFile, MethodLiteral *methodLiteral) in Create() argument
118 EntityId methodId = methodLiteral->GetMethodId(); in Create()
125 method = vm->GetFactory()->NewSMethod(methodLiteral); in Create()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/
H A Dlitecg_codegen.cpp139 const panda::ecmascript::MethodLiteral *methodLiteral, in GenerateCode()
146 if (methodLiteral->IsFastCall()) { in GenerateCode()
151 LiteCGIRBuilder builder(&graph, circuit, module_, cfg, conv, enableLog_, enableOptInlining, methodLiteral, in GenerateCode()
138 GenerateCode(Circuit *circuit, const ControlFlowGraph &graph, const CompilationConfig *cfg, const panda::ecmascript::MethodLiteral *methodLiteral, const JSPandaFile *jsPandaFile, const std::string &methodName, const FrameType frameType, bool enableOptInlining, [[maybe_unused]]bool enableBranchProfiling) GenerateCode() argument
/arkcompiler/ets_runtime/ecmascript/jspandafile/
H A Dpanda_file_translator.cpp65 MethodLiteral *methodLiteral = methodLiterals + (methodIdx++); in TranslateClasses()
66 InitializeMemory(methodLiteral, methodId); in TranslateClasses()
67 methodLiteral->Initialize(jsPandaFile, thread); in TranslateClasses()
73 methodLiteral->SetIsShared(isShared); in TranslateClasses()
75 methodLiteral->SetFunctionKind(kind); in TranslateClasses()
85 TranslateBytecode(jsPandaFile, codeSize, insns, methodLiteral); in TranslateClasses()
87 TranslateBytecode(jsPandaFile, codeSize, insns, methodLiteral, recordName); in TranslateClasses()
91 jsPandaFile->SetMethodLiteralToMap(methodLiteral); in TranslateClasses()
126 MethodLiteral *methodLiteral = methodLiterals + (methodIdx++); in TranslateClass()
127 InitializeMemory(methodLiteral, methodI in TranslateClass()
265 MethodLiteral *methodLiteral = jsPandaFile->FindMethodLiteral(it.first); ParseConstPool() local
336 MethodLiteral *methodLiteral = jsPandaFile->FindMethodLiteral(it.first); ParseFuncAndLiteralConstPool() local
1448 UpdateICOffset(MethodLiteral *methodLiteral, uint8_t *pc) UpdateICOffset() argument
[all...]
H A Dliteral_data_extractor.cpp255 auto methodLiteral = jsPandaFile->FindMethodLiteral(offset); in DefineFunctionTemplate() local
256 CHECK_INPUT_NULLPTR(methodLiteral, in DefineFunctionTemplate()
257 "DefineFunctionTemplate:methodLiteral is nullptr, offset: " + std::to_string(offset)); in DefineFunctionTemplate()
258 FunctionKind literalKind = methodLiteral->GetFunctionKind(); in DefineFunctionTemplate()
260 methodLiteral->SetFunctionKind(kind); in DefineFunctionTemplate()
264 JSHandle<Method> method = factory->NewSMethod(jsPandaFile, methodLiteral, constpool, entryIndex, isLoadedAOT); in DefineFunctionTemplate()
332 auto methodLiteral = jsPandaFile->FindMethodLiteral(offset); in DefineMethodInLiteral() local
333 CHECK_INPUT_NULLPTR(methodLiteral, in DefineMethodInLiteral()
334 "DefineMethodInLiteral:methodLiteral is nullptr, offset: " + std::to_string(offset)); in DefineMethodInLiteral()
335 FunctionKind literalKind = methodLiteral in DefineMethodInLiteral()
[all...]
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
H A Dbuiltins_sharedobject_test.cpp130 MethodLiteral *methodLiteral = new MethodLiteral(EntityId(methodOffset)); in HWTEST_F_L0() local
131 methodLiteral->SetIsShared(true); in HWTEST_F_L0()
132 JSHandle<Method> method = factory->NewSMethod(methodLiteral); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/jit/
H A Djit_dfx.cpp101 MethodLiteral *methodLiteral = method->GetMethodLiteral(); in DumpBytecodeInst() local
104 ASSERT(methodLiteral != nullptr); in DumpBytecodeInst()
105 panda_file::File::EntityId methodIdx = methodLiteral->GetMethodId(); in DumpBytecodeInst()
/arkcompiler/ets_runtime/ecmascript/compiler/pgo_type/
H A Dpgo_type_recorder.cpp41 auto methodLiteral = jsPandaFile->FindMethodLiteral(methodOffset); in PGOTypeRecorder() local
42 decoder.GetTypeInfo(jsPandaFile, recordName, methodLiteral, callback); in PGOTypeRecorder()
/arkcompiler/ets_runtime/ecmascript/patch/
H A Dpatch_loader.cpp473 MethodLiteral *methodLiteral = item.second; in GeneratePatchInfo() local
494 patchMethodLiterals.emplace(patchMethodIndex, methodLiteral); in GeneratePatchInfo()
519 MethodLiteral *methodLiteral = nullptr; in CollectClassInfo()
521 methodLiteral = iter->second; in CollectClassInfo()
539 entityId = jsPandaFile->ResolveMethodIndex(methodLiteral->GetMethodId(), in CollectClassInfo()
541 literalId = jsPandaFile->ResolveMethodIndex(methodLiteral->GetMethodId(), in CollectClassInfo()
544 entityId = jsPandaFile->ResolveMethodIndex(methodLiteral->GetMethodId(), in CollectClassInfo()
546 literalId = jsPandaFile->ResolveMethodIndex(methodLiteral->GetMethodId(), in CollectClassInfo()
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/
H A Daot_file_manager.cpp384 MethodLiteral *methodLiteral = method->GetMethodLiteral(); in SetAOTMainFuncEntry() local
385 ASSERT(methodLiteral != nullptr); in SetAOTMainFuncEntry()
386 methodLiteral->SetAotCodeBit(true); in SetAOTMainFuncEntry()
387 methodLiteral->SetIsFastCall(isFastCall); in SetAOTMainFuncEntry()
417 MethodLiteral *methodLiteral = method->GetMethodLiteral(); in SetAOTFuncEntry() local
418 ASSERT(methodLiteral != nullptr); in SetAOTFuncEntry()
419 methodLiteral->SetAotCodeBit(true); in SetAOTFuncEntry()
420 methodLiteral->SetIsFastCall(entry.isFastCall_); in SetAOTFuncEntry()

Completed in 15 milliseconds

123