• Home
  • Raw
  • Download

Lines Matching full:method

58     Method::CompilationStage status = task.GetMethod()->GetCompilationStatus();  in Process()
59 if (status == Method::WAITING) { in Process()
61 if (task.GetMethod()->AtomicSetCompilationStatus(Method::WAITING, Method::COMPILATION)) { in Process()
94 compiler::RuntimeInterface::MethodId PandaRuntimeInterface::GetMethodId(MethodPtr method) const in GetMethodId()
96 return MethodCast(method)->GetFileId().GetOffset(); in GetMethodId()
99 compiler::RuntimeInterface::IntrinsicId PandaRuntimeInterface::GetIntrinsicId(MethodPtr method) con… in GetIntrinsicId()
101 return GetIntrinsicEntryPointId(MethodCast(method)->GetIntrinsic()); in GetIntrinsicId()
104 …erface::MethodPtr PandaRuntimeInterface::ResolveVirtualMethod(ClassPtr cls, MethodPtr method) const in ResolveVirtualMethod()
107 ASSERT(method != nullptr); in ResolveVirtualMethod()
108 return ClassCast(cls)->ResolveVirtualMethod(MethodCast(method)); in ResolveVirtualMethod()
112 … MethodPtr method) const in ResolveInterfaceMethod()
115 ASSERT(method != nullptr); in ResolveInterfaceMethod()
116 return ClassCast(cls)->ResolveVirtualMethod(MethodCast(method)); in ResolveInterfaceMethod()
119 compiler::RuntimeInterface::ClassPtr PandaRuntimeInterface::GetClass(MethodPtr method, IdType id) c… in GetClass() argument
122 auto *caller = MethodCast(method); in GetClass()
129 compiler::RuntimeInterface::ClassPtr PandaRuntimeInterface::GetStringClass(MethodPtr method) const in GetStringClass()
132 auto *caller = MethodCast(method); in GetStringClass()
137 compiler::ClassType PandaRuntimeInterface::GetClassType(MethodPtr method, IdType id) const in GetClassType() argument
139 if (method == nullptr) { in GetClassType()
143 auto *caller = MethodCast(method); in GetClassType()
174 bool PandaRuntimeInterface::IsArrayClass(MethodPtr method, IdType id) const in IsArrayClass() argument
177 auto *pf = MethodCast(method)->GetPandaFile(); in IsArrayClass()
210 auto method = Runtime::GetCurrent()->GetClassLinker()->GetMethod(*MethodCast(parent_method), in IsInterfaceMethod() local
212 return (method->GetClass()->IsInterface() && !method->IsDefaultInterfaceMethod()); in IsInterfaceMethod()
215 bool PandaRuntimeInterface::CanThrowException(MethodPtr method) const in CanThrowException()
218 auto *panda_method = MethodCast(method); in CanThrowException()
222 bool PandaRuntimeInterface::IsInterfaceMethod(MethodPtr method) const in IsInterfaceMethod()
225 …return (MethodCast(method)->GetClass()->IsInterface() && !MethodCast(method)->IsDefaultInterfaceMe… in IsInterfaceMethod()
228 bool PandaRuntimeInterface::HasNativeException(MethodPtr method) const in HasNativeException()
230 if (!MethodCast(method)->IsNative()) { in HasNativeException()
233 return CanThrowException(method); in HasNativeException()
276 bool PandaRuntimeInterface::IsMethodStatic(MethodPtr method) const in IsMethodStatic()
278 return MethodCast(method)->IsStatic(); in IsMethodStatic()
281 bool PandaRuntimeInterface::IsMethodStaticConstructor(MethodPtr method) const in IsMethodStaticConstructor()
283 return MethodCast(method)->IsStaticConstructor(); in IsMethodStaticConstructor()
286 bool PandaRuntimeInterface::IsMemoryBarrierRequired(MethodPtr method) const in IsMemoryBarrierRequired()
288 if (!MethodCast(method)->IsInstanceConstructor()) { in IsMemoryBarrierRequired()
291 for (auto &field : MethodCast(method)->GetClass()->GetFields()) { in IsMemoryBarrierRequired()
301 Method *caller = MethodCast(parent_method); in IsMethodIntrinsic()
318 Method::Proto proto(*pf, mda.GetProtoId()); in IsMethodIntrinsic()
319 auto *method = klass->GetDirectMethod(name.data, proto); in IsMethodIntrinsic() local
320 if (method == nullptr) { in IsMethodIntrinsic()
322 method = klass->GetClassMethod(name.data, proto); in IsMethodIntrinsic()
328 return method->IsIntrinsic(); in IsMethodIntrinsic()
331 std::string PandaRuntimeInterface::GetBytecodeString(MethodPtr method, uintptr_t pc) const in GetBytecodeString() argument
334 BytecodeInstruction inst(MethodCast(method)->GetInstructions() + pc); in GetBytecodeString()
345 auto method = MethodCast(m); in ResolveField() local
346 auto pfile = method->GetPandaFile(); in ResolveField()
347 …auto field = Runtime::GetCurrent()->GetClassLinker()->GetField(*method, panda_file::File::EntityId… in ResolveField()
387 auto method = MethodCast(m); in GetLiteralArray() local
388 auto pfile = method->GetPandaFile(); in GetLiteralArray()
444 std::optional<RuntimeInterface::IdType> PandaRuntimeInterface::FindClassIdInFile(MethodPtr method, … in FindClassIdInFile() argument
447 auto pfile = MethodCast(method)->GetPandaFile(); in FindClassIdInFile()
457 RuntimeInterface::IdType PandaRuntimeInterface::GetClassIdWithinFile(MethodPtr method, ClassPtr cls… in GetClassIdWithinFile() argument
459 auto class_id = FindClassIdInFile(method, cls); in GetClassIdWithinFile()
464 PandaRuntimeInterface::MethodPtr method, panda_file::LiteralTag tag) const in GetLiteralArrayClassIdWithinFile() argument
468 auto ctx = Runtime::GetCurrent()->GetLanguageContext(*MethodCast(method)); in GetLiteralArrayClassIdWithinFile()
472 auto pfile = MethodCast(method)->GetPandaFile(); in GetLiteralArrayClassIdWithinFile()
495 …timeInterface::ClassPtr PandaRuntimeInterface::ResolveType(PandaRuntimeInterface::MethodPtr method, in ResolveType() argument
500 …auto klass = Runtime::GetCurrent()->GetClassLinker()->GetClass(*MethodCast(method), panda_file::Fi… in ResolveType()
532 uint32_t PandaRuntimeInterface::GetArrayElementSize(MethodPtr method, IdType id) const in GetArrayElementSize() argument
534 auto *pf = MethodCast(method)->GetPandaFile(); in GetArrayElementSize()
542 uintptr_t PandaRuntimeInterface::GetPointerToConstArrayData(MethodPtr method, IdType id) const in GetPointerToConstArrayData() argument
544 auto *pf = MethodCast(method)->GetPandaFile(); in GetPointerToConstArrayData()
548 size_t PandaRuntimeInterface::GetOffsetToConstArrayData(MethodPtr method, IdType id) const in GetOffsetToConstArrayData() argument
550 auto *pf = MethodCast(method)->GetPandaFile(); in GetOffsetToConstArrayData()
603 // TODO(wengchangcheng): return offset of method in JSFunction in GetFunctionTargetOffset()
638 auto method = static_cast<Method *>(m); in GetClasses() local
639 auto profiling_data = method->GetProfilingData(); in GetClasses()
661 bool UnresolvedTypesWrapper::AddTableSlot(RuntimeInterface::MethodPtr method, uint32_t type_id, Slo… in AddTableSlot() argument
664 if (slots_.find(method) == slots_.end()) { in AddTableSlot()
665 slots_[method][key] = 0; in AddTableSlot()
668 auto &table = slots_.at(method); in AddTableSlot()
676 uintptr_t UnresolvedTypesWrapper::GetTableSlot(RuntimeInterface::MethodPtr method, uint32_t type_id, in GetTableSlot() argument
679 ASSERT(slots_.find(method) != slots_.end()); in GetTableSlot()
680 auto &table = slots_.at(method); in GetTableSlot()
685 bool Compiler::CompileMethod(Method *method, uintptr_t bytecode_offset, bool osr) in CompileMethod() argument
687 if (method->IsAbstract()) { in CompileMethod()
691 if (osr && GetOsrCode(method) != nullptr) { in CompileMethod()
692 ASSERT(method == ManagedThread::GetCurrent()->GetCurrentFrame()->GetMethod()); in CompileMethod()
693 ASSERT(method->HasCompiledCode()); in CompileMethod()
694 return OsrEntry(bytecode_offset, GetOsrCode(method)); in CompileMethod()
697 if (method->HasCompiledCode() && !osr) { in CompileMethod()
700 …CompilerTask ctx {method, method->HasCompiledCode() ? osr : false, ManagedThread::GetCurrent()->Ge… in CompileMethod()
703 auto status = method->GetCompilationStatus(); in CompileMethod()
704 for (; (status == Method::WAITING) || (status == Method::COMPILATION); in CompileMethod()
705 status = method->GetCompilationStatus()) { in CompileMethod()
720 auto method = ctx.GetMethod(); in CompileMethodLocked() local
723 method->ResetHotnessCounter(); in CompileMethodLocked()
738 … if (!compiler::JITCompileMethod(runtime_iface_, method, ctx.IsOsr(), code_allocator_, &allocator, in CompileMethodLocked()
741 method->SetCompilationStatus(Method::FAILED); in CompileMethodLocked()
744 method->SetCompilationStatus(Method::COMPILED); in CompileMethodLocked()
770 auto method = ctx.GetMethod(); in CompileMethodSync() local
771 Method::CompilationStage status = method->GetCompilationStatus(); in CompileMethodSync()
772 // The main thread compiles the method even if it is inside waiting queue in CompileMethodSync()
775 if (method->AtomicSetCompilationStatus(status, Method::COMPILATION)) { in CompileMethodSync()
784 …if (ctx.GetMethod()->AtomicSetCompilationStatus(ctx.IsOsr() ? Method::COMPILED : Method::NOT_COMPI… in CompileMethodAsync()
785 Method::WAITING)) { in CompileMethodAsync()
804 object_pointer_type PandaRuntimeInterface::GetNonMovableString(MethodPtr method, StringId id) const in GetNonMovableString() argument
807 auto pf = MethodCast(method)->GetPandaFile(); in GetNonMovableString()