Home
last modified time | relevance | path

Searched refs:receiver (Results 1 – 25 of 41) sorted by relevance

12

/art/compiler/optimizing/
Dcha_guard_optimization.cc54 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 …]
Dinliner.cc220 HInstruction* receiver = invoke->InputAt(0); in FindVirtualOrInterfaceTarget() local
221 if (receiver->IsNullCheck()) { in FindVirtualOrInterfaceTarget()
224 receiver = receiver->InputAt(0); in FindVirtualOrInterfaceTarget()
226 ReferenceTypeInfo info = receiver->GetReferenceTypeInfo(); in FindVirtualOrInterfaceTarget()
227 DCHECK(info.IsValid()) << "Invalid RTI for " << receiver->DebugName(); in FindVirtualOrInterfaceTarget()
789 HInstruction* receiver, in BuildGetReceiverClass() argument
794 receiver, in BuildGetReceiverClass()
863 HInstruction* receiver = invoke_instruction->InputAt(0); in TryInlineMonomorphicCall() local
875 AddTypeGuard(receiver, in TryInlineMonomorphicCall()
922 HInstruction* HInliner::AddTypeGuard(HInstruction* receiver, in AddTypeGuard() argument
[all …]
Dreference_type_propagation.cc253 static void BoundTypeIn(HInstruction* receiver, in BoundTypeIn() argument
260 DCHECK(!receiver->IsLoadClass()) << "We should not replace HLoadClass instructions"; in BoundTypeIn()
261 const HUseList<HInstruction*>& uses = receiver->GetUses(); in BoundTypeIn()
279 insert_point, receiver, class_rti, start_instruction, start_block)) { in BoundTypeIn()
280 bound_type = new (receiver->GetBlock()->GetGraph()->GetAllocator()) HBoundType(receiver); in BoundTypeIn()
296 if (receiver->IsNullCheck()) { in BoundTypeIn()
297 BoundTypeIn(receiver->InputAt(0), start_block, start_instruction, class_rti); in BoundTypeIn()
333 HInstruction* receiver = field_get->InputAt(0); in BoundTypeForClassCheck() local
334 ReferenceTypeInfo receiver_type = receiver->GetReferenceTypeInfo(); in BoundTypeForClassCheck()
353 BoundTypeIn(receiver, trueBlock, /* start_instruction= */ nullptr, class_rti); in BoundTypeForClassCheck()
Dinliner.h198 HInstruction* receiver,
225 HInstruction* AddTypeGuard(HInstruction* receiver,
Dinstruction_simplifier.cc1544 HInstruction* receiver = field_get->InputAt(0); in RecognizeAndSimplifyClassCheck() local
1545 ReferenceTypeInfo receiver_type = receiver->GetReferenceTypeInfo(); in RecognizeAndSimplifyClassCheck()
2118 HInstruction* receiver = instruction->InputAt(0); in SimplifyStringEquals() local
2119 if (receiver == argument) { in SimplifyStringEquals()
2439 HInstruction* receiver = invoke->InputAt(0); in SimplifyReturnThis() local
2440 invoke->ReplaceWith(receiver); in SimplifyReturnThis()
2479 HInstruction* receiver = invoke->InputAt(0); in SimplifyAllocationIntrinsic() local
2480 if (!is_synchronized || DoesNotEscape(receiver, NoEscapeForStringBufferReference)) { in SimplifyAllocationIntrinsic()
/art/runtime/
Dreflection_test.cc90 ObjPtr<mirror::Object>* receiver, in ReflectionTestMakeInterpreted() argument
118 *receiver = nullptr; in ReflectionTestMakeInterpreted()
127 *receiver = c->AllocObject(self); in ReflectionTestMakeInterpreted()
131 HandleWrapperObjPtr<mirror::Object> h(hs.NewHandleWrapper(receiver)); in ReflectionTestMakeInterpreted()
140 ObjPtr<mirror::Object> receiver; in InvokeNopMethod() local
141 ReflectionTestMakeInterpreted(&method, &receiver, is_static, "nop", "()V"); in InvokeNopMethod()
142 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeNopMethod()
149 ObjPtr<mirror::Object> receiver; in InvokeIdentityByteMethod() local
150 ReflectionTestMakeInterpreted(&method, &receiver, is_static, "identity", "(B)B"); in InvokeIdentityByteMethod()
151 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeIdentityByteMethod()
[all …]
Dreflection.cc105 ObjPtr<mirror::Object> receiver, in BuildArgArrayFromVarArgs() argument
109 if (receiver != nullptr) { in BuildArgArrayFromVarArgs()
110 Append(receiver); in BuildArgArrayFromVarArgs()
142 ObjPtr<mirror::Object> receiver, const jvalue* args) in BuildArgArrayFromJValues() argument
145 if (receiver != nullptr) { in BuildArgArrayFromJValues()
146 Append(receiver); in BuildArgArrayFromJValues()
225 bool BuildArgArrayFromObjectArray(ObjPtr<mirror::Object> receiver, in BuildArgArrayFromObjectArray() argument
232 if (receiver != nullptr) { in BuildArgArrayFromObjectArray()
233 Append(receiver); in BuildArgArrayFromObjectArray()
444 ArtMethod* FindVirtualMethod(ObjPtr<mirror::Object> receiver, ArtMethod* method) in FindVirtualMethod() argument
[all …]
Dreflection.h90 jobject receiver,
99 ObjPtr<mirror::Object> receiver,
Dmethod_handles.cc553 Handle<mirror::MethodHandle> receiver, in MethodHandleInvokeTransform() argument
600 new_shadow_frame->SetVRegReference(0, receiver.Get()); in MethodHandleInvokeTransform()
652 ObjPtr<mirror::Object> receiver(shadow_frame.GetVRegReference(receiver_reg)); in RefineTargetMethod() local
657 receiver = ObjPtr<mirror::EmulatedStackFrame>::DownCast(receiver)->GetReceiver(); in RefineTargetMethod()
661 if (receiver == nullptr || receiver->GetClass() != declaring_class) { in RefineTargetMethod()
664 if (!VerifyObjectIsClass(receiver, declaring_class)) { in RefineTargetMethod()
668 return receiver->GetClass()->FindVirtualMethodForVirtualOrInterface( in RefineTargetMethod()
1033 ObjPtr<mirror::Object> receiver = shadow_frame.GetVRegReference(operands->GetOperand(0)); in DoVarHandleInvokeTranslation() local
1034 if (receiver == nullptr) { in DoVarHandleInvokeTranslation()
1040 Handle<mirror::VarHandle> vh(hs.NewHandle(ObjPtr<mirror::VarHandle>::DownCast(receiver))); in DoVarHandleInvokeTranslation()
/art/test/952-invoke-custom/src/
DTestInvocationKinds.java158 private static int maxIntegerValue(TestInvocationKinds receiver, int x, int y) { in maxIntegerValue() argument
169 TestInvocationKinds receiver = new TestInvocationKinds(); in testInvokeVirtual() local
170 int result = maxIntegerValue(receiver, 77, -3); in testInvokeVirtual()
206 Widget receiver = makeWidget(3); in testConstructor() local
207 assertEquals(Widget.class, receiver.getClass()); in testConstructor()
208 System.out.println(receiver.getClass()); in testConstructor()
/art/runtime/native/
Djava_lang_reflect_Constructor.cc111 ObjPtr<mirror::Object> receiver = in Constructor_newInstance0() local
113 if (UNLIKELY(receiver == nullptr)) { in Constructor_newInstance0()
117 jobject javaReceiver = soa.AddLocalReference<jobject>(receiver); in Constructor_newInstance0()
119 InvokeConstructor(soa, constructor_art_method, receiver, javaArgs); in Constructor_newInstance0()
Djava_lang_Class.cc833 auto receiver = hs.NewHandle(klass->AllocObject(soa.Self())); in Class_newInstance() local
834 if (UNLIKELY(receiver == nullptr)) { in Class_newInstance()
844 if (UNLIKELY(caller != nullptr && !VerifyAccess(receiver.Get(), in Class_newInstance()
864 uint32_t args[1] = { static_cast<uint32_t>(reinterpret_cast<uintptr_t>(receiver.Get())) }; in Class_newInstance()
870 return soa.AddLocalReference<jobject>(receiver.Get()); in Class_newInstance()
/art/test/988-method-trace/
Dgen_srcs.py255 receiver = method_info.klass
257 receiver = "instance_" + method_info.klass.replace(".", "_")
258 return receiver
263 receiver = format_receiver_name(method_info)
265 return ("%s.%s(%s);" %(receiver, method_info.method_name, dummy_args))
/art/runtime/interpreter/
Dunstarted_runtime.h60 mirror::Object* receiver,
83 mirror::Object* receiver, \
Dunstarted_runtime.cc726 Handle<mirror::Object> receiver = hs.NewHandle(c->AllocObject(self)); in UnstartedConstructorNewInstance0() local
727 if (receiver == nullptr) { in UnstartedConstructorNewInstance0()
738 soa.AddLocalReference<jobject>(receiver.Get())); in UnstartedConstructorNewInstance0()
746 result->SetL(receiver.Get()); in UnstartedConstructorNewInstance0()
1699 mirror::Object* receiver ATTRIBUTE_UNUSED, uint32_t* args ATTRIBUTE_UNUSED, JValue* result) { in UnstartedJNIVMRuntimeIs64Bit()
1708 mirror::Object* receiver ATTRIBUTE_UNUSED, in UnstartedJNIVMRuntimeNewUnpaddedArray()
1732 mirror::Object* receiver ATTRIBUTE_UNUSED, uint32_t* args ATTRIBUTE_UNUSED, JValue* result) { in UnstartedJNIVMStackGetCallingClassLoader()
1737 Thread* self, ArtMethod* method ATTRIBUTE_UNUSED, mirror::Object* receiver ATTRIBUTE_UNUSED, in UnstartedJNIVMStackGetStackClass2()
1748 mirror::Object* receiver ATTRIBUTE_UNUSED, uint32_t* args, JValue* result) { in UnstartedJNIMathLog()
1756 mirror::Object* receiver ATTRIBUTE_UNUSED, uint32_t* args, JValue* result) { in UnstartedJNIMathExp()
[all …]
Dinterpreter.cc51 ObjPtr<mirror::Object> receiver, in InterpreterJni() argument
194 soa.AddLocalReference<jobject>(receiver)); in InterpreterJni()
205 soa.AddLocalReference<jobject>(receiver)); in InterpreterJni()
212 soa.AddLocalReference<jobject>(receiver)); in InterpreterJni()
226 soa.AddLocalReference<jobject>(receiver)); in InterpreterJni()
401 ObjPtr<mirror::Object> receiver, in EnterInterpreterFromInvoke() argument
448 CHECK(receiver != nullptr); in EnterInterpreterFromInvoke()
449 shadow_frame->SetVRegReference(cur_reg, receiver); in EnterInterpreterFromInvoke()
499 UnstartedRuntime::Jni(self, method, receiver.Ptr(), args, result); in EnterInterpreterFromInvoke()
501 InterpreterJni(self, method, shorty, receiver, args, result); in EnterInterpreterFromInvoke()
[all …]
Dinterpreter.h42 ObjPtr<mirror::Object> receiver,
Dinterpreter_common.h176 ObjPtr<mirror::Object> receiver = in DoInvoke() local
180 if (UNLIKELY(receiver == nullptr)) { in DoInvoke()
185 DCHECK(receiver->GetClass()->ShouldHaveEmbeddedVTable()); in DoInvoke()
186 called_method = receiver->GetClass()->GetEmbeddedVTableEntry( in DoInvoke()
190 method_idx, resolved_method, &receiver, sf_method, self); in DoInvoke()
205 jit->InvokeVirtualOrInterface(receiver, sf_method, shadow_frame.GetDexPC(), called_method); in DoInvoke()
/art/test/800-smali/smali/
Db_20224106.smali13 # 2) The receiver is not an interface or Object
/art/test/135-MirandaDispatch/smali/
Db_21646347.smali3 # If an invoke-virtual dispatches to a miranda method, ensure that we test for the receiver
/art/test/954-invoke-polymorphic-verifier/smali/
DUnresolved.smali30 # Calling MethodHandle.invoke() on unresolved receiver.
/art/tools/dexanalyze/
Ddexanalyze_experiments.cc291 const uint32_t receiver = inst.VRegB_22c(); in ProcessDexFile() local
293 ++stats->receiver_[(receiver - first_arg_reg) & 0xF]; in ProcessDexFile()
294 if (first_arg_reg == receiver) { in ProcessDexFile()
Ddexanalyze_bytecode.cc264 uint32_t receiver = inst->VRegB_22c(); in ProcessCodeItem() local
268 first_arg_reg == receiver && in ProcessCodeItem()
286 CHECK(InstNibbles(new_opcode, {out_reg, receiver, type_idx, field_idx})); in ProcessCodeItem()
/art/runtime/entrypoints/quick/
Dquick_trampoline_entrypoints.cc893 ArtMethod* proxy_method, mirror::Object* receiver, Thread* self, ArtMethod** sp) in artQuickProxyInvokeHandler() argument
896 DCHECK(receiver->GetClass()->IsProxyClass()) << proxy_method->PrettyMethod(); in artQuickProxyInvokeHandler()
908 jobject rcvr_jobj = soa.AddLocalReference<jobject>(receiver); in artQuickProxyInvokeHandler()
1302 ArtMethod* called, mirror::Object* receiver, Thread* self, ArtMethod** sp) in artQuickResolutionTrampoline() argument
1398 hs.NewHandleWrapper(virtual_or_interface ? &receiver : &dummy)); in artQuickResolutionTrampoline()
1432 CHECK(receiver != nullptr) << invoke_type; in artQuickResolutionTrampoline()
1433 called = receiver->GetClass()->FindVirtualMethodForVirtual(called, kRuntimePointerSize); in artQuickResolutionTrampoline()
1435 CHECK(receiver != nullptr) << invoke_type; in artQuickResolutionTrampoline()
1436 called = receiver->GetClass()->FindVirtualMethodForInterface(called, kRuntimePointerSize); in artQuickResolutionTrampoline()
1451 << mirror::Object::PrettyTypeOf(receiver) << " " in artQuickResolutionTrampoline()
/art/test/954-invoke-polymorphic-verifier/
Dexpected.txt10 …<init>() failed to verify: void Unresolved.<init>(): invoke-polymorphic receiver has no class: Unr…

12