Home
last modified time | relevance | path

Searched refs:receiver (Results 1 – 25 of 35) 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.cc219 HInstruction* receiver = invoke->InputAt(0); in FindVirtualOrInterfaceTarget() local
220 if (receiver->IsNullCheck()) { in FindVirtualOrInterfaceTarget()
223 receiver = receiver->InputAt(0); in FindVirtualOrInterfaceTarget()
225 ReferenceTypeInfo info = receiver->GetReferenceTypeInfo(); in FindVirtualOrInterfaceTarget()
226 DCHECK(info.IsValid()) << "Invalid RTI for " << receiver->DebugName(); in FindVirtualOrInterfaceTarget()
803 HInstruction* receiver, in BuildGetReceiverClass() argument
808 receiver, in BuildGetReceiverClass()
878 HInstruction* receiver = invoke_instruction->InputAt(0); in TryInlineMonomorphicCall() local
890 AddTypeGuard(receiver, in TryInlineMonomorphicCall()
936 HInstruction* HInliner::AddTypeGuard(HInstruction* receiver, in AddTypeGuard() argument
[all …]
Dreference_type_propagation.cc214 static void BoundTypeIn(HInstruction* receiver, in BoundTypeIn() argument
221 DCHECK(!receiver->IsLoadClass()) << "We should not replace HLoadClass instructions"; in BoundTypeIn()
222 const HUseList<HInstruction*>& uses = receiver->GetUses(); in BoundTypeIn()
240 insert_point, receiver, class_rti, start_instruction, start_block)) { in BoundTypeIn()
241 bound_type = new (receiver->GetBlock()->GetGraph()->GetAllocator()) HBoundType(receiver); in BoundTypeIn()
257 if (receiver->IsNullCheck()) { in BoundTypeIn()
258 BoundTypeIn(receiver->InputAt(0), start_block, start_instruction, class_rti); in BoundTypeIn()
294 HInstruction* receiver = field_get->InputAt(0); in BoundTypeForClassCheck() local
295 ReferenceTypeInfo receiver_type = receiver->GetReferenceTypeInfo(); in BoundTypeForClassCheck()
314 BoundTypeIn(receiver, trueBlock, /* start_instruction= */ nullptr, class_rti); in BoundTypeForClassCheck()
Dinliner.h244 HInstruction* receiver,
266 HInstruction* AddTypeGuard(HInstruction* receiver,
Dinstruction_simplifier.cc1540 HInstruction* receiver = field_get->InputAt(0); in RecognizeAndSimplifyClassCheck() local
1541 ReferenceTypeInfo receiver_type = receiver->GetReferenceTypeInfo(); in RecognizeAndSimplifyClassCheck()
2179 HInstruction* receiver = instruction->InputAt(0); in SimplifyStringEquals() local
2180 if (receiver == argument) { in SimplifyStringEquals()
2432 HInstruction* receiver = invoke->InputAt(0); in SimplifyReturnThis() local
2433 invoke->ReplaceWith(receiver); in SimplifyReturnThis()
2658 HInstruction* receiver = invoke->InputAt(0); in SimplifyAllocationIntrinsic() local
2659 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.h102 jobject receiver,
111 ObjPtr<mirror::Object> receiver,
Dmethod_handles.cc560 Handle<mirror::MethodHandle> receiver, in MethodHandleInvokeTransform() argument
607 new_shadow_frame->SetVRegReference(0, receiver.Get()); in MethodHandleInvokeTransform()
659 ObjPtr<mirror::Object> receiver(shadow_frame.GetVRegReference(receiver_reg)); in RefineTargetMethod() local
664 receiver = ObjPtr<mirror::EmulatedStackFrame>::DownCast(receiver)->GetReceiver(); in RefineTargetMethod()
668 if (receiver == nullptr || receiver->GetClass() != declaring_class) { in RefineTargetMethod()
671 if (!VerifyObjectIsClass(receiver, declaring_class)) { in RefineTargetMethod()
675 return receiver->GetClass()->FindVirtualMethodForVirtualOrInterface( in RefineTargetMethod()
1049 ObjPtr<mirror::Object> receiver = shadow_frame.GetVRegReference(operands->GetOperand(0)); in DoVarHandleInvokeTranslation() local
1050 if (receiver == nullptr) { in DoVarHandleInvokeTranslation()
1056 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.cc939 auto receiver = hs.NewHandle(klass->AllocObject(soa.Self())); in Class_newInstance() local
940 if (UNLIKELY(receiver == nullptr)) { in Class_newInstance()
950 if (UNLIKELY(caller != nullptr && !VerifyAccess(receiver.Get(), in Class_newInstance()
973 uint32_t args[1] = { static_cast<uint32_t>(reinterpret_cast<uintptr_t>(receiver.Get())) }; in Class_newInstance()
979 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, placeholder_args))
/art/runtime/interpreter/
Dunstarted_runtime.h60 mirror::Object* receiver,
83 mirror::Object* receiver, \
Dunstarted_runtime.cc675 Handle<mirror::Object> receiver = hs.NewHandle(c->AllocObject(self)); in UnstartedConstructorNewInstance0() local
676 if (receiver == nullptr) { in UnstartedConstructorNewInstance0()
687 soa.AddLocalReference<jobject>(receiver.Get())); in UnstartedConstructorNewInstance0()
695 result->SetL(receiver.Get()); in UnstartedConstructorNewInstance0()
1672 mirror::Object* receiver ATTRIBUTE_UNUSED, uint32_t* args ATTRIBUTE_UNUSED, JValue* result) { in UnstartedJNIVMRuntimeIs64Bit()
1681 mirror::Object* receiver ATTRIBUTE_UNUSED, in UnstartedJNIVMRuntimeNewUnpaddedArray()
1702 mirror::Object* receiver ATTRIBUTE_UNUSED, uint32_t* args ATTRIBUTE_UNUSED, JValue* result) { in UnstartedJNIVMStackGetCallingClassLoader()
1707 Thread* self, ArtMethod* method ATTRIBUTE_UNUSED, mirror::Object* receiver ATTRIBUTE_UNUSED, in UnstartedJNIVMStackGetStackClass2()
1718 mirror::Object* receiver ATTRIBUTE_UNUSED, uint32_t* args, JValue* result) { in UnstartedJNIMathLog()
1726 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()
417 ObjPtr<mirror::Object> receiver, in EnterInterpreterFromInvoke() argument
464 CHECK(receiver != nullptr); in EnterInterpreterFromInvoke()
465 shadow_frame->SetVRegReference(cur_reg, receiver); in EnterInterpreterFromInvoke()
519 UnstartedRuntime::Jni(self, method, receiver.Ptr(), args, result); in EnterInterpreterFromInvoke()
521 InterpreterJni(self, method, shorty, receiver, args, result); in EnterInterpreterFromInvoke()
[all …]
Dinterpreter.h42 ObjPtr<mirror::Object> receiver,
Dinterpreter_common.h274 ObjPtr<mirror::Object> receiver = in DoInvoke() local
278 if (UNLIKELY(receiver == nullptr)) { in DoInvoke()
283 DCHECK(receiver->GetClass()->ShouldHaveEmbeddedVTable()); in DoInvoke()
284 called_method = receiver->GetClass()->GetEmbeddedVTableEntry( in DoInvoke()
288 method_idx, resolved_method, &receiver, sf_method, self); in DoInvoke()
303 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.cc808 ArtMethod* proxy_method, mirror::Object* receiver, Thread* self, ArtMethod** sp) in artQuickProxyInvokeHandler() argument
811 DCHECK(receiver->GetClass()->IsProxyClass()) << proxy_method->PrettyMethod(); in artQuickProxyInvokeHandler()
823 jobject rcvr_jobj = soa.AddLocalReference<jobject>(receiver); in artQuickProxyInvokeHandler()
1220 ArtMethod* called, mirror::Object* receiver, Thread* self, ArtMethod** sp) in artQuickResolutionTrampoline() argument
1316 hs.NewHandleWrapper(virtual_or_interface ? &receiver : &fake_receiver)); in artQuickResolutionTrampoline()
1336 CHECK(receiver != nullptr) << invoke_type; in artQuickResolutionTrampoline()
1337 called = receiver->GetClass()->FindVirtualMethodForVirtual(called, kRuntimePointerSize); in artQuickResolutionTrampoline()
1339 CHECK(receiver != nullptr) << invoke_type; in artQuickResolutionTrampoline()
1340 called = receiver->GetClass()->FindVirtualMethodForInterface(called, kRuntimePointerSize); in artQuickResolutionTrampoline()
1355 << 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