/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | pass_manager.cpp | 73 MethodLiteral *methodLiteral, in Compile() 87 std::string fullName = module->GetFuncName(methodLiteral, jsPandaFile); in Compile() 104 … BytecodeCircuitBuilder builder(jsPandaFile, methodLiteral, methodPCInfo, tsManager, &circuit, in Compile() 114 … methodLiteral, 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()
|
D | type_recorder.cpp | 26 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 …]
|
D | type_recorder.h | 35 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,
|
D | code_generator.h | 36 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()
|
D | compilation_driver.h | 83 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,
|
D | argument_accessor.h | 53 Circuit *circuit, const MethodLiteral *methodLiteral = nullptr) 55 method_(methodLiteral), in circuit_()
|
D | bytecode_info_collector.cpp | 102 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()
|
D | compilation_driver.cpp | 193 bool CompilationDriver::FilterMethod(const CString &recordName, const MethodLiteral *methodLiteral, in FilterMethod() argument 197 !pfDecoder_.Match(recordName, methodLiteral->GetMethodId())) { in FilterMethod()
|
D | llvm_codegen.cpp | 227 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()
|
D | slowpath_lowering.h | 114 TSManager *tsManager, const MethodLiteral *methodLiteral, in SlowPathLowering() argument 116 : tsManager_(tsManager), methodLiteral_(methodLiteral), in SlowPathLowering()
|
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ |
D | pgo_profiler_decoder.h | 82 …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/ |
D | pgo_profiler_test.cpp | 82 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/ |
D | method.cpp | 92 …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/ |
D | global_type_infer.cpp | 62 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/ |
D | js_stackgetter.cpp | 234 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/ |
D | js_pandafile.h | 110 void SetMethodLiteralToMap(MethodLiteral *methodLiteral) in SetMethodLiteralToMap() argument 112 ASSERT(methodLiteral != nullptr); in SetMethodLiteralToMap() 113 methodLiteralMap_.emplace(methodLiteral->GetMethodId().GetOffset(), methodLiteral); in SetMethodLiteralToMap()
|
D | panda_file_translator.cpp | 74 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 …]
|
D | panda_file_translator.h | 46 … const MethodLiteral *methodLiteral, const CString &methodName = JSPandaFile::ENTRY_FUNCTION_NAME);
|
D | literal_data_extractor.cpp | 221 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()
|
D | program_object.h | 207 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()
|
D | class_info_extractor.h | 42 MethodLiteral *methodLiteral; member
|
D | class_info_extractor.cpp | 45 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/ |
D | js_debugger.cpp | 190 MethodLiteral *methodLiteral = methodsData + i; in FindMethod() local 192 methodLiteral->GetMethodId(), methodLiteral->IsNativeWithCallField()); in FindMethod()
|
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/ |
D | heap_snapshot.cpp | 742 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/ |
D | patch_loader.cpp | 335 MethodLiteral *methodLiteral = item.second; in GeneratePatchInfo() local 347 iter->second.emplace(methodName, methodLiteral); in GeneratePatchInfo() 349 CMap<CString, MethodLiteral*> methodNameInfo = {{methodName, methodLiteral}}; in GeneratePatchInfo()
|