| /arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/types/ |
| D | ets_method_test.cpp | 108 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/compiler/optimizer/ir_builder/ |
| D | inst_builder-inl.h | 29 … methodId_ = GetRuntime()->ResolveMethodIndex(Builder()->GetMethod(), bcInst->GetId(0).AsIndex()); in BuildCallHelper() 31 hasImplicitArg_ = !GetRuntime()->IsMethodStatic(Builder()->GetMethod(), methodId_); in BuildCallHelper() 32 method_ = GetRuntime()->GetMethodById(Builder()->GetMethod(), methodId_); in BuildCallHelper() 34 if (GetRuntime()->IsMethodIntrinsic(Builder()->GetMethod(), methodId_)) { in BuildCallHelper() 46 … classId = GetRuntime()->GetClassIdWithinFile(GetMethod(), GetRuntime()->GetClass(method_)); in BuildCallHelper() 48 classId = GetRuntime()->GetClassIdForMethod(GetMethod(), methodId_); in BuildCallHelper() 138 … TypeIdMixin {classId, GetGraph()->GetMethod()}, in BuildInitClassInstForCallStatic() 149 …if (method_ == nullptr || (GetRuntime()->IsMethodStatic(GetMethod(), methodId_) && classId == 0) || in BuildCallStaticInst() 158 GetRuntime()->GetUnresolvedTypes()->AddTableSlot(GetMethod(), methodId_, SLOT_KIND); in BuildCallStaticInst() 175 ASSERT(!GetRuntime()->IsMethodStatic(Builder()->GetMethod(), methodId_)); in BuildCallVirtualInst() [all …]
|
| D | inst_builder.cpp | 33 instructionsBuf_(GetGraph()->GetRuntime()->GetMethodCode(GetGraph()->GetMethod())), in InstBuilder() 143 if (GetRuntime()->GetMethodReturnType(GetMethod()) == DataType::REFERENCE) { in Prepare() 146 auto numArgs = GetRuntime()->GetMethodTotalArgumentsCount(GetMethod()); in Prepare() 147 bool isStatic = GetRuntime()->IsMethodStatic(GetMethod()); in Prepare() 152 auto regNum = GetRuntime()->GetMethodRegistersCount(GetMethod()) + i; in Prepare() 169 methodProfile_ = GetRuntime()->GetMethodProfile(GetMethod(), !GetGraph()->IsAotMode()); in Prepare() 543 inst = GetGraph()->CreateInstSaveState(pc, GetMethod(), callerInst_, inliningDepth_); in CreateSaveState() 545 inst = GetGraph()->CreateInstSaveStateOsr(pc, GetMethod(), callerInst_, inliningDepth_); in CreateSaveState() 547 inst = GetGraph()->CreateInstSafePoint(pc, GetMethod(), callerInst_, inliningDepth_); in CreateSaveState() 550 … inst = GetGraph()->CreateInstSaveStateDeoptimize(pc, GetMethod(), callerInst_, inliningDepth_); in CreateSaveState() [all …]
|
| D | ir_builder.cpp | 35 … << GetGraph()->GetRuntime()->GetClassNameFromMethod(GetMethod()) << "." in RunImpl() 36 << GetGraph()->GetRuntime()->GetMethodName(GetMethod()) in RunImpl() 37 … << "(args=" << GetGraph()->GetRuntime()->GetMethodTotalArgumentsCount(GetMethod()) in RunImpl() 38 … << ", regs=" << GetGraph()->GetRuntime()->GetMethodRegistersCount(GetMethod()) in RunImpl() 41 auto instructionsBuf = GetGraph()->GetRuntime()->GetMethodCode(GetMethod()); in RunImpl() 42 …uctions pbcInstructions(instructionsBuf, GetGraph()->GetRuntime()->GetMethodCodeSize(GetMethod())); in RunImpl() 43 size_t vregsCount = GetGraph()->GetRuntime()->GetMethodRegistersCount(GetMethod()) + in RunImpl() 44 GetGraph()->GetRuntime()->GetMethodTotalArgumentsCount(GetMethod()) + 1; in RunImpl() 75 auto instructionsBuf = GetGraph()->GetRuntime()->GetMethodCode(GetMethod()); in BuildIr() 76 InstBuilder instBuilder(GetGraph(), GetMethod(), callerInst_, inliningDepth_); in BuildIr() [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/interpreter/templates/ |
| D | interpreter-inl_gen.h.erb | 56 …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/static_core/plugins/ets/runtime/interop_js/ets_proxy/ |
| D | ets_method_wrapper.h | 41 static EtsMethodWrapper *GetMethod(InteropCtx *ctx, EtsMethodSet *etsMethodSet); 58 return etsMethodSet_->GetMethod(parametersNum); in GetEtsMethod() 61 Method *GetMethod(uint32_t parametersNum) const in GetMethod() function 63 EtsMethod *const etsMethod = etsMethodSet_->GetMethod(parametersNum); in GetMethod() 76 EtsMethodWrapper *wrapper = EtsMethodWrapper::GetMethod(ctx, lazyLink.GetUnresolved()); in ResolveLazyLink()
|
| /arkcompiler/runtime_core/static_core/runtime/ |
| D | deoptimization.cpp | 91 if (stack.IsCFrame() && stack.GetMethod() == method) { in InvalidateCompiledEntryPoint() 97 … << "[CHA] Set ShouldDeoptimize for method: " << cframe.GetMethod()->GetFullName(); in InvalidateCompiledEntryPoint() 100 … << "[IC] Set ShouldDeoptimize for method: " << cframe.GetMethod()->GetFullName(); in InvalidateCompiledEntryPoint() 128 EVENT_DEOPTIMIZATION(std::string(cframe.GetMethod()->GetFullName()), in InvalidateCompiledEntryPoint() 129 … pc - stack->GetMethod()->GetInstructions(), events::DeoptimizationAfter::CFRAME); in InvalidateCompiledEntryPoint() 149 EVENT_DEOPTIMIZATION(std::string(cframe.GetMethod()->GetFullName()), in InvalidateCompiledEntryPoint() 150 pc - stack->GetMethod()->GetInstructions(), in InvalidateCompiledEntryPoint() 177 auto method = stack->GetMethod(); in InvalidateCompiledEntryPoint() 205 …EVENT_METHOD_EXIT(last_iframe->GetMethod()->GetFullName() + "(deopt)", events::MethodExitKind::INL… in InvalidateCompiledEntryPoint() 211 …EVENT_METHOD_EXIT(last_iframe->GetMethod()->GetFullName() + "(deopt)", events::MethodExitKind::COM… in InvalidateCompiledEntryPoint() [all …]
|
| D | compiler_queue_interface.h | 32 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()
|
| D | compiler_queue_counter_priority.h | 33 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()
|
| D | osr.cpp | 57 …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() 141 cframe.SetMethod(iframe->GetMethod()); in PrepareOsrEntry() 194 panda_file::ShortyIterator it(frame->GetMethod()->GetShorty()); in SetOsrResult() 239 auto *method {frame->GetMethod()}; in GetStackParamsSize()
|
| /arkcompiler/runtime_core/static_core/runtime/tooling/sampler/ |
| D | stack_walker_base.h | 73 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/ets_runtime/ecmascript/compiler/ |
| D | jit_compilation_env.cpp | 28 Method *method = Method::Cast(jsFunction->GetMethod().GetTaggedObject()); in JitCompilationEnv() 74 Method *method = Method::Cast(jsFunction_->GetMethod().GetTaggedObject()); in FindConstpool() 86 Method *method = Method::Cast(jsFunction_->GetMethod().GetTaggedObject()); in FindConstpool() 107 Method *method = Method::Cast(jsFunction_->GetMethod().GetTaggedObject()); in FindOrCreateUnsharedConstpool() 125 Method *currMethod = Method::Cast(jsFunction_->GetMethod().GetTaggedObject()); in GetConstantPoolByMethodOffset() 131 constpool = Method::Cast(calleeFunc->GetMethod())->GetConstantPool(); in GetConstantPoolByMethodOffset() 188 Method *currMethod = Method::Cast(jsFunction_->GetMethod().GetTaggedObject()); in GetJsFunctionByMethodOffset() 207 if (Method::Cast(currFunc->GetMethod())->GetMethodId().GetOffset() != callerOffset) { in GetJsFunctionByMethodOffset() 229 if (Method::Cast(currFunc->GetMethod())->GetMethodId().GetOffset() != methodOffset) { in GetJsFunctionByMethodOffset()
|
| /arkcompiler/toolchain/tooling/agent/ |
| D | page_impl.cpp | 24 Method method = GetMethodEnum(request.GetMethod()); in Dispatch() 25 LOG_DEBUGGER(INFO) << "dispatch [" << request.GetMethod() << "] to PageImpl"; in Dispatch() 31 SendResponse(request, DispatchResponse::Fail("Unknown method: " + request.GetMethod())); in Dispatch()
|
| D | target_impl.cpp | 24 Method method = GetMethodEnum(request.GetMethod()); in Dispatch() 25 LOG_DEBUGGER(INFO) << "dispatch [" << request.GetMethod() << "] to TargetImpl"; in Dispatch() 31 SendResponse(request, DispatchResponse::Fail("Unknown method: " + request.GetMethod())); in Dispatch()
|
| D | dom_impl.cpp | 24 Method method = GetMethodEnum(request.GetMethod()); in Dispatch() 25 LOG_DEBUGGER(INFO) << "dispatch [" << request.GetMethod() << "] to DomImpl"; in Dispatch() 31 SendResponse(request, DispatchResponse::Fail("Unknown method: " + request.GetMethod())); in Dispatch()
|
| D | css_impl.cpp | 24 Method method = GetMethodEnum(request.GetMethod()); in Dispatch() 25 LOG_DEBUGGER(INFO) << "dispatch [" << request.GetMethod() << "] to CssImpl"; in Dispatch() 31 SendResponse(request, DispatchResponse::Fail("Unknown method: " + request.GetMethod())); in Dispatch()
|
| D | overlay_impl.cpp | 26 Method method = GetMethodEnum(request.GetMethod()); in Dispatch() 27 LOG_DEBUGGER(INFO) << "dispatch [" << request.GetMethod() << "] to OverlayImpl"; in Dispatch() 33 SendResponse(request, DispatchResponse::Fail("Unknown method: " + request.GetMethod())); in Dispatch()
|
| /arkcompiler/runtime_core/compiler/optimizer/ir_builder/ |
| D | inst_builder-inl.h | 27 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()
|
| D | ir_builder.cpp | 24 … << GetGraph()->GetRuntime()->GetClassNameFromMethod(GetMethod()) << "." in RunImpl() 25 << GetGraph()->GetRuntime()->GetMethodName(GetMethod()) in RunImpl() 26 … << "(args=" << GetGraph()->GetRuntime()->GetMethodTotalArgumentsCount(GetMethod()) in RunImpl() 27 … << ", regs=" << GetGraph()->GetRuntime()->GetMethodRegistersCount(GetMethod()) in RunImpl() 30 auto instructions_buf = GetGraph()->GetRuntime()->GetMethodCode(GetMethod()); in RunImpl() 31 …tions pbc_instructions(instructions_buf, GetGraph()->GetRuntime()->GetMethodCodeSize(GetMethod())); in RunImpl() 32 size_t vregs_count = GetGraph()->GetRuntime()->GetMethodRegistersCount(GetMethod()) + in RunImpl() 33 GetGraph()->GetRuntime()->GetMethodTotalArgumentsCount(GetMethod()) + 1; in RunImpl() 42 InstBuilder inst_builder(GetGraph(), GetMethod()); in RunImpl() 93 …e = static_cast<panda_file::File *>(GetGraph()->GetRuntime()->GetBinaryFileForMethod(GetMethod())); in CheckMethodLimitations() [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/tests/ |
| D | compiler_queue_test.cpp | 94 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 …]
|
| D | osr_code_test.cpp | 40 Method *GetMethod(Class *klass, size_t num); 57 Method *OsrCodeTest::GetMethod(Class *klass, size_t num) in GetMethod() function in ark::test::OsrCodeTest 99 Method *method = GetMethod(klass, i); in CompileMethods() 105 Method *method = GetMethod(klass, i); in CompileMethods()
|
| D | compilation_status_test.cpp | 41 Method *GetMethod(Class *klass, size_t num); 57 Method *CompilationStatusTest::GetMethod(Class *klass, size_t num) in GetMethod() function in ark::test::CompilationStatusTest 95 Method *method = GetMethod(klass, 0); in TEST_F()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/compiler/optimizer/ir_builder/ |
| D | ets_inst_builder.cpp | 38 …:REFERENCE, pc, TypeIdMixin {TypeIdMixin::MEM_PROMISE_CLASS_ID, GetGraph()->GetMethod()}, nullptr); in BuildLaunch() 65 auto fieldId = runtime->ResolveFieldIndex(GetMethod(), fieldIndex); in BuildLdObjByName() 67 type = runtime->GetFieldTypeById(GetMethod(), fieldId); in BuildLdObjByName() 110 intrinsic->SetMethod(GetMethod()); in BuildLdObjByName() 169 auto fieldId = runtime->ResolveFieldIndex(GetMethod(), fieldIndex); in BuildStObjByName() 171 type = runtime->GetFieldTypeById(GetMethod(), fieldId); in BuildStObjByName() 186 intrinsic->SetMethod(GetMethod()); in BuildStObjByName()
|
| /arkcompiler/runtime_core/static_core/runtime/include/ |
| D | vtable_builder_variance-inl.h | 96 ASSERT(itinfo->GetMethod()->GetClass() != info->GetMethod()->GetClass()); in ScanConflictingDefaultMethods() 107 if (itinfo->GetMethod()->GetClass() == info->GetMethod()->GetClass()) { in ScanConflictingDefaultMethods()
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/ |
| D | pass_manager.cpp | 90 ssFilename << GetGraph()->GetRuntime()->GetClassNameFromMethod(GetGraph()->GetMethod()) << "_" in GetFileName() 91 << GetGraph()->GetRuntime()->GetMethodName(GetGraph()->GetMethod()); in GetFileName() 137 …strm << " name \"" << GetGraph()->GetRuntime()->GetClassNameFromMethod(GetGraph()->GetMethod()) <… in InitialDumpVisualizerGraph() 138 << GetGraph()->GetRuntime()->GetMethodName(GetGraph()->GetMethod()) << "\"\n"; in InitialDumpVisualizerGraph() 139 …strm << " method \"" << GetGraph()->GetRuntime()->GetClassNameFromMethod(GetGraph()->GetMethod())… in InitialDumpVisualizerGraph() 140 << GetGraph()->GetRuntime()->GetMethodName(GetGraph()->GetMethod()) << "\"\n"; in InitialDumpVisualizerGraph()
|