Home
last modified time | relevance | path

Searched refs:methodLiteral (Results 1 – 25 of 39) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/compiler/
Dpass_manager.cpp73 MethodLiteral *methodLiteral, in Compile()
87 std::string fullName = module->GetFuncName(methodLiteral, jsPandaFile); in Compile()
104 … BytecodeCircuitBuilder builder(jsPandaFile, methodLiteral, methodPCInfo, tsManager, &circuit, in Compile()
114methodLiteral, methodOffset, vm_->GetNativeAreaAllocator(), decoder, passOptions_); in Compile()
164 MethodLiteral* methodLiteral = jsPandaFile->GetMethodLiterals(); in IsReleasedPandaFile() local
165 if (methodLiteral == nullptr) { in IsReleasedPandaFile()
170 panda_file::File::EntityId methodId = methodLiteral->GetMethodId(); in IsReleasedPandaFile()
Dtype_recorder.cpp26 TypeRecorder::TypeRecorder(const JSPandaFile *jsPandaFile, const MethodLiteral *methodLiteral, in TypeRecorder() argument
29 …: argTypes_(methodLiteral->GetNumArgsWithCallField() + static_cast<size_t>(TypedArgIdx::NUM_OF_TYP… in TypeRecorder()
35 LoadTypes(jsPandaFile, methodLiteral, tsManager, recordName); in TypeRecorder()
37 LoadTypesFromPGO(jsPandaFile, methodLiteral, recordName); in TypeRecorder()
38 CreateTypesForPGO(jsPandaFile, methodLiteral, tsManager, recordName); in TypeRecorder()
42 void TypeRecorder::LoadTypes(const JSPandaFile *jsPandaFile, const MethodLiteral *methodLiteral, in LoadTypes() argument
46 panda_file::File::EntityId fieldId = methodLiteral->GetMethodId(); in LoadTypes()
131 … TypeRecorder::LoadTypesFromPGO(const JSPandaFile *jsPandaFile, const MethodLiteral *methodLiteral, in LoadTypesFromPGO() argument
144 decoder_->GetTypeInfo(jsPandaFile, recordName, methodLiteral, callback); in LoadTypesFromPGO()
148 …TypeRecorder::CreateTypesForPGO(const JSPandaFile *jsPandaFile, const MethodLiteral *methodLiteral, in CreateTypesForPGO() argument
[all …]
Dtype_recorder.h35 TypeRecorder(const JSPandaFile *jsPandaFile, const MethodLiteral *methodLiteral,
51 void LoadTypes(const JSPandaFile *jsPandaFile, const MethodLiteral *methodLiteral,
54 void CreateTypesForPGO(const JSPandaFile *jsPandaFile, const MethodLiteral *methodLiteral,
57 void LoadTypesFromPGO(const JSPandaFile *jsPandaFile, const MethodLiteral *methodLiteral,
Dcode_generator.h36 const MethodLiteral *methodLiteral, const JSPandaFile *jsPandaFile,
60 const MethodLiteral *methodLiteral, const JSPandaFile *jsPandaFile) in Run() argument
62 impl_->GenerateCode(circuit, graph, cfg, methodLiteral, jsPandaFile, methodName_); in Run()
Dcompilation_driver.h83 MethodLiteral *methodLiteral, in CompileMethod() argument
89 cb(bytecodeInfo_.GetRecordName(index), methodName, methodLiteral, methodOffset, in CompileMethod()
116 auto methodLiteral = jsPandaFile_->FindMethodLiteral(compilingMethod); in Run() local
117 …nst 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()
335 bool FilterMethod(const CString &recordName, const MethodLiteral *methodLiteral,
Dargument_accessor.h53 Circuit *circuit, const MethodLiteral *methodLiteral = nullptr)
55 method_(methodLiteral), in circuit_()
Dbytecode_info_collector.cpp102 MethodLiteral *methodLiteral = methods + (methodIdx++); in ProcessClasses() local
103 InitializeMemory(methodLiteral, methodId); in ProcessClasses()
104 methodLiteral->Initialize(jsPandaFile_); in ProcessClasses()
110 methodLiteral->SetFunctionKind(kind); in ProcessClasses()
120 CollectMethodPcsFromBC(codeSize, insns, methodLiteral, classNameVec, in ProcessClasses()
125 CollectClassLiteralInfo(methodLiteral, classNameVec); in ProcessClasses()
130 jsPandaFile_->SetMethodLiteralToMap(methodLiteral); in ProcessClasses()
Dcompilation_driver.cpp193 bool CompilationDriver::FilterMethod(const CString &recordName, const MethodLiteral *methodLiteral, in FilterMethod() argument
197 !pfDecoder_.Match(recordName, methodLiteral->GetMethodId())) { in FilterMethod()
Dllvm_codegen.cpp227 const panda::ecmascript::MethodLiteral *methodLiteral, in GenerateCode() argument
230 auto function = module_->AddFunc(methodLiteral, jsPandaFile); in GenerateCode()
233 if (methodLiteral->IsFastCall()) { in GenerateCode()
239 enableLog_, methodLiteral->IsFastCall(), methodName); in GenerateCode()
Dslowpath_lowering.h114 TSManager *tsManager, const MethodLiteral *methodLiteral, in SlowPathLowering() argument
116 : tsManager_(tsManager), methodLiteral_(methodLiteral), in SlowPathLowering()
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/
Dpgo_profiler_decoder.h82 …Info(const JSPandaFile *jsPandaFile, const CString &recordName, const MethodLiteral *methodLiteral, in GetTypeInfo() argument
88 … const auto *methodName = MethodLiteral::GetMethodName(jsPandaFile, methodLiteral->GetMethodId()); in GetTypeInfo()
91 PGOMethodInfo::CalcChecksum(methodName, methodLiteral->GetBytecodeArray(), in GetTypeInfo()
92 … MethodLiteral::GetCodeSize(jsPandaFile, methodLiteral->GetMethodId())); in GetTypeInfo()
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/tests/
Dpgo_profiler_test.cpp82 auto *methodLiteral = new MethodLiteral(mda.GetMethodId()); in CreateJSPandaFile() local
83 methodLiteral->Initialize(pf.get()); in CreateJSPandaFile()
84 pf->SetMethodLiteralToMap(methodLiteral); in CreateJSPandaFile()
85 methodLiterals.push_back(methodLiteral); in CreateJSPandaFile()
368 MethodLiteral *methodLiteral = new MethodLiteral(EntityId(61)); in HWTEST_F_L0() local
369 JSHandle<Method> method = vm_->GetFactory()->NewMethod(methodLiteral); in HWTEST_F_L0()
576 std::shared_ptr<MethodLiteral> methodLiteral = std::make_shared<MethodLiteral>(EntityId(61)); in HWTEST_F_L0() local
578 …Method::Cast(vm_->GetFactory()->NewMethod(methodLiteral.get(), MemSpaceType::NON_MOVABLE).GetTagge… in HWTEST_F_L0()
681 auto methodLiteral = iter.second; in HWTEST_F_L0() local
682 auto methodId = methodLiteral->GetMethodId(); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/
Dmethod.cpp92 …hod> Method::Create(JSThread *thread, const JSPandaFile *jsPandaFile, MethodLiteral *methodLiteral) in Create() argument
95 EntityId methodId = methodLiteral->GetMethodId(); in Create()
101 JSHandle<Method> method = vm->GetFactory()->NewMethod(methodLiteral); in Create()
/arkcompiler/ets_runtime/ecmascript/compiler/type_inference/
Dglobal_type_infer.cpp62 auto methodLiteral = jsPandaFile_->FindMethodLiteral(methodOffset); in NewTypeInfer() local
63 std::string fullName = module->GetFuncName(methodLiteral, jsPandaFile_); in NewTypeInfer()
72 …new BytecodeCircuitBuilder(jsPandaFile_, methodLiteral, methodPcInfo, ctx_->GetTSManager(), circui… in NewTypeInfer()
80 methodLiteral, enableGlobalTypeInfer_); in NewTypeInfer()
/arkcompiler/ets_runtime/ecmascript/dfx/stackinfo/
Djs_stackgetter.cpp234 MethodLiteral *methodLiteral = nextMethod->GetMethodLiteral(); in GetNativeMethodCallPos() local
235 if (methodLiteral == nullptr) { in GetNativeMethodCallPos()
238 panda_file::File::EntityId methodId = methodLiteral->GetMethodId(); in GetNativeMethodCallPos()
283 MethodLiteral *methodLiteral = method->GetMethodLiteral(); in GetMethodIdentifier() local
284 return reinterpret_cast<void *>(methodLiteral); in GetMethodIdentifier()
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Djs_pandafile.h110 void SetMethodLiteralToMap(MethodLiteral *methodLiteral) in SetMethodLiteralToMap() argument
112 ASSERT(methodLiteral != nullptr); in SetMethodLiteralToMap()
113 methodLiteralMap_.emplace(methodLiteral->GetMethodId().GetOffset(), methodLiteral); in SetMethodLiteralToMap()
Dpanda_file_translator.cpp74 MethodLiteral *methodLiteral = methodLiterals + (methodIdx++); in TranslateClasses() local
75 InitializeMemory(methodLiteral, methodId); in TranslateClasses()
76 methodLiteral->Initialize(jsPandaFile); in TranslateClasses()
82 methodLiteral->SetFunctionKind(kind); in TranslateClasses()
92 TranslateBytecode(jsPandaFile, codeSize, insns, methodLiteral); in TranslateClasses()
94 TranslateBytecode(jsPandaFile, codeSize, insns, methodLiteral, recordName); in TranslateClasses()
98 jsPandaFile->SetMethodLiteralToMap(methodLiteral); in TranslateClasses()
211 MethodLiteral *methodLiteral = jsPandaFile->FindMethodLiteral(it.first); in ParseConstPool() local
212 ASSERT(methodLiteral != nullptr); in ParseConstPool()
213 methodLiteral->SetFunctionKind(JSPandaFile::GetFunctionKind(type)); in ParseConstPool()
[all …]
Dpanda_file_translator.h46 … const MethodLiteral *methodLiteral, const CString &methodName = JSPandaFile::ENTRY_FUNCTION_NAME);
Dliteral_data_extractor.cpp221 auto methodLiteral = jsPandaFile->FindMethodLiteral(offset); in DefineMethodInLiteral() local
222 ASSERT(methodLiteral != nullptr); in DefineMethodInLiteral()
223 methodLiteral->SetFunctionKind(kind); in DefineMethodInLiteral()
226 jsPandaFile, methodLiteral, constpool, entryIndex, isLoadedAOT, &canFastCall); in DefineMethodInLiteral()
Dprogram_object.h207 MethodLiteral *methodLiteral = jsPandaFile->FindMethodLiteral(id.GetOffset()); in GetMethodFromCache() local
208 ASSERT(methodLiteral != nullptr); in GetMethodFromCache()
210 JSHandle<Method> method = factory->NewMethod(jsPandaFile, methodLiteral, constpoolHandle, in GetMethodFromCache()
Dclass_info_extractor.h42 MethodLiteral *methodLiteral; member
Dclass_info_extractor.cpp45 MethodLiteral *methodLiteral = method->GetMethodLiteral(); in BuildClassInfoExtractorFromLiteral() local
79 methodLiteral in BuildClassInfoExtractorFromLiteral()
114 bool isStaticFlag = (detail.methodLiteral != nullptr); in ExtractAndReturnWhetherWithElements()
155 EntityId methodId = detail.methodLiteral->GetMethodId(); in ExtractAndReturnWhetherWithElements()
/arkcompiler/ets_runtime/ecmascript/debugger/
Djs_debugger.cpp190 MethodLiteral *methodLiteral = methodsData + i; in FindMethod() local
192 methodLiteral->GetMethodId(), methodLiteral->IsNativeWithCallField()); in FindMethod()
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/
Dheap_snapshot.cpp742 void HeapSnapshot::AddTraceNodeId(MethodLiteral *methodLiteral) in AddTraceNodeId() argument
745 auto result = methodToTraceNodeId_.find(methodLiteral); in AddTraceNodeId()
748 methodToTraceNodeId_.emplace(methodLiteral, traceNodeId); in AddTraceNodeId()
769 MethodLiteral *methodLiteral = method->GetMethodLiteral(); in AddTraceNode() local
770 if (methodLiteral == nullptr) { in AddTraceNode()
773 if (stackInfo_.count(methodLiteral) == 0) { in AddTraceNode()
774 if (!AddMethodInfo(methodLiteral, method->GetJSPandaFile(), sequenceId)) { in AddTraceNode()
778 AddTraceNodeId(methodLiteral); in AddTraceNode()
794 bool HeapSnapshot::AddMethodInfo(MethodLiteral *methodLiteral, in AddMethodInfo() argument
800 panda_file::File::EntityId methodId = methodLiteral->GetMethodId(); in AddMethodInfo()
[all …]
/arkcompiler/ets_runtime/ecmascript/patch/
Dpatch_loader.cpp335 MethodLiteral *methodLiteral = item.second; in GeneratePatchInfo() local
347 iter->second.emplace(methodName, methodLiteral); in GeneratePatchInfo()
349 CMap<CString, MethodLiteral*> methodNameInfo = {{methodName, methodLiteral}}; in GeneratePatchInfo()

12