Home
last modified time | relevance | path

Searched refs:Method (Results 1 – 25 of 408) sorted by relevance

12345678910>>...17

/arkcompiler/runtime_core/static_core/plugins/ets/tests/common/bouncing_peas/
Dbouncing_peas_unit.cpp25 [[maybe_unused]] static long SkoalaCreateRedrawerPeer([[maybe_unused]] panda::Method *m, in SkoalaCreateRedrawerPeer()
30 [[maybe_unused]] static long SkoalaGetFrame([[maybe_unused]] panda::Method *m, in SkoalaGetFrame()
36 [[maybe_unused]] static long SkoalaInitRedrawer([[maybe_unused]] panda::Method *m, [[maybe_unused]]… in SkoalaInitRedrawer()
43 [[maybe_unused]] static long SkoalaPaint1nMake([[maybe_unused]] panda::Method *m) in SkoalaPaint1nMake()
48 …[[maybe_unused]] panda::Method *m, [[maybe_unused]] long ptr /*KNativePointer*/, [[maybe_unused]] … in SkoalaPictureRecorder1nBeginRecording()
54 [[maybe_unused]] panda::Method *m, [[maybe_unused]] long ptr /*KNativePointer*/) in SkoalaPictureRecorder1nFinishRecordingAsDrawable()
59 …[[maybe_unused]] panda::Method *m, [[maybe_unused]] long ptr /*KNativePointer*/, [[maybe_unused]] … in SkoalaPictureRecorder1nFinishRecordingAsPictureWithCull()
64 [[maybe_unused]] static long SkoalaPictureRecorder1nMake([[maybe_unused]] panda::Method *m) in SkoalaPictureRecorder1nMake()
69 [[maybe_unused]] panda::Method *m, [[maybe_unused]] long paragraphStylePtr /*KNativePointer*/, in SkoalaParagraphParagraphBuilder1nMake()
74 …used]] static long SkoalaParagraphParagraphBuilder1nGetFinalizer([[maybe_unused]] panda::Method *m) in SkoalaParagraphParagraphBuilder1nGetFinalizer()
[all …]
/arkcompiler/runtime_core/static_core/runtime/
Dcha.h25 void AddDependency(Method *callee, Method *caller);
28 void InvalidateMethod(Method *method, PandaSet<Method *> *dependentMethods);
29 void InvalidateMethods(const PandaSet<Method *> &methods);
30 void UpdateMethod(Method *method);
31 bool HasSingleImplementation(Method *method);
32 void SetHasSingleImplementation(Method *method, bool singleImplementation);
39 PandaMap<Method *, PandaSet<Method *>> dependencyMap_;
Dmethod.cpp51 Method::Proto::Proto(const panda_file::File &pf, panda_file::File::EntityId protoId) in Proto()
64 bool Method::ProtoId::operator==(const Method::ProtoId &other) const in operator ==()
75 bool Method::ProtoId::operator==(const Proto &other) const in operator ==()
102 std::string_view Method::Proto::GetReturnTypeDescriptor() const in GetReturnTypeDescriptor()
141 PandaString Method::Proto::GetSignature(bool includeReturnType) in GetSignature()
175 uint32_t Method::GetFullNameHashFromString(const PandaString &str) in GetFullNameHashFromString()
180 uint32_t Method::GetClassNameHashFromString(const PandaString &str) in GetClassNameHashFromString()
185 Method::UniqId Method::CalcUniqId(const uint8_t *classDescr, const uint8_t *name) in CalcUniqId()
194 Method::Method(Class *klass, const panda_file::File *pf, panda_file::File::EntityId fileId, in Method() function in panda::Method
216 Value Method::Invoke(ManagedThread *thread, Value *args, bool proxyCall) in Invoke()
[all …]
Dcha.cpp46 PandaSet<Method *> invalidatedMethods; in Update()
73 bool ClassHierarchyAnalysis::HasSingleImplementation(Method *method) in HasSingleImplementation()
79 void ClassHierarchyAnalysis::SetHasSingleImplementation(Method *method, bool singleImplementation) in SetHasSingleImplementation()
85 void ClassHierarchyAnalysis::UpdateMethod(Method *method) in UpdateMethod()
92 void ClassHierarchyAnalysis::InvalidateMethods(const PandaSet<Method *> &methods) in InvalidateMethods()
94 PandaSet<Method *> dependentMethods; in InvalidateMethods()
110 void ClassHierarchyAnalysis::InvalidateMethod(Method *method, PandaSet<Method *> *dependentMethods)… in InvalidateMethod()
132 void ClassHierarchyAnalysis::AddDependency(Method *callee, Method *caller) in AddDependency()
/arkcompiler/runtime_core/static_core/runtime/tests/
Dcompilation_status_test.cpp41 Method *GetMethod(Class *klass, size_t num);
57 Method *CompilationStatusTest::GetMethod(Class *klass, size_t num) in GetMethod()
61 Method *method = klass->GetDirectMethod(utf::CStringAsMutf8(ss.str().c_str())); in GetMethod()
95 Method *method = GetMethod(klass, 0); in TEST_F()
97 ASSERT_EQ(status, Method::NOT_COMPILED); in TEST_F()
99 ASSERT_EQ(method->AtomicSetCompilationStatus(status, Method::WAITING), true); in TEST_F()
101 ASSERT_EQ(status, Method::WAITING); in TEST_F()
103 ASSERT_EQ(method->AtomicSetCompilationStatus(status, Method::COMPILATION), true); in TEST_F()
105 ASSERT_EQ(status, Method::COMPILATION); in TEST_F()
107 ASSERT_EQ(method->AtomicSetCompilationStatus(status, Method::COMPILED), true); in TEST_F()
[all …]
Dcompiler_queue_test.cpp92 …tAndCheckMethodsIfExists(CompilerQueueInterface *queue, Method *target1, Method *target2, Method *… in GetAndCheckMethodsIfExists()
134 Method *mainMethod = klass->GetDirectMethod(utf::CStringAsMutf8("main")); in TEST_F()
137 Method *fMethod = klass->GetDirectMethod(utf::CStringAsMutf8("f")); in TEST_F()
140 Method *gMethod = klass->GetDirectMethod(utf::CStringAsMutf8("g")); in TEST_F()
162 Method *mainMethod = klass->GetDirectMethod(utf::CStringAsMutf8("main")); in TEST_F()
165 Method *fMethod = klass->GetDirectMethod(utf::CStringAsMutf8("f")); in TEST_F()
168 Method *gMethod = klass->GetDirectMethod(utf::CStringAsMutf8("g")); in TEST_F()
193 Method *mainMethod = klass->GetDirectMethod(utf::CStringAsMutf8("main")); in TEST_F()
196 Method *fMethod = klass->GetDirectMethod(utf::CStringAsMutf8("f")); in TEST_F()
199 Method *gMethod = klass->GetDirectMethod(utf::CStringAsMutf8("g")); in TEST_F()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/types/
Dets_method_signature_test.cpp51 EXPECT_EQ(minimal.GetProto(), Method::Proto( in TEST_F()
52 Method::Proto::ShortyVector { in TEST_F()
55 Method::Proto::RefTypeVector {})); in TEST_F()
57 EXPECT_EQ(minimalint.GetProto(), Method::Proto( in TEST_F()
58 Method::Proto::ShortyVector { in TEST_F()
62 Method::Proto::RefTypeVector {})); in TEST_F()
65 EXPECT_EQ(simple.GetProto(), Method::Proto( in TEST_F()
66 Method::Proto::ShortyVector { in TEST_F()
76 Method::Proto::RefTypeVector {})); in TEST_F()
78 EXPECT_EQ(arrays.GetProto(), Method::Proto( in TEST_F()
[all …]
/arkcompiler/ets_runtime/ecmascript/
Dmethod.cpp22 std::string Method::ParseFunctionName() const in ParseFunctionName()
28 const char *Method::GetMethodName() const in GetMethodName()
34 const char *Method::GetMethodName(const JSPandaFile *file) const in GetMethodName()
39 const CString Method::GetRecordNameStr() const in GetRecordNameStr()
45 uint32_t Method::GetCodeSize() const in GetCodeSize()
51 const JSPandaFile *Method::GetJSPandaFile() const in GetJSPandaFile()
62 MethodLiteral *Method::GetMethodLiteral() const in GetMethodLiteral()
72 uint32_t Method::FindCatchBlock(uint32_t pc) const in FindCatchBlock()
92 JSHandle<Method> Method::Create(JSThread *thread, const JSPandaFile *jsPandaFile, MethodLiteral *me… in Create()
98 return JSHandle<Method>(thread, patchVal); in Create()
[all …]
/arkcompiler/ets_runtime/ecmascript/debugger/
Dnotification_manager.h34 virtual void BytecodePcChanged(JSThread *thread, JSHandle<Method> method,
37 virtual bool HandleDebuggerStmt(JSHandle<Method> method, uint32_t bcOffset) = 0;
42 virtual void MethodEntry(JSHandle<Method> method, JSHandle<JSTaggedValue> envHandle) = 0;
43 virtual void MethodExit(JSHandle<Method> method) = 0;
76 void BytecodePcChangedEvent(JSThread *thread, Method *method, uint32_t bcOffset) const in BytecodePcChangedEvent()
79 JSHandle<Method> methodHandle(thread, method); in BytecodePcChangedEvent()
85 void DebuggerStmtEvent(JSThread *thread, Method *method, uint32_t bcOffset) const in DebuggerStmtEvent()
87 JSHandle<Method> methodHandle(thread, method); in DebuggerStmtEvent()
120 void MethodEntryEvent(JSThread *thread, Method *method, JSTaggedValue env) const in MethodEntryEvent()
122 JSHandle<Method> methodHandle(thread, method); in MethodEntryEvent()
[all …]
/arkcompiler/ets_frontend/ets2panda/checker/types/ets/
DetsEnumType.h100 struct Method { struct
105 [[nodiscard]] Method ToStringMethod() const noexcept; argument
106 void SetToStringMethod(Method const &method) noexcept in SetToStringMethod()
111 [[nodiscard]] Method GetValueMethod() const noexcept;
112 void SetGetValueMethod(Method const &method) noexcept in SetGetValueMethod()
117 [[nodiscard]] Method GetNameMethod() const noexcept;
118 void SetGetNameMethod(Method const &method) noexcept in SetGetNameMethod()
123 [[nodiscard]] Method ValueOfMethod() const noexcept;
124 void SetValueOfMethod(Method const &method) noexcept in SetValueOfMethod()
129 [[nodiscard]] Method ValuesMethod() const noexcept;
[all …]
/arkcompiler/runtime_core/static_core/runtime/methodtrace/
Dtrace.h69 void MethodEntry(ManagedThread *thread, Method *method) override;
70 void MethodExit(ManagedThread *thread, Method *method) override;
84 uint32_t EncodeMethodToId(Method *method);
86 virtual PandaString GetMethodDetailInfo(Method *method) = 0;
114 PandaMap<Method *, uint32_t> methodIdPandamap_ GUARDED_BY(methodsLock_);
115 PandaVector<Method *> methodsCalledVector_ GUARDED_BY(methodsLock_);
120 uint32_t EncodeMethodAndEventToId(Method *method, EventFlag flag);
121 Method *DecodeIdToMethod(uint32_t id);
123 void GetCalledMethods(size_t endOffset, PandaSet<Method *> *calledMethods);
127 …void WriteInfoToBuf(const ManagedThread *thread, Method *method, EventFlag event, uint32_t threadT…
[all …]
/arkcompiler/runtime_core/static_core/runtime/entrypoints/
Dentrypoints.h26 extern "C" Frame *CreateFrameWithSize(uint32_t size, uint32_t nregs, Method *method, Frame *prev);
29 Method *method, Frame *prev);
32 … uint32_t numActualArgs, Method *method,
35 extern "C" Frame *CreateFrameForMethod(Method *method, Frame *prev);
37 extern "C" Frame *CreateFrameForMethodDyn(Method *method, Frame *prev);
39 extern "C" Frame *CreateFrameForMethodWithActualArgs(uint32_t numActualArgs, Method *method, Frame …
41 extern "C" Frame *CreateFrameForMethodWithActualArgsDyn(uint32_t numActualArgs, Method *method, Fra…
/arkcompiler/runtime_core/static_core/runtime/bridge/
Dbridge.h24 class Method; variable
28 extern "C" void InterpreterToCompiledCodeBridge(const uint8_t *, const Frame *, const Method *, Man…
29 extern "C" void InterpreterToCompiledCodeBridgeDyn(const uint8_t *, const Frame *, const Method *, …
30 extern "C" uint64_t InvokeCompiledCodeWithArgArray(const int64_t *, const Frame *, const Method *, …
31 …nt64_t InvokeCompiledCodeWithArgArrayDyn(const uint64_t *, uint32_t, const Frame *, const Method *,
41 PANDA_PUBLIC_API const void *GetCompiledCodeToInterpreterBridge(const Method *method);
/arkcompiler/runtime_core/static_core/runtime/include/
Dclass.h171 void SetMethods(Span<Method> methods, uint32_t numVmethods, uint32_t numSmethods) in SetMethods()
179 Method *GetRawFirstMethodAddr() const in GetRawFirstMethodAddr()
184 Span<Method> GetMethods() const in GetMethods()
189 Span<Method> GetMethodsWithCopied() const in GetMethodsWithCopied()
194 Span<Method> GetStaticMethods() const in GetStaticMethods()
199 Span<Method> GetVirtualMethods() const in GetVirtualMethods()
204 Span<Method> GetCopiedMethods() const in GetCopiedMethods()
206 Span<Method> res {methods_, numMethods_ + numCopiedMethods_}; in GetCopiedMethods()
232 Span<Method *> GetVTable();
234 Span<Method *const> GetVTable() const;
[all …]
Dcompiler_interface.h39 explicit CompilerTask(Method *method = nullptr, bool isOsr = false, PandaVM *vm = nullptr)
61 Method *GetMethod() const in GetMethod()
81 Method *method_ {nullptr};
86 class Method; variable
93 … ExecState(const uint8_t *pc, Frame *frame, Method *callee, size_t numArgs, const bool *spFlag) in ExecState()
158 Method *GetCalleeMethod() in GetCalleeMethod()
201 Method *calleeMethod_;
212 …virtual bool CompileMethod(Method *method, uintptr_t bytecodeOffset, bool osr, coretypes::TaggedVa…
222 virtual void *GetOsrCode(const Method *method) = 0;
224 virtual void SetOsrCode(const Method *method, void *ptr) = 0;
[all …]
Dclass-inl.h34 bool operator()(const Method &m, const panda_file::File::StringData &name) const in operator()
53 using MethodNameComp = NameComp<Method>;
54 using MethodIdComp = EntityIdComp<Method>;
261 inline Span<Method> Class::GetMethods() const in GetMethods()
278 inline Method *Class::FindDirectMethod(Key key, const Pred &...preds) const in FindDirectMethod()
314 inline Method *Class::FindClassMethod(Key key, const Pred &...preds) const in FindClassMethod()
333 inline Method *Class::FindInterfaceMethod(Key key, const Pred &...preds) const in FindInterfaceMethod()
358 … key, [&](const Method &method) { return method.IsPublic() && PredComp(method, preds...); }); in FindInterfaceMethod()
364 inline Method *Class::GetVirtualInterfaceMethod(panda_file::File::EntityId id) const in GetVirtualInterfaceMethod()
369 inline Method *Class::GetStaticInterfaceMethod(panda_file::File::EntityId id) const in GetStaticInterfaceMethod()
[all …]
Dvtable_builder.h32 bool IsMaxSpecificMethod(const Class *iface, const Method &method, size_t startindex, const ITable …
53 … explicit MethodInfo(Method *method, size_t index = 0, bool isBase = false, bool needsCopy = false)
94 const Method::ProtoId &GetProtoId() const in GetProtoId()
99 Method *GetMethod() const in GetMethod()
170 Method *method_ {nullptr};
175 Method::ProtoId proto_;
220 Method *method = method_info.GetMethod(); in UpdateClass()
266 CopiedMethod(Method *cpMethod, bool cpDefaultConflict, bool cpDefaultAbstract) in CopiedMethod()
271 Method *method;
285 virtual void Build(Span<Method> methods, Class *baseClass, ITable itable, bool isInterface) = 0;
[all …]
/arkcompiler/runtime_core/static_core/runtime/tooling/sampler/
Dstack_walker_base.h73 Method *GetMethod() in GetMethod()
79 const Method *GetMethod() const in GetMethod()
103 static Method *GetMethodFromBoundary(void *ptr) in GetMethodFromBoundary()
106 return *(reinterpret_cast<Method **>(ptr) + BoundaryFrame<KIND>::METHOD_OFFSET); in GetMethodFromBoundary()
110 static const Method *GetMethodFromBoundary(const void *ptr) in GetMethodFromBoundary()
113 return *(reinterpret_cast<Method *const *>(ptr) + BoundaryFrame<KIND>::METHOD_OFFSET); in GetMethodFromBoundary()
125 static bool IsMethodInBoundaryFrame(Method *method) in IsMethodInBoundaryFrame()
130 static bool IsMethodInI2CFrame(Method *method) in IsMethodInI2CFrame()
135 static bool IsMethodInC2IFrame(Method *method) in IsMethodInC2IFrame()
140 static bool IsMethodInBPFrame(Method *method) in IsMethodInBPFrame()
/arkcompiler/runtime_core/static_core/verification/config/context/
Dcontext.h64 Synchronized<PandaUnorderedMap<Method::UniqId, PandaUnorderedSet<uint32_t>>> breakpoint;
70 …std::array<Synchronized<PandaUnorderedSet<Method::UniqId>>, static_cast<size_t>(WhitelistKind::LAS…
82 void AddMethod(const Method &method, bool isDebug);
84 bool SkipVerification(Method::UniqId id) const in SkipVerification()
89 bool SkipVerificationOfCall(Method::UniqId id) const in SkipVerificationOfCall()
96 void InsertBreakpoints(PandaString const &methodName, Method::UniqId id);
98 …void InsertBreakpoints([[maybe_unused]] PandaString const &methodName, [[maybe_unused]] Method::Un…
101 void InsertIntoWhitelist(const PandaString &name, bool isClassName, Method::UniqId id);
/arkcompiler/runtime_core/static_core/runtime/interpreter/
Druntime_interface.h40 static Method *ResolveMethod(ManagedThread *thread, const Method &caller, BytecodeId id) in ResolveMethod()
57 static const uint8_t *GetMethodName(const Method *caller, BytecodeId methodId) in GetMethodName()
65 static Class *GetMethodClass(const Method *caller, BytecodeId methodId) in GetMethodClass()
76 static uint32_t GetMethodArgumentsCount(Method *caller, BytecodeId methodId) in GetMethodArgumentsCount()
85 static Field *ResolveField(ManagedThread *thread, const Method &caller, BytecodeId id) in ResolveField()
103 static Class *ResolveClass(ManagedThread *thread, const Method &caller, BytecodeId id) in ResolveClass()
123 static coretypes::Array *ResolveLiteralArray(PandaVM *vm, const Method &caller, BytecodeId id) in ResolveLiteralArray()
156 static Value InvokeMethod(ManagedThread *thread, Method *method, Value *args) in InvokeMethod()
161 static uint32_t FindCatchBlock(const Method &method, ObjectHeader *exception, uint32_t pc) in FindCatchBlock()
191 static void ThrowAbstractMethodError(Method *method) in ThrowAbstractMethodError()
[all …]
/arkcompiler/runtime_core/static_core/irtoc/scripts/
Dtests.irt146 res := Call(n).Method("TestCall").u32
148 res := Call(res).Method("TestCall").u32
154 fres := Call(f0).Method("IncrementFloat").f64
155 fres := Add(fres, Call(f1).Method("IncrementFloat").f64).f64
156 fres := Add(fres, Call(f2).Method("IncrementFloat").f64).f64
157 fres := Add(fres, Call(f3).Method("IncrementFloat").f64).f64
158 fres := Add(fres, Call(f4).Method("IncrementFloat").f64).f64
159 ares := Call(a0).Method("IncrementInt").word
160 ares := Add(ares, Call(a1).Method("IncrementInt").word).word
161 ares := Add(ares, Call(a2).Method("IncrementInt").word).word
[all …]
/arkcompiler/runtime_core/static_core/runtime/tests/tooling/
Dapi_test.h23 using BreakpointCallback = std::function<bool(PtThread, Method *, const PtLocation &)>;
27 …std::function<bool(PtThread, Method *, const PtLocation &, ObjectHeader *, Method *, const PtLocat…
28 using ExceptionCatchCallback = std::function<bool(PtThread, Method *, const PtLocation &, ObjectHea…
29 using PropertyAccessCallback = std::function<bool(PtThread, Method *, const PtLocation &, ObjectHea…
31 …std::function<bool(PtThread, Method *, const PtLocation &, ObjectHeader *, PtProperty, VRegValue)>;
32 using FramePopCallback = std::function<bool(PtThread, Method *, bool)>;
36 using MethodEntryCallback = std::function<bool(PtThread, Method *)>;
37 using MethodExitCallback = std::function<bool(PtThread, Method *, bool, VRegValue)>;
38 using SingleStepCallback = std::function<bool(PtThread, Method *, const PtLocation &)>;
/arkcompiler/runtime_core/static_core/runtime/tests/interpreter/
Dtest_runtime_interface.h119 using InvokeMethodHandler = std::function<Value(ManagedThread *, Method *, Value *)>;
148 Method *method {};
162 …es::Array *ResolveLiteralArray([[maybe_unused]] PandaVM *vm, [[maybe_unused]] const Method &caller, in ResolveLiteralArray()
170 …static Method *ResolveMethod([[maybe_unused]] ManagedThread *thread, [[maybe_unused]] const Method in ResolveMethod()
177 … Field *ResolveField([[maybe_unused]] ManagedThread *thread, [[maybe_unused]] const Method &caller, in ResolveField()
185 … Class *ResolveClass([[maybe_unused]] ManagedThread *thread, [[maybe_unused]] const Method &caller, in ResolveClass()
192 …static uint32_t FindCatchBlock([[maybe_unused]] const Method &method, [[maybe_unused]] ObjectHeade… in FindCatchBlock()
218 static void JITCompileMethod(Method *method) in JITCompileMethod()
233 static void SetupResolvedMethod(Method *method) in SetupResolvedMethod()
299 static Value InvokeMethod(ManagedThread *thread, Method *method, Value *args) in InvokeMethod()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/js_proxy/
Djs_proxy.cpp23 extern "C" void JSProxyCallBridge(Method *method, ...);
52 std::unique_ptr<JSProxy> JSProxy::Create(EtsClass *etsClass, Span<Method *> proxyMethods) in Create()
57 auto methodsBuffer = new uint8_t[proxyMethods.size() * sizeof(Method)]; in Create()
58 Span<Method> implMethods {reinterpret_cast<Method *>(methodsBuffer), proxyMethods.size()}; in Create()
62 auto newMethod = new (&implMethods[i]) Method(m); in Create()
83 jsProxy->proxyMethods_.reset(reinterpret_cast<Method *>(methodsBuffer)); in Create()
/arkcompiler/runtime_core/static_core/verification/
Dplugins.h30 virtual CheckResult const &CheckFieldAccessViolation(Field const *field, Method const *from,
33 virtual CheckResult const &CheckMethodAccessViolation(Method const *method, Method const *from,
36 virtual CheckResult const &CheckClassAccessViolation(Class const *klass, Method const *from,

12345678910>>...17