Home
last modified time | relevance | path

Searched refs:GetMethod (Results 1 – 25 of 251) sorted by relevance

1234567891011

/arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/types/
Dets_method_test.cpp108 EtsMethod *fooMethod = klass->GetMethod("foo"); in TEST_F()
110 EtsMethod *gooMethod = klass->GetMethod("goo"); in TEST_F()
112 EtsMethod *sumMethod = klass->GetMethod("sum"); in TEST_F()
146 EtsMethod *foo1Method = klass->GetMethod("foo1"); in TEST_F()
148 EtsMethod *foo2Method = klass->GetMethod("foo2"); in TEST_F()
150 EtsMethod *foo3Method = klass->GetMethod("foo3"); in TEST_F()
180 EtsMethod *fooMethod = klass->GetMethod("foo"); in TEST_F()
223 currentMethod = klass->GetMethod((fooName + std::to_string(i)).data()); in TEST_F()
255 EtsMethod *foo1Method = klass->GetMethod("foo1"); in TEST_F()
257 EtsMethod *foo2Method = klass->GetMethod("foo2"); in TEST_F()
[all …]
/arkcompiler/runtime_core/static_core/runtime/
Ddeoptimization.cpp87 if (stack.IsCFrame() && stack.GetMethod() == method) { in InvalidateCompiledEntryPoint()
93 … << "[CHA] Set ShouldDeoptimize for method: " << cframe.GetMethod()->GetFullName(); in InvalidateCompiledEntryPoint()
96 … << "[IC] Set ShouldDeoptimize for method: " << cframe.GetMethod()->GetFullName(); in InvalidateCompiledEntryPoint()
127 auto method = stack->GetMethod(); in InvalidateCompiledEntryPoint()
159 …EVENT_METHOD_EXIT(last_iframe->GetMethod()->GetFullName() + "(deopt)", events::MethodExitKind::INL… in InvalidateCompiledEntryPoint()
165 …EVENT_METHOD_EXIT(last_iframe->GetMethod()->GetFullName() + "(deopt)", events::MethodExitKind::COM… in InvalidateCompiledEntryPoint()
183 EVENT_DEOPTIMIZATION(std::string(cframe.GetMethod()->GetFullName()), in InvalidateCompiledEntryPoint()
184 … pc - stack->GetMethod()->GetInstructions(), events::DeoptimizationAfter::CFRAME); in InvalidateCompiledEntryPoint()
204 EVENT_DEOPTIMIZATION(std::string(cframe.GetMethod()->GetFullName()), in InvalidateCompiledEntryPoint()
205 pc - stack->GetMethod()->GetInstructions(), in InvalidateCompiledEntryPoint()
[all …]
Dcompiler_queue_interface.h32 ASSERT(ctx.GetMethod() != nullptr); in GetTaskDescription()
33 auto name = reinterpret_cast<const char *>(ctx.GetMethod()->GetName().data); in GetTaskDescription()
35 << ", hotness counter: " << ctx.GetMethod()->GetHotnessCounter() << ")"; in GetTaskDescription()
Dcompiler_queue_counter_priority.h33 counter_ = context_.GetMethod()->GetHotnessCounter(); in CompilationQueueElement()
111 ctx.GetMethod()->ResetHotnessCounter();
112 ctx.GetMethod()->AtomicSetCompilationStatus(Method::WAITING,
143 element->UpdateCounter(element->GetContext().GetMethod()->GetHotnessCounter()); in UpdateCounterAndCheck()
163 … return strcmp(reinterpret_cast<const char *>(a->GetContext().GetMethod()->GetName().data), in operator()
164 … reinterpret_cast<const char *>(b->GetContext().GetMethod()->GetName().data)) > 0; in operator()
184 ctx.GetMethod()->AtomicSetCompilationStatus(Method::WAITING, in UpdateQueue()
Dosr.cpp57 …EVENT_OSR_ENTRY(std::string(frame->GetMethod()->GetFullName()), loopHeadBc, osrKind, events::OsrEn… in WriteOsrEventError()
67 …LOG(DEBUG, INTEROP) << "OSR entry in method '" << stack.GetMethod()->GetFullName() << "': " << osr… in OsrEntry()
80 EVENT_OSR_ENTRY(std::string(frame->GetMethod()->GetFullName()), loopHeadBc, in OsrEntry()
85 … if (frame->IsDynamic() && frame->GetNumActualArgs() < frame->GetMethod()->GetNumArgs()) { in OsrEntry()
96 EVENT_OSR_ENTRY(std::string(frame->GetMethod()->GetFullName()), loopHeadBc, in OsrEntry()
103 …EVENT_OSR_ENTRY(std::string(frame->GetMethod()->GetFullName()), loopHeadBc, events::OsrEntryKind::… in OsrEntry()
122 cframe.SetMethod(iframe->GetMethod()); in PrepareOsrEntry()
186 panda_file::ShortyIterator it(frame->GetMethod()->GetShorty()); in SetOsrResult()
231 auto *method {frame->GetMethod()}; in GetStackParamsSize()
Dstack_walker.cpp77 Method *StackWalker::GetMethod() in GetMethod() function in panda::StackWalker
81 return GetIFrame()->GetMethod(); in GetMethod()
90 auto methodVariant = codeInfo_.GetMethod(stackmap_, inlineDepth_); in GetMethod()
92 return Runtime::GetCurrent()->GetClassLinker()->GetMethod( in GetMethod()
93 … *cframe.GetMethod(), panda_file::File::EntityId(std::get<uint32_t>(methodVariant))); in GetMethod()
98 return cframe.GetMethod(); in GetMethod()
120 if (cframe.GetMethod() == nullptr) { in CreateCFrame()
132 codeEntry = Thread::GetCurrent()->GetVM()->GetCompiler()->GetOsrCode(cframe.GetMethod()); in CreateCFrame()
134 codeEntry = cframe.GetMethod()->GetCompiledEntryPoint(); in CreateCFrame()
148 … "Stackmap not found " << cframe.GetMethod()->GetFullName() << ": npc=0x" << std::hex << npc in CreateCFrame()
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir_builder/
Dinst_builder-inl.h27 auto methodId = GetRuntime()->ResolveMethodIndex(GetMethod(), bcInst->GetId(0).AsIndex()); in BuildCall()
28 if (GetRuntime()->IsMethodIntrinsic(GetMethod(), methodId)) { in BuildCall()
34 auto hasImplicitArg = !GetRuntime()->IsMethodStatic(GetMethod(), methodId); in BuildCall()
35 auto method = GetRuntime()->GetMethodById(GetMethod(), methodId); in BuildCall()
44 … classId = GetRuntime()->GetClassIdWithinFile(GetMethod(), GetRuntime()->GetClass(method)); in BuildCall()
46 classId = GetRuntime()->GetClassIdForMethod(GetMethod(), methodId); in BuildCall()
143 …s = graph_->CreateInstInitClass(DataType::NO_TYPE, pc, saveState, classId, GetGraph()->GetMethod(), in BuildInitClassInstForCallStatic()
156 …if (method == nullptr || (runtime_->IsMethodStatic(GetMethod(), methodId) && classId == 0) || Forc… in BuildCallStaticInst()
166 runtime_->GetUnresolvedTypes()->AddTableSlot(GetMethod(), methodId, SLOT_KIND); in BuildCallStaticInst()
185 ASSERT(!runtime_->IsMethodStatic(GetMethod(), methodId)); in BuildCallVirtualInst()
[all …]
Dinst_builder.cpp77 if (GetRuntime()->GetMethodReturnType(GetMethod()) == DataType::REFERENCE) { in Prepare()
80 auto numArgs = GetRuntime()->GetMethodTotalArgumentsCount(GetMethod()); in Prepare()
81 bool isStatic = GetRuntime()->IsMethodStatic(GetMethod()); in Prepare()
86 auto regNum = GetRuntime()->GetMethodRegistersCount(GetMethod()) + i; in Prepare()
103 methodProfile_ = GetRuntime()->GetMethodProfile(GetMethod(), !GetGraph()->IsAotMode()); in Prepare()
351 inst = GetGraph()->CreateInstSaveState(pc, GetMethod(), callerInst_, inliningDepth_); in CreateSaveState()
353 inst = GetGraph()->CreateInstSaveStateOsr(pc, GetMethod(), callerInst_, inliningDepth_); in CreateSaveState()
355 inst = GetGraph()->CreateInstSafePoint(pc, GetMethod(), callerInst_, inliningDepth_); in CreateSaveState()
358 … inst = GetGraph()->CreateInstSaveStateDeoptimize(pc, GetMethod(), callerInst_, inliningDepth_); in CreateSaveState()
394 auto classPtr = GetRuntime()->ResolveType(GetGraph()->GetMethod(), classId); in CreateLoadAndInitClassGeneric()
[all …]
Dir_builder.cpp30 … << GetGraph()->GetRuntime()->GetClassNameFromMethod(GetMethod()) << "." in RunImpl()
31 << GetGraph()->GetRuntime()->GetMethodName(GetMethod()) in RunImpl()
32 … << "(args=" << GetGraph()->GetRuntime()->GetMethodTotalArgumentsCount(GetMethod()) in RunImpl()
33 … << ", regs=" << GetGraph()->GetRuntime()->GetMethodRegistersCount(GetMethod()) in RunImpl()
36 auto instructionsBuf = GetGraph()->GetRuntime()->GetMethodCode(GetMethod()); in RunImpl()
37 …uctions pbcInstructions(instructionsBuf, GetGraph()->GetRuntime()->GetMethodCodeSize(GetMethod())); in RunImpl()
38 size_t vregsCount = GetGraph()->GetRuntime()->GetMethodRegistersCount(GetMethod()) + in RunImpl()
39 GetGraph()->GetRuntime()->GetMethodTotalArgumentsCount(GetMethod()) + 1; in RunImpl()
48 InstBuilder instBuilder(GetGraph(), GetMethod(), callerInst_, inliningDepth_); in RunImpl()
61 if (GetGraph()->GetRuntime()->IsMemoryBarrierRequired(GetMethod())) { in RunImpl()
[all …]
/arkcompiler/runtime_core/static_core/runtime/tooling/sampler/
Dstack_walker_base.h73 Method *GetMethod() in GetMethod() function
76 return IsCFrame() ? GetCFrame().GetMethod() : GetIFrame()->GetMethod(); in GetMethod()
79 const Method *GetMethod() const in GetMethod() function
82 return IsCFrame() ? GetCFrame().GetMethod() : GetIFrame()->GetMethod(); in GetMethod()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/
Dets_vtable_builder.h53 ASSERT(info1.GetMethod() != nullptr); in operator()
54 ASSERT(info2.GetMethod() != nullptr); in operator()
55 Class *cls1 = info1.GetMethod()->GetClass(); in operator()
56 Class *cls2 = info2.GetMethod()->GetClass(); in operator()
/arkcompiler/runtime_core/static_core/plugins/ets/compiler/optimizer/ir_builder/
Dets_inst_builder.cpp36 GetGraph()->GetMethod(), nullptr); in BuildLaunch()
60 auto fieldId = runtime->ResolveFieldIndex(GetMethod(), fieldIndex); in BuildLdObjByName()
62 type = runtime->GetFieldTypeById(GetMethod(), fieldId); in BuildLdObjByName()
105 intrinsic->SetMethod(GetMethod()); in BuildLdObjByName()
125 auto fieldId = runtime->ResolveFieldIndex(GetMethod(), fieldIndex); in BuildStObjByName()
127 type = runtime->GetFieldTypeById(GetMethod(), fieldId); in BuildStObjByName()
176 intrinsic->SetMethod(GetMethod()); in BuildStObjByName()
/arkcompiler/runtime_core/static_core/runtime/interpreter/templates/
Dinterpreter-inl_gen.h.erb56 …EVENT_METHOD_ENTER(frame->GetMethod()->GetFullName(), events::MethodEnterKind::INTERP, thread->Rec…
60 …EVENT_METHOD_EXIT(frame->GetMethod()->GetFullName(), events::MethodExitKind::INTERP, thread->Recor…
124 if (frame->GetMethod()->GetPandaFile()->GetHeader()->quickenedFlag) {
125 switch (frame->GetMethod()->GetClass()->GetSourceLang()) {
160 …ASSERT(frame->GetMethod()->GetPandaFile()->GetHeader()->quickenedFlag || state.IsPrimaryOpcodeVali…
187 ASSERT(frame->GetMethod()->GetPandaFile()->GetHeader()->quickenedFlag
195 ASSERT(frame->GetMethod()->GetPandaFile()->GetHeader()->quickenedFlag
199 ASSERT(frame->GetMethod()->GetPandaFile()->GetHeader()->quickenedFlag
247 ASSERT(frame->GetMethod()->GetPandaFile()->GetHeader()->quickenedFlag
255 ASSERT(frame->GetMethod()->GetPandaFile()->GetHeader()->quickenedFlag
[all …]
/arkcompiler/runtime_core/compiler/optimizer/ir_builder/
Dinst_builder-inl.h27 auto method = GetGraph()->GetMethod(); in BuildLoadFromPool()
34 …type_id = GetRuntime()->ResolveOffsetByIndex(GetGraph()->GetMethod(), bc_inst->GetId(0).AsIndex()); in BuildLoadFromPool()
52 auto language = GetRuntime()->GetMethodSourceLanguage(GetMethod()); in BuildCastToAnyString()
78 auto language = GetRuntime()->GetMethodSourceLanguage(GetMethod()); in BuildCastToAnyNumber()
Dir_builder.cpp33 … << GetGraph()->GetRuntime()->GetClassNameFromMethod(GetMethod()) << "." in RunImpl()
34 << GetGraph()->GetRuntime()->GetMethodName(GetMethod()) in RunImpl()
35 … << "(args=" << GetGraph()->GetRuntime()->GetMethodTotalArgumentsCount(GetMethod()) in RunImpl()
36 … << ", regs=" << GetGraph()->GetRuntime()->GetMethodRegistersCount(GetMethod()) in RunImpl()
39 auto instructions_buf = GetGraph()->GetRuntime()->GetMethodCode(GetMethod()); in RunImpl()
40 …tions pbc_instructions(instructions_buf, GetGraph()->GetRuntime()->GetMethodCodeSize(GetMethod())); in RunImpl()
41 size_t vregs_count = GetGraph()->GetRuntime()->GetMethodRegistersCount(GetMethod()) + in RunImpl()
42 GetGraph()->GetRuntime()->GetMethodTotalArgumentsCount(GetMethod()) + 1; in RunImpl()
51 InstBuilder inst_builder(GetGraph(), GetMethod()); in RunImpl()
102 …e = static_cast<panda_file::File *>(GetGraph()->GetRuntime()->GetBinaryFileForMethod(GetMethod())); in CheckMethodLimitations()
[all …]
/arkcompiler/runtime_core/static_core/runtime/tests/
Dosr_code_test.cpp40 Method *GetMethod(Class *klass, size_t num);
57 Method *OsrCodeTest::GetMethod(Class *klass, size_t num) in GetMethod() function in panda::test::OsrCodeTest
99 Method *method = GetMethod(klass, i); in CompileMethods()
105 Method *method = GetMethod(klass, i); in CompileMethods()
Dcompiler_queue_test.cpp94 auto method1 = queue->GetTask().GetMethod(); in GetAndCheckMethodsIfExists()
98 auto method2 = queue->GetTask().GetMethod(); in GetAndCheckMethodsIfExists()
103 auto method3 = queue->GetTask().GetMethod(); in GetAndCheckMethodsIfExists()
213 auto method = queue.GetTask().GetMethod(); in TEST_F()
224 method = queue2.GetTask().GetMethod(); in TEST_F()
297 auto method = queue.GetTask().GetMethod(); in TEST_F()
309 queue2.GetTask().GetMethod(); in TEST_F()
310 method = queue2.GetTask().GetMethod(); in TEST_F()
404 auto method = queue.GetTask().GetMethod(); in TEST_F()
418 method = queue2.GetTask().GetMethod(); in TEST_F()
[all …]
Dcompilation_status_test.cpp41 Method *GetMethod(Class *klass, size_t num);
57 Method *CompilationStatusTest::GetMethod(Class *klass, size_t num) in GetMethod() function in panda::test::CompilationStatusTest
95 Method *method = GetMethod(klass, 0); in TEST_F()
Dcompiler_thread_pool.cpp61 Method *GetMethod(Class *klass, size_t num) in GetMethod() function
105 Method *method = GetMethod(klass, i); in CompileMethods()
115 Method *method = GetMethod(klass, i); in CompileMethods()
/arkcompiler/runtime_core/static_core/compiler/optimizer/
Dpass_manager.cpp90 ssFilename << GetGraph()->GetRuntime()->GetClassNameFromMethod(GetGraph()->GetMethod()) << "_" in GetFileName()
91 << GetGraph()->GetRuntime()->GetMethodName(GetGraph()->GetMethod()); in GetFileName()
135 …strm << " name \"" << GetGraph()->GetRuntime()->GetClassNameFromMethod(GetGraph()->GetMethod()) <… in InitialDumpVisualizerGraph()
136 << GetGraph()->GetRuntime()->GetMethodName(GetGraph()->GetMethod()) << "\"\n"; in InitialDumpVisualizerGraph()
137 …strm << " method \"" << GetGraph()->GetRuntime()->GetClassNameFromMethod(GetGraph()->GetMethod())… in InitialDumpVisualizerGraph()
138 << GetGraph()->GetRuntime()->GetMethodName(GetGraph()->GetMethod()) << "\"\n"; in InitialDumpVisualizerGraph()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ets_proxy/
Dets_method_wrapper.h40 static EtsMethodWrapper *GetMethod(InteropCtx *ctx, EtsMethod *etsMethod);
56 Method *GetMethod() const in GetMethod() function
71 EtsMethodWrapper *wrapper = EtsMethodWrapper::GetMethod(ctx, etsMethod); in ResolveLazyLink()
/arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/
Dobject_type_propagation.cpp43 auto klass = self->GetGraph()->GetRuntime()->GetClass(inst->GetMethod(), inst->GetTypeId()); in VisitNewObject()
53 auto klass = self->GetGraph()->GetRuntime()->GetClass(inst->GetMethod(), inst->GetTypeId()); in VisitNewArray()
63 auto klass = self->GetGraph()->GetRuntime()->GetStringClass(inst->GetMethod()); in VisitLoadString()
88 auto method = inst->GetMethod(); in VisitLoadObject()
128 auto method = graph->GetMethod(); in VisitParameter()
/arkcompiler/runtime_core/static_core/runtime/bridge/
Dbridge.cpp70 LOG(DEBUG, INTEROP) << "InvokeInterpreter for method: " << frame->GetMethod()->GetFullName(); in InvokeInterpreter()
91 … LOG(DEBUG, INTEROP) << "InvokeInterpreter for method: " << frame->GetMethod()->GetFullName(); in InvokeInterpreter()
94 pc = frame->GetMethod()->GetInstructions() + frame->GetBytecodeOffset(); in InvokeInterpreter()
/arkcompiler/runtime_core/static_core/compiler/tests/
Dprofiling_runner_test.cpp67 auto method = runner.GetMethod("foo"); in TEST_F()
82 auto method = runner.GetMethod("foo"); in TEST_F()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interpreter/
Dinterpreter-inl.h105 …uto *res = cache->template Get<Field>(this->GetInst().GetAddress(), this->GetFrame()->GetMethod()); in LookupFieldByName()
122 cache->template Set(this->GetInst().GetAddress(), field, this->GetFrame()->GetMethod()); in LookupFieldByName()
131 …to *res = cache->template Get<Method>(this->GetInst().GetAddress(), this->GetFrame()->GetMethod()); in LookupGetterByName()
154 this->GetFrame()->GetMethod()); in LookupGetterByName()
163 …to *res = cache->template Get<Method>(this->GetInst().GetAddress(), this->GetFrame()->GetMethod()); in LookupSetterByName()
185 this->GetFrame()->GetMethod()); in LookupSetterByName()
205 auto caller = this->GetFrame()->GetMethod(); in HandleEtsLdobjName()
247 auto caller = this->GetFrame()->GetMethod(); in HandleEtsLdobjNameWide()
289 auto caller = this->GetFrame()->GetMethod(); in HandleEtsLdobjNameObj()
333 auto caller = this->GetFrame()->GetMethod(); in HandleEtsStobjName()
[all …]

1234567891011