Home
last modified time | relevance | path

Searched refs:MethodLiteral (Results 1 - 25 of 95) sorted by relevance

1234

/arkcompiler/ets_runtime/ecmascript/
H A Dmethod.cpp24 return MethodLiteral::ParseFunctionName(jsPandaFile, GetMethodId()); in ParseFunctionName()
30 return MethodLiteral::ParseFunctionNameView(jsPandaFile, GetMethodId()); in ParseFunctionNameView()
36 return MethodLiteral::GetMethodName(jsPandaFile, GetMethodId()); in GetMethodName()
41 return MethodLiteral::GetMethodName(file, GetMethodId()); in GetMethodName()
47 return MethodLiteral::GetRecordName(jsPandaFile, GetMethodId()); in GetRecordNameStr()
53 return MethodLiteral::GetCodeSize(jsPandaFile, GetMethodId()); in GetCodeSize()
67 MethodLiteral *Method::GetMethodLiteral() const in GetMethodLiteral()
75 return reinterpret_cast<MethodLiteral *>(GetCodeEntryOrLiteral()); in GetMethodLiteral()
115 JSHandle<Method> Method::Create(JSThread *thread, const JSPandaFile *jsPandaFile, MethodLiteral *methodLiteral) in Create()
H A Dmethod.h178 return MethodLiteral::IsAotWithCallField(callField); in IsAotWithCallField()
186 return MethodLiteral::OnlyHaveThisWithCallField(callField); in OnlyHaveThisWithCallField()
192 return MethodLiteral::OnlyHaveNewTagetAndThisWithCallField(callField); in OnlyHaveNewTagetAndThisWithCallField()
209 return MethodLiteral::GetNumArgsWithCallField(callField); in GetNumArgsWithCallField()
231 return MethodLiteral::GetHotnessCounter(literalInfo); in GetHotnessCounter()
237 uint64_t newValue = MethodLiteral::SetHotnessCounter(literalInfo, counter); in SetHotnessCounter()
244 return MethodLiteral::GetMethodId(literalInfo); in GetMethodId()
250 return MethodLiteral::GetSlotSize(literalInfo); in GetSlotSize()
445 MethodLiteral *PUBLIC_API GetMethodLiteral() const;
503 static JSHandle<Method> Create(JSThread *thread, const JSPandaFile *jsPandaFile, MethodLiteral *methodLitera
[all...]
/arkcompiler/ets_runtime/ecmascript/jspandafile/
H A Dmethod_literal.cpp26 MethodLiteral::MethodLiteral(EntityId methodId) in MethodLiteral() function in panda::ecmascript::MethodLiteral
32 void MethodLiteral::Initialize(const JSPandaFile *jsPandaFile, const JSThread *thread) in Initialize()
89 std::string MethodLiteral::ParseFunctionName(const JSPandaFile* jsPandaFile, EntityId methodId) in ParseFunctionName()
96 std::pair<std::string_view, bool> MethodLiteral::ParseFunctionNameView( in ParseFunctionNameView()
117 CString MethodLiteral::ParseFunctionNameToCString(const JSPandaFile *jsPandaFile, EntityId methodId) in ParseFunctionNameToCString()
137 const char* MethodLiteral::GetMethodName(const JSPandaFile* jsPandaFile, EntityId methodId, bool cpuProfiler) in GetMethodName()
145 std::pair<std::string_view, bool> MethodLiteral::GetMethodNameView( in GetMethodNameView()
155 CString MethodLiteral::GetRecordName(const JSPandaFile *jsPandaFile, EntityId methodId) in GetRecordName()
164 const char *MethodLiteral
[all...]
H A Dpanda_file_translator.h45 static JSHandle<Program> GenerateProgramInternal(EcmaVM *vm, MethodLiteral *mainMethodLiteral,
48 const MethodLiteral *methodLiteral, const CString &methodName = JSPandaFile::ENTRY_FUNCTION_NAME);
50 static void FixOpcode(MethodLiteral *method, const OldBytecodeInst &inst);
51 static void UpdateICOffset(MethodLiteral *method, uint8_t *pc);
H A Dmethod_literal.h33 struct PUBLIC_API MethodLiteral : public base::AlignedStruct<sizeof(uint64_t), struct
43 PUBLIC_API explicit MethodLiteral(EntityId methodId);
44 MethodLiteral() = delete;
45 ~MethodLiteral() = default;
47 NO_COPY_SEMANTIC(MethodLiteral);
48 NO_MOVE_SEMANTIC(MethodLiteral);
419 STATIC_ASSERT_EQ_ARCH(sizeof(MethodLiteral), MethodLiteral::SizeArch32, MethodLiteral::SizeArch64);
H A Djs_pandafile.h143 MethodLiteral* GetMethodLiterals() const in GetMethodLiterals()
148 void SetMethodLiteralToMap(MethodLiteral *methodLiteral) in SetMethodLiteralToMap()
154 const CUnorderedMap<uint32_t, MethodLiteral *> &GetMethodLiteralMap() const in GetMethodLiteralMap()
159 MethodLiteral *GetMethodLiteralByIndex(uint32_t index) const in GetMethodLiteralByIndex()
231 PUBLIC_API MethodLiteral *FindMethodLiteral(uint32_t offset) const;
478 CUnorderedMap<uint32_t, MethodLiteral *> methodLiteralMap_;
494 MethodLiteral *methodLiterals_ {nullptr};
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dts_inline_lowering.h109 bool FilterInlinedMethod(MethodLiteral* method, std::vector<const uint8_t*> pcOffsets);
112 MethodInfo &methodInfo, MethodPcInfo &methodPCInfo, MethodLiteral *method, InlineTypeInfoAccessor &info);
113 void ReplaceCallInput(InlineTypeInfoAccessor &info, GateRef glue, MethodLiteral *method);
118 bool CheckParameter(GateRef gate, InlineTypeInfoAccessor &info, MethodLiteral* method);
119 void LowerToInlineCall(InlineTypeInfoAccessor &info, const std::vector<GateRef> &args, MethodLiteral* method);
135 void ReplaceAccessorInput(InlineTypeInfoAccessor &info, GateRef glue, MethodLiteral *method);
136 void ReplaceInput(InlineTypeInfoAccessor &info, GateRef glue, MethodLiteral *method);
143 void UpdateCallMethodFlagMap(uint32_t methodOffset, const MethodLiteral *method);
H A Dbytecode_info_collector.h333 bool FilterMethod(const MethodLiteral *methodLiteral, const MethodPcInfo &methodPCInfo) const in FilterMethod()
335 auto recordName = MethodLiteral::GetRecordName(jsPandaFile_, methodLiteral->GetMethodId()); in FilterMethod()
364 void ProcessMethod(MethodLiteral *methodLiteral);
373 void CollectMethodPcsFromBC(const uint32_t insSz, const uint8_t *insArr, MethodLiteral *method,
378 void CollectMethods(const MethodLiteral *method, const std::shared_ptr<CString> recordNamePtr);
383 void CollectMethodInfoFromBC(const BytecodeInstruction &bcIns, const MethodLiteral *method, int32_t bcIndex,
386 void IterateLiteral(const MethodLiteral *method, std::vector<uint32_t> &classOffsetVector);
388 void CollectClassLiteralInfo(const MethodLiteral *method, const std::vector<std::string> &classNameVec);
H A Dir_module.cpp22 std::string IRModule::GetFuncName(const MethodLiteral *methodLiteral, in GetFuncName()
26 std::string name = MethodLiteral::GetMethodName(jsPandaFile, methodLiteral->GetMethodId()); in GetFuncName()
H A Dcompilation_driver.h53 MethodLiteral *methodLiteral, in CompileMethod()
77 const std::string methodName(MethodLiteral::GetMethodName(jsPandaFile_, methodLiteral->GetMethodId())); in Run()
152 bool CompileMethod(const JSPandaFile *jsPandaFile, MethodLiteral *methodLiteral, in CompileMethod()
160 const std::string methodName(MethodLiteral::GetMethodName(jsPandaFile, methodLiteral->GetMethodId())); in CompileMethod()
H A Dargument_accessor.h56 Circuit *circuit, const MethodLiteral *methodLiteral = nullptr) in ArgumentAccessor()
111 const MethodLiteral *method_ {nullptr};
H A Dhcr_circuit_builder.h384 GateRef kind = Int32And(Int32LSR(bitfield, Int32(MethodLiteral::FunctionKindBits::START_BIT)), in IsBase()
385 Int32((1LU << MethodLiteral::FunctionKindBits::SIZE) - 1)); in IsBase()
395 GateRef kind = Int32And(Int32LSR(bitfield, Int32(MethodLiteral::FunctionKindBits::START_BIT)), in IsDerived()
396 Int32((1LU << MethodLiteral::FunctionKindBits::SIZE) - 1)); in IsDerived()
405 GateRef methodId = Int64And(Int64LSR(literalInfo, Int64(MethodLiteral::MethodIdBits::START_BIT)), in GetMethodId()
406 Int64((1LLU << MethodLiteral::MethodIdBits::SIZE) - 1)); in GetMethodId()
415 GateRef builtinsId = Int64And(Int64LSR(extraLiteralInfo, Int64(MethodLiteral::BuiltinIdBits::START_BIT)), in GetBuiltinsId()
416 Int64((1LLU << MethodLiteral::BuiltinIdBits::SIZE) - 1)); in GetBuiltinsId()
H A Dbytecode_info_collector.cpp62 MethodLiteral *methods = jsPandaFile_->GetMethodLiterals(); in ProcessClasses()
92 MethodLiteral *methodLiteral = methods + (methodIdx++); in ProcessClasses()
131 void BytecodeInfoCollector::ProcessMethod(MethodLiteral *methodLiteral) in ProcessMethod()
164 MethodLiteral *method, uint32_t methodOffset, in CollectMethodPcsFromBC()
250 void BytecodeInfoCollector::CollectMethods(const MethodLiteral *method, const std::shared_ptr<CString> recordNamePtr) in CollectMethods()
283 void BytecodeInfoCollector::CollectMethodInfoFromBC(const BytecodeInstruction &bcIns, const MethodLiteral *method, in CollectMethodInfoFromBC()
H A Dinterpreter_stub-inl.h270 GateRef numVregs = TruncInt64ToInt32(Int64And(Int64LSR(callField, Int64(MethodLiteral::NumVregsBits::START_BIT)), in GetNewTarget()
271 Int64((1LLU << MethodLiteral::NumVregsBits::SIZE) - 1))); in GetNewTarget()
273 Int64(MethodLiteral::HaveFuncBit::START_BIT)), in GetNewTarget()
274 Int64((1LLU << MethodLiteral::HaveFuncBit::SIZE) - 1)), Int64(0))); in GetNewTarget()
509 GateRef numVregs = TruncInt64ToInt32(Int64And(Int64LSR(callField, Int64(MethodLiteral::NumVregsBits::START_BIT)), in GetStartIdxAndNumArgs()
510 Int64((1LLU << MethodLiteral::NumVregsBits::SIZE) - 1))); in GetStartIdxAndNumArgs()
511 GateRef haveFunc = Int64NotEqual(Int64And(Int64LSR(callField, Int64(MethodLiteral::HaveFuncBit::START_BIT)), in GetStartIdxAndNumArgs()
512 Int64((1LLU << MethodLiteral::HaveFuncBit::SIZE) - 1)), Int64(0)); in GetStartIdxAndNumArgs()
514 Int64And(Int64LSR(callField, Int64(MethodLiteral::HaveNewTargetBit::START_BIT)), in GetStartIdxAndNumArgs()
515 Int64((1LLU << MethodLiteral in GetStartIdxAndNumArgs()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/baseline/
H A Dbaseline_stub_builder.h214 TruncInt64ToInt32(Int64And(Int64LSR(callField, Int64(MethodLiteral::NumVregsBits::START_BIT)), in GetNewTarget()
215 Int64((1LLU << MethodLiteral::NumVregsBits::SIZE) - 1))); in GetNewTarget()
217 Int64(MethodLiteral::HaveFuncBit::START_BIT)), in GetNewTarget()
218 Int64((1LLU << MethodLiteral::HaveFuncBit::SIZE) - 1)), Int64(0))); in GetNewTarget()
235 Int64LSR(callField, Int64(MethodLiteral::NumVregsBits::START_BIT)), in GetStartIdxAndNumArgs()
236 Int64((1LLU << MethodLiteral::NumVregsBits::SIZE) - 1))); in GetStartIdxAndNumArgs()
237 GateRef haveFunc = Int64NotEqual(Int64And(Int64LSR(callField, Int64(MethodLiteral::HaveFuncBit::START_BIT)), in GetStartIdxAndNumArgs()
238 Int64((1LLU << MethodLiteral::HaveFuncBit::SIZE) - 1)), Int64(0)); in GetStartIdxAndNumArgs()
240 Int64And(Int64LSR(callField, Int64(MethodLiteral::HaveNewTargetBit::START_BIT)), in GetStartIdxAndNumArgs()
241 Int64((1LLU << MethodLiteral in GetStartIdxAndNumArgs()
[all...]
H A Dbaseline_stubs-inl.h242 TruncInt64ToInt32(Int64And(Int64LSR(callField, Int64(MethodLiteral::NumVregsBits::START_BIT)), in GetNewTarget()
243 Int64((1LLU << MethodLiteral::NumVregsBits::SIZE) - 1))); in GetNewTarget()
245 ZExtInt1ToInt32(Int64NotEqual(Int64And(Int64LSR(callField, Int64(MethodLiteral::HaveFuncBit::START_BIT)), in GetNewTarget()
246 Int64((1LLU << MethodLiteral::HaveFuncBit::SIZE) - 1)), Int64(0))); in GetNewTarget()
263 Int64LSR(callField, Int64(MethodLiteral::NumVregsBits::START_BIT)), in GetStartIdxAndNumArgs()
264 Int64((1LLU << MethodLiteral::NumVregsBits::SIZE) - 1))); in GetStartIdxAndNumArgs()
265 GateRef haveFunc = Int64NotEqual(Int64And(Int64LSR(callField, Int64(MethodLiteral::HaveFuncBit::START_BIT)), in GetStartIdxAndNumArgs()
266 Int64((1LLU << MethodLiteral::HaveFuncBit::SIZE) - 1)), Int64(0)); in GetStartIdxAndNumArgs()
268 Int64And(Int64LSR(callField, Int64(MethodLiteral::HaveNewTargetBit::START_BIT)), in GetStartIdxAndNumArgs()
269 Int64((1LLU << MethodLiteral in GetStartIdxAndNumArgs()
[all...]
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/
H A Dpanda_file_translator_test.cpp83 MethodLiteral *method1 = new MethodLiteral(methodId[0]); in HWTEST_F_L0()
84 MethodLiteral *method2 = new MethodLiteral(methodId[1]); in HWTEST_F_L0()
129 const char *methodName = MethodLiteral::GetMethodName(pf.get(), methodId[0]); in HWTEST_F_L0()
H A Djs_pandafile_executor_test.cpp83 MethodLiteral *method = new MethodLiteral(methodId[0]); in HWTEST_F_L0()
118 MethodLiteral *method = new MethodLiteral(methodId[0]); in HWTEST_F_L0()
155 MethodLiteral *method = new MethodLiteral(methodId[0]); in HWTEST_F_L0()
H A Djs_pandafile_test.cpp113 MethodLiteral *method = pf->GetMethodLiterals(); in HWTEST_F_L0()
143 MethodLiteral *method1 = new MethodLiteral(methodId[0]); in HWTEST_F_L0()
144 MethodLiteral *method2 = new MethodLiteral(methodId[1]); in HWTEST_F_L0()
145 MethodLiteral *method3 = new MethodLiteral(methodId[2]); in HWTEST_F_L0()
149 EXPECT_STREQ(MethodLiteral::ParseFunctionName(pf.get(), methodId[0]).c_str(), "foo1"); in HWTEST_F_L0()
150 EXPECT_STREQ(MethodLiteral::ParseFunctionName(pf.get(), methodId[1]).c_str(), "foo2"); in HWTEST_F_L0()
151 EXPECT_STREQ(MethodLiteral in HWTEST_F_L0()
[all...]
/arkcompiler/ets_runtime/ecmascript/patch/
H A Dpatch_loader.h92 // patch methodLiterals for load patch, <recordName, <methodName, MethodLiteral>>
93 CUnorderedMap<PatchMethodIndex, MethodLiteral*, PatchMethodIndex::Hash> patchMethodLiterals;
94 // base method info for unload patch, <BaseMethodIndex, base MethodLiteral>
95 CUnorderedMap<BaseMethodIndex, MethodLiteral *, BaseMethodIndex::Hash> baseMethodInfo;
129 static MethodLiteral *FindSameMethod(PatchInfo &patchInfo, const JSPandaFile *baseFile,
150 MethodLiteral *srcMethodLiteral,
H A Dpatch_loader.cpp150 MethodLiteral *baseMethodLiteral = item.second; in UnloadPatchInternal()
228 MethodLiteral *srcMethodLiteral, in ReplaceMethod()
345 MethodLiteral *patchMethodLiteral = in FindAndReplaceSameMethod()
406 MethodLiteral *patchMethodLiteral = in FindAndReplaceClassLiteral()
429 MethodLiteral* PatchLoader::FindSameMethod(PatchInfo &patchInfo, const JSPandaFile *baseFile, in FindSameMethod()
432 const CUnorderedMap<PatchMethodIndex, MethodLiteral*, PatchMethodIndex::Hash> &patchMethodLiterals = in FindSameMethod()
437 CString baseRecordName = MethodLiteral::GetRecordName(baseFile, baseMethodId); in FindSameMethod()
458 CUnorderedMap<BaseMethodIndex, MethodLiteral *, BaseMethodIndex::Hash> &baseMethodInfo = patchInfo.baseMethodInfo; in SaveBaseMethodInfo()
459 MethodLiteral *baseMethodLiteral = baseFile->FindMethodLiteral(baseMethodId.GetOffset()); in SaveBaseMethodInfo()
470 CUnorderedMap<PatchMethodIndex, MethodLiteral*, PatchMethodInde in GeneratePatchInfo()
[all...]
H A Dquick_fix_helper.h25 static JSTaggedValue CreateMainFuncWithPatch(EcmaVM *vm, MethodLiteral *mainMethodLiteral,
H A Dquick_fix_helper.cpp20 JSTaggedValue QuickFixHelper::CreateMainFuncWithPatch(EcmaVM *vm, MethodLiteral *mainMethodLiteral, in CreateMainFuncWithPatch()
/arkcompiler/ets_runtime/ecmascript/dfx/stackinfo/
H A Djs_stackgetter.cpp72 EntityId methodId = reinterpret_cast<MethodLiteral *>(methodKey.methodIdentifier)->GetMethodId(); in ParseMethodInfo()
74 const char *functionName = MethodLiteral::GetMethodName(jsPandaFile, methodId, true); in ParseMethodInfo()
97 const char *recordName = MethodLiteral::GetRecordNameWithSymbol(jsPandaFile, methodId); in ParseMethodInfo()
215 MethodLiteral *methodLiteral = method->GetMethodLiteral(); in GetRunningState()
216 if (methodLiteral != nullptr && MethodLiteral::IsAotWithCallField(methodLiteral->GetCallField())) { in GetRunningState()
258 MethodLiteral *methodLiteral = nextMethod->GetMethodLiteral(); in GetNativeMethodCallPos()
307 MethodLiteral *methodLiteral = method->GetMethodLiteral(); in GetMethodIdentifier()
326 MethodLiteral *methodLiteral = nextMethod->GetMethodLiteral(); in GetCallLineNumber()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
H A Dbuiltins_sharedobject_test.cpp130 MethodLiteral *methodLiteral = new MethodLiteral(EntityId(methodOffset)); in HWTEST_F_L0()
138 MethodLiteral *methodLiteral1 = new MethodLiteral(EntityId(methodOffset1)); in HWTEST_F_L0()

Completed in 16 milliseconds

1234