/art/compiler/optimizing/ |
D | cha_guard_optimization.cc | 54 bool OptimizeForParameter(HShouldDeoptimizeFlag* flag, HInstruction* receiver); 56 bool OptimizeWithDominatingGuard(HShouldDeoptimizeFlag* flag, HInstruction* receiver); 58 bool HoistGuard(HShouldDeoptimizeFlag* flag, HInstruction* receiver); 106 HInstruction* receiver) { in OptimizeForParameter() argument 115 if (receiver->IsParameterValue()) { in OptimizeForParameter() 123 HInstruction* receiver) { in OptimizeWithDominatingGuard() argument 130 HBasicBlock* receiver_def_block = receiver->GetBlock(); in OptimizeWithDominatingGuard() 158 while (instruction != receiver) { in OptimizeWithDominatingGuard() 162 DCHECK(receiver->IsPhi()); in OptimizeWithDominatingGuard() 175 HInstruction* receiver) { in HoistGuard() argument [all …]
|
D | inliner.cc | 193 HInstruction* receiver = invoke->InputAt(0); in FindVirtualOrInterfaceTarget() local 194 if (receiver->IsNullCheck()) { in FindVirtualOrInterfaceTarget() 197 receiver = receiver->InputAt(0); in FindVirtualOrInterfaceTarget() 199 ReferenceTypeInfo info = receiver->GetReferenceTypeInfo(); in FindVirtualOrInterfaceTarget() 200 DCHECK(info.IsValid()) << "Invalid RTI for " << receiver->DebugName(); in FindVirtualOrInterfaceTarget() 692 HInstruction* receiver, in BuildGetReceiverClass() argument 697 receiver, in BuildGetReceiverClass() 766 HInstruction* receiver = invoke_instruction->InputAt(0); in TryInlineMonomorphicCall() local 778 AddTypeGuard(receiver, in TryInlineMonomorphicCall() 825 HInstruction* HInliner::AddTypeGuard(HInstruction* receiver, in AddTypeGuard() argument [all …]
|
D | reference_type_propagation.cc | 211 static void BoundTypeIn(HInstruction* receiver, in BoundTypeIn() argument 218 DCHECK(!receiver->IsLoadClass()) << "We should not replace HLoadClass instructions"; in BoundTypeIn() 219 const HUseList<HInstruction*>& uses = receiver->GetUses(); in BoundTypeIn() 237 insert_point, receiver, class_rti, start_instruction, start_block)) { in BoundTypeIn() 238 bound_type = new (receiver->GetBlock()->GetGraph()->GetArena()) HBoundType(receiver); in BoundTypeIn() 254 if (receiver->IsNullCheck()) { in BoundTypeIn() 255 BoundTypeIn(receiver->InputAt(0), start_block, start_instruction, class_rti); in BoundTypeIn() 291 HInstruction* receiver = field_get->InputAt(0); in BoundTypeForClassCheck() local 292 ReferenceTypeInfo receiver_type = receiver->GetReferenceTypeInfo(); in BoundTypeForClassCheck() 312 BoundTypeIn(receiver, trueBlock, /* start_instruction */ nullptr, class_rti); in BoundTypeForClassCheck()
|
D | inliner.h | 200 HInstruction* receiver, 227 HInstruction* AddTypeGuard(HInstruction* receiver,
|
D | instruction_simplifier.cc | 1154 HInstruction* receiver = field_get->InputAt(0); in RecognizeAndSimplifyClassCheck() local 1155 ReferenceTypeInfo receiver_type = receiver->GetReferenceTypeInfo(); in RecognizeAndSimplifyClassCheck() 1728 HInstruction* receiver = instruction->InputAt(0); in SimplifyStringEquals() local 1729 if (receiver == argument) { in SimplifyStringEquals() 2005 HInstruction* receiver = invoke->InputAt(0); in SimplifyReturnThis() local 2006 invoke->ReplaceWith(receiver); in SimplifyReturnThis() 2045 HInstruction* receiver = invoke->InputAt(0); in SimplifyAllocationIntrinsic() local 2046 if (!is_synchronized || DoesNotEscape(receiver, NoEscapeForStringBufferReference)) { in SimplifyAllocationIntrinsic()
|
/art/runtime/ |
D | reflection_test.cc | 88 ObjPtr<mirror::Object>* receiver, in ReflectionTestMakeExecutable() argument 116 *receiver = nullptr; in ReflectionTestMakeExecutable() 125 *receiver = c->AllocObject(self); in ReflectionTestMakeExecutable() 129 HandleWrapperObjPtr<mirror::Object> h(hs.NewHandleWrapper(receiver)); in ReflectionTestMakeExecutable() 138 ObjPtr<mirror::Object> receiver; in InvokeNopMethod() local 139 ReflectionTestMakeExecutable(&method, &receiver, is_static, "nop", "()V"); in InvokeNopMethod() 140 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeNopMethod() 147 ObjPtr<mirror::Object> receiver; in InvokeIdentityByteMethod() local 148 ReflectionTestMakeExecutable(&method, &receiver, is_static, "identity", "(B)B"); in InvokeIdentityByteMethod() 149 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeIdentityByteMethod() [all …]
|
D | reflection.cc | 101 ObjPtr<mirror::Object> receiver, in BuildArgArrayFromVarArgs() argument 105 if (receiver != nullptr) { in BuildArgArrayFromVarArgs() 106 Append(receiver); in BuildArgArrayFromVarArgs() 138 ObjPtr<mirror::Object> receiver, jvalue* args) in BuildArgArrayFromJValues() argument 141 if (receiver != nullptr) { in BuildArgArrayFromJValues() 142 Append(receiver); in BuildArgArrayFromJValues() 219 bool BuildArgArrayFromObjectArray(ObjPtr<mirror::Object> receiver, in BuildArgArrayFromObjectArray() argument 226 if (receiver != nullptr) { in BuildArgArrayFromObjectArray() 227 Append(receiver); in BuildArgArrayFromObjectArray() 439 static ArtMethod* FindVirtualMethod(ObjPtr<mirror::Object> receiver, ArtMethod* method) in FindVirtualMethod() argument [all …]
|
D | method_handles.cc | 552 Handle<mirror::MethodHandle> receiver, in DoCallTransform() argument 602 new_shadow_frame->SetVRegReference(0, receiver.Get()); in DoCallTransform() 651 ObjPtr<mirror::Object> receiver(shadow_frame.GetVRegReference(receiver_reg)); in RefineTargetMethod() local 656 receiver = ObjPtr<mirror::EmulatedStackFrame>::DownCast(receiver)->GetReceiver(); in RefineTargetMethod() 660 if (receiver == nullptr || receiver->GetClass() != declaring_class) { in RefineTargetMethod() 663 if (!VerifyObjectIsClass(receiver, declaring_class)) { in RefineTargetMethod() 667 return receiver->GetClass()->FindVirtualMethodForVirtualOrInterface( in RefineTargetMethod()
|
D | reflection.h | 90 jobject receiver,
|
D | art_method.cc | 324 mirror::Object* receiver = in Invoke() local 327 self, this, receiver, args + 1, result, /*stay_in_interpreter*/ true); in Invoke()
|
D | debugger.h | 62 : request_id(invoke_request_id), thread_id(invoke_thread_id), receiver(invoke_receiver), in DebugInvokeReq() 74 GcRoot<mirror::Object> receiver; // not used for ClassType.InvokeMethod. member
|
D | debugger.cc | 330 receiver.VisitRootIfNonNull(visitor, root_info); // null for static method call. in VisitRoots() 3952 mirror::Object* receiver = gRegistry->Get<mirror::Object*>(object_id, &error); in PrepareInvokeMethod() local 3968 if (m->IsStatic() != (receiver == nullptr)) { in PrepareInvokeMethod() 3990 HandleWrapper<mirror::Object> h_obj(hs.NewHandleWrapper(&receiver)); in PrepareInvokeMethod() 4018 DebugInvokeReq* req = new (std::nothrow) DebugInvokeReq(request_id, thread_id, receiver, c, m, in PrepareInvokeMethod() 4093 if ((pReq->options & JDWP::INVOKE_NONVIRTUAL) == 0 && pReq->receiver.Read() != nullptr) { in ExecuteMethodWithoutPendingException() 4103 << " receiver=" << pReq->receiver.Read() in ExecuteMethodWithoutPendingException() 4110 ScopedLocalRef<jobject> ref(soa.Env(), soa.AddLocalReference<jobject>(pReq->receiver.Read())); in ExecuteMethodWithoutPendingException() 4164 result_value = GetObjectRegistry()->Add(pReq->receiver.Read()); in ExecuteMethodWithoutPendingException() 4165 result_tag = TagFromObject(soa, pReq->receiver.Read()); in ExecuteMethodWithoutPendingException()
|
/art/runtime/interpreter/ |
D | interpreter_common.h | 127 ObjPtr<mirror::Object> receiver = (type == kStatic) in DoFastInvoke() local 132 method_idx, &receiver, sf_method, self); in DoFastInvoke() 146 jit->InvokeVirtualOrInterface(receiver, sf_method, shadow_frame.GetDexPC(), called_method); in DoFastInvoke() 170 …ObjPtr<mirror::Object> receiver = (type == kStatic) ? nullptr : shadow_frame.GetVRegReference(vreg… in DoInvoke() local 173 method_idx, &receiver, sf_method, self); in DoInvoke() 187 jit->InvokeVirtualOrInterface(receiver, sf_method, shadow_frame.GetDexPC(), called_method); in DoInvoke() 196 self, receiver.Ptr(), sf_method, shadow_frame.GetDexPC(), called_method); in DoInvoke() 227 ObjPtr<mirror::Object> const receiver = shadow_frame.GetVRegReference(vregC); in DoInvokeVirtualQuick() local 228 if (UNLIKELY(receiver == nullptr)) { in DoInvokeVirtualQuick() 237 CHECK(receiver->GetClass() != nullptr) in DoInvokeVirtualQuick() [all …]
|
D | unstarted_runtime.h | 59 mirror::Object* receiver, 82 mirror::Object* receiver, \
|
D | unstarted_runtime.cc | 677 Handle<mirror::Object> receiver = hs.NewHandle(c->AllocObject(self)); in UnstartedConstructorNewInstance0() local 678 if (receiver == nullptr) { in UnstartedConstructorNewInstance0() 689 soa.AddLocalReference<jobject>(receiver.Get())); in UnstartedConstructorNewInstance0() 697 result->SetL(receiver.Get()); in UnstartedConstructorNewInstance0() 1638 Thread* self, ArtMethod* method ATTRIBUTE_UNUSED, mirror::Object* receiver ATTRIBUTE_UNUSED, in UnstartedJNIVMRuntimeNewUnpaddedArray() 1657 mirror::Object* receiver ATTRIBUTE_UNUSED, uint32_t* args ATTRIBUTE_UNUSED, JValue* result) { in UnstartedJNIVMStackGetCallingClassLoader() 1662 Thread* self, ArtMethod* method ATTRIBUTE_UNUSED, mirror::Object* receiver ATTRIBUTE_UNUSED, in UnstartedJNIVMStackGetStackClass2() 1673 mirror::Object* receiver ATTRIBUTE_UNUSED, uint32_t* args, JValue* result) { in UnstartedJNIMathLog() 1681 mirror::Object* receiver ATTRIBUTE_UNUSED, uint32_t* args, JValue* result) { in UnstartedJNIMathExp() 1690 mirror::Object* receiver ATTRIBUTE_UNUSED, in UnstartedJNIAtomicLongVMSupportsCS8() [all …]
|
D | interpreter.cc | 46 ObjPtr<mirror::Object> receiver, in InterpreterJni() argument 189 soa.AddLocalReference<jobject>(receiver)); in InterpreterJni() 200 soa.AddLocalReference<jobject>(receiver)); in InterpreterJni() 207 soa.AddLocalReference<jobject>(receiver)); in InterpreterJni() 221 soa.AddLocalReference<jobject>(receiver)); in InterpreterJni() 352 ObjPtr<mirror::Object> receiver, in EnterInterpreterFromInvoke() argument 399 CHECK(receiver != nullptr); in EnterInterpreterFromInvoke() 400 shadow_frame->SetVRegReference(cur_reg, receiver.Ptr()); in EnterInterpreterFromInvoke() 450 UnstartedRuntime::Jni(self, method, receiver.Ptr(), args, result); in EnterInterpreterFromInvoke() 452 InterpreterJni(self, method, shorty, receiver, args, result); in EnterInterpreterFromInvoke() [all …]
|
D | interpreter.h | 40 ObjPtr<mirror::Object> receiver,
|
/art/runtime/native/ |
D | java_lang_reflect_Constructor.cc | 108 ObjPtr<mirror::Object> receiver = in Constructor_newInstance0() local 110 if (receiver == nullptr) { in Constructor_newInstance0() 113 jobject javaReceiver = soa.AddLocalReference<jobject>(receiver); in Constructor_newInstance0()
|
D | java_lang_Class.cc | 714 auto receiver = hs.NewHandle(klass->AllocObject(soa.Self())); in Class_newInstance() local 715 if (UNLIKELY(receiver == nullptr)) { in Class_newInstance() 725 if (UNLIKELY(caller != nullptr && !VerifyAccess(receiver.Get(), in Class_newInstance() 745 uint32_t args[1] = { static_cast<uint32_t>(reinterpret_cast<uintptr_t>(receiver.Get())) }; in Class_newInstance() 751 return soa.AddLocalReference<jobject>(receiver.Get()); in Class_newInstance()
|
/art/test/800-smali/smali/ |
D | b_20224106.smali | 13 # 2) The receiver is not an interface or Object
|
/art/test/135-MirandaDispatch/smali/ |
D | b_21646347.smali | 3 # If an invoke-virtual dispatches to a miranda method, ensure that we test for the receiver
|
/art/test/954-invoke-polymorphic-verifier/smali/ |
D | Unresolved.smali | 30 # Calling MethodHandle.invoke() on unresolved receiver.
|
/art/test/954-invoke-polymorphic-verifier/ |
D | expected.txt | 10 …<init>() failed to verify: void Unresolved.<init>(): invoke-polymorphic receiver has no class: Unr…
|
/art/runtime/entrypoints/quick/ |
D | quick_trampoline_entrypoints.cc | 895 ArtMethod* proxy_method, mirror::Object* receiver, Thread* self, ArtMethod** sp) in artQuickProxyInvokeHandler() argument 898 DCHECK(receiver->GetClass()->IsProxyClass()) << proxy_method->PrettyMethod(); in artQuickProxyInvokeHandler() 910 jobject rcvr_jobj = soa.AddLocalReference<jobject>(receiver); in artQuickProxyInvokeHandler() 984 ArtMethod* called, mirror::Object* receiver, Thread* self, ArtMethod** sp) in artQuickResolutionTrampoline() argument 1103 hs.NewHandleWrapper(virtual_or_interface ? &receiver : &dummy)); in artQuickResolutionTrampoline() 1118 CHECK(receiver != nullptr) << invoke_type; in artQuickResolutionTrampoline() 1119 called = receiver->GetClass()->FindVirtualMethodForVirtual(called, kRuntimePointerSize); in artQuickResolutionTrampoline() 1121 CHECK(receiver != nullptr) << invoke_type; in artQuickResolutionTrampoline() 1122 called = receiver->GetClass()->FindVirtualMethodForInterface(called, kRuntimePointerSize); in artQuickResolutionTrampoline() 1143 << mirror::Object::PrettyTypeOf(receiver) << " " in artQuickResolutionTrampoline()
|
/art/runtime/interpreter/mterp/ |
D | mterp.cc | 273 ObjPtr<mirror::Object> const receiver = shadow_frame->GetVRegReference(vregC); in MterpInvokeVirtualQuick() local 274 if (receiver != nullptr) { in MterpInvokeVirtualQuick() 275 ArtMethod* const called_method = receiver->GetClass()->GetEmbeddedVTableEntry( in MterpInvokeVirtualQuick() 282 receiver, shadow_frame->GetMethod(), shadow_frame->GetDexPC(), called_method); in MterpInvokeVirtualQuick()
|