Home
last modified time | relevance | path

Searched refs:receiver (Results 1 – 25 of 39) 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.cc482 HInstruction* receiver = invoke_instruction->InputAt(0); in TryInline() local
483 while (receiver->IsNullCheck()) { in TryInline()
486 receiver = receiver->InputAt(0); in TryInline()
488 receiver_info = receiver->GetReferenceTypeInfo(); in TryInline()
497 receiver_info = receiver->GetReferenceTypeInfo(); in TryInline()
500 DCHECK(receiver_info.IsValid()) << "Invalid RTI for " << receiver->DebugName(); in TryInline()
797 HInstruction* receiver, in BuildGetReceiverClass() argument
802 receiver, in BuildGetReceiverClass()
882 HInstruction* receiver = invoke_instruction->InputAt(0); in TryInlineMonomorphicCall() local
894 AddTypeGuard(receiver, in TryInlineMonomorphicCall()
[all …]
Dreference_type_propagation.cc193 static void BoundTypeIn(HInstruction* receiver, in BoundTypeIn() argument
200 DCHECK(!receiver->IsLoadClass()) << "We should not replace HLoadClass instructions"; in BoundTypeIn()
201 const HUseList<HInstruction*>& uses = receiver->GetUses(); in BoundTypeIn()
219 insert_point, receiver, class_rti, start_instruction, start_block)) { in BoundTypeIn()
220 bound_type = new (receiver->GetBlock()->GetGraph()->GetAllocator()) HBoundType(receiver); in BoundTypeIn()
236 if (receiver->IsNullCheck()) { in BoundTypeIn()
237 BoundTypeIn(receiver->InputAt(0), start_block, start_instruction, class_rti); in BoundTypeIn()
271 HInstruction* receiver = field_get->InputAt(0); in BoundTypeForClassCheck() local
272 ReferenceTypeInfo receiver_type = receiver->GetReferenceTypeInfo(); in BoundTypeForClassCheck()
291 BoundTypeIn(receiver, trueBlock, /* start_instruction= */ nullptr, class_rti); in BoundTypeForClassCheck()
Dinliner.h250 HInstruction* receiver,
276 HInstruction* AddTypeGuard(HInstruction* receiver,
/art/runtime/
Dreflection_test.cc89 ObjPtr<mirror::Object>* receiver, in ReflectionTestMakeInterpreted() argument
117 *receiver = nullptr; in ReflectionTestMakeInterpreted()
126 *receiver = c->AllocObject(self); in ReflectionTestMakeInterpreted()
130 HandleWrapperObjPtr<mirror::Object> h(hs.NewHandleWrapper(receiver)); in ReflectionTestMakeInterpreted()
139 ObjPtr<mirror::Object> receiver; in InvokeNopMethod() local
140 ReflectionTestMakeInterpreted(&method, &receiver, is_static, "nop", "()V"); in InvokeNopMethod()
141 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeNopMethod()
148 ObjPtr<mirror::Object> receiver; in InvokeIdentityByteMethod() local
149 ReflectionTestMakeInterpreted(&method, &receiver, is_static, "identity", "(B)B"); in InvokeIdentityByteMethod()
150 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 …]
Dart_method-inl.h195 ObjPtr<mirror::Object> receiver,
201 auto vregs = detail::MaterializeVRegs<'L', ArgType...>(receiver, args...);
213 ObjPtr<mirror::Object> receiver,
218 DCHECK(receiver != nullptr);
219 return InvokeInstance<ReturnType, ArgType...>(self, receiver, args...);
225 ObjPtr<mirror::Object> receiver,
230 DCHECK(receiver != nullptr);
232 receiver->GetClass()->FindVirtualMethodForVirtual(this, kRuntimePointerSize);
234 return target_method->InvokeInstance<ReturnType, ArgType...>(self, receiver, args...);
240 ObjPtr<mirror::Object> receiver,
[all …]
Dreflection.h104 jobject receiver,
113 ObjPtr<mirror::Object> receiver,
Dmethod_handles.cc453 ObjPtr<mirror::Object> receiver(shadow_frame.GetVRegReference(receiver_reg)); in RefineTargetMethod() local
455 if (receiver == nullptr || receiver->GetClass() != declaring_class) { in RefineTargetMethod()
458 if (!VerifyObjectIsClass(receiver, declaring_class)) { in RefineTargetMethod()
462 return receiver->GetClass()->FindVirtualMethodForVirtualOrInterface( in RefineTargetMethod()
712 ObjPtr<mirror::Object> receiver = shadow_frame.GetVRegReference(operands->GetOperand(0)); in DoVarHandleInvokeTranslation() local
713 if (receiver == nullptr) { in DoVarHandleInvokeTranslation()
719 Handle<mirror::VarHandle> vh(hs.NewHandle(ObjPtr<mirror::VarHandle>::DownCast(receiver))); in DoVarHandleInvokeTranslation()
Dart_method.cc180 void ArtMethod::ThrowInvocationTimeError(ObjPtr<mirror::Object> receiver) { in ThrowInvocationTimeError() argument
184 } else if (GetDeclaringClass()->IsInterface() && receiver != nullptr) { in ThrowInvocationTimeError()
189 ObjPtr<mirror::Class> current = receiver->GetClass(); in ThrowInvocationTimeError()
197 ThrowIllegalAccessErrorForImplementingMethod(receiver->GetClass(), np_method, this); in ThrowInvocationTimeError()
393 mirror::Object* receiver = in Invoke() local
396 self, this, receiver, args + 1, result, /*stay_in_interpreter=*/ true); in Invoke()
Dart_method.h626 void ThrowInvocationTimeError(ObjPtr<mirror::Object> receiver)
700 ObjPtr<mirror::Object> receiver,
707 ObjPtr<mirror::Object> receiver,
714 ObjPtr<mirror::Object> receiver,
721 ObjPtr<mirror::Object> receiver,
/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.cc110 ObjPtr<mirror::Object> receiver = in Constructor_newInstance0() local
112 if (UNLIKELY(receiver == nullptr)) { in Constructor_newInstance0()
116 jobject javaReceiver = soa.AddLocalReference<jobject>(receiver); in Constructor_newInstance0()
118 InvokeConstructor(soa, constructor_art_method, receiver, javaArgs); in Constructor_newInstance0()
/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.cc728 Handle<mirror::Object> receiver = hs.NewHandle(c->AllocObject(self)); in UnstartedConstructorNewInstance0() local
729 if (receiver == nullptr) { in UnstartedConstructorNewInstance0()
740 soa.AddLocalReference<jobject>(receiver.Get())); in UnstartedConstructorNewInstance0()
753 result->SetL(receiver.Get()); in UnstartedConstructorNewInstance0()
1877 [[maybe_unused]] mirror::Object* receiver, in UnstartedJNIVMRuntimeIs64Bit() argument
1888 [[maybe_unused]] mirror::Object* receiver, in UnstartedJNIVMRuntimeNewUnpaddedArray() argument
1910 [[maybe_unused]] mirror::Object* receiver, in UnstartedJNIVMStackGetCallingClassLoader() argument
1918 [[maybe_unused]] mirror::Object* receiver, in UnstartedJNIVMStackGetStackClass2() argument
1930 [[maybe_unused]] mirror::Object* receiver, in UnstartedJNIMathLog() argument
1940 [[maybe_unused]] mirror::Object* receiver, in UnstartedJNIMathExp() argument
[all …]
Dinterpreter.cc49 ObjPtr<mirror::Object> receiver, in InterpreterJni() argument
192 soa.AddLocalReference<jobject>(receiver)); in InterpreterJni()
203 soa.AddLocalReference<jobject>(receiver)); in InterpreterJni()
210 soa.AddLocalReference<jobject>(receiver)); in InterpreterJni()
224 soa.AddLocalReference<jobject>(receiver)); in InterpreterJni()
349 ObjPtr<mirror::Object> receiver, in EnterInterpreterFromInvoke() argument
377 method->ThrowInvocationTimeError(receiver); in EnterInterpreterFromInvoke()
394 CHECK(receiver != nullptr); in EnterInterpreterFromInvoke()
395 shadow_frame->SetVRegReference(cur_reg, receiver); in EnterInterpreterFromInvoke()
438 UnstartedRuntime::Jni(self, method, receiver.Ptr(), args, result); in EnterInterpreterFromInvoke()
[all …]
Dunstarted_runtime.h66 mirror::Object* receiver,
86 mirror::Object* receiver, \
Dunstarted_runtime_test.h67 mirror::Object* receiver, \ in UNSTARTED_RUNTIME_DIRECT_LIST()
71 interpreter::UnstartedRuntime::UnstartedJNI ## Name(self, method, receiver, args, result); \ in UNSTARTED_RUNTIME_DIRECT_LIST()
Dinterpreter.h43 ObjPtr<mirror::Object> receiver,
/art/test/853-checker-inlining/
Dinfo.txt1 Test that we can inline when receiver type isn't exact, but the resolved method
/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/runtime/entrypoints/quick/
Dquick_trampoline_entrypoints.cc832 ArtMethod* proxy_method, mirror::Object* receiver, Thread* self, ArtMethod** sp) in artQuickProxyInvokeHandler() argument
835 DCHECK(receiver->GetClass()->IsProxyClass()) << proxy_method->PrettyMethod(); in artQuickProxyInvokeHandler()
847 jobject rcvr_jobj = soa.AddLocalReference<jobject>(receiver); in artQuickProxyInvokeHandler()
1136 ArtMethod* called, mirror::Object* receiver, Thread* self, ArtMethod** sp) in artQuickResolutionTrampoline() argument
1231 hs.NewHandleWrapper(virtual_or_interface ? &receiver : &fake_receiver)); in artQuickResolutionTrampoline()
1246 CHECK(receiver != nullptr) << invoke_type; in artQuickResolutionTrampoline()
1247 called = receiver->GetClass()->FindVirtualMethodForVirtual(called, kRuntimePointerSize); in artQuickResolutionTrampoline()
1249 CHECK(receiver != nullptr) << invoke_type; in artQuickResolutionTrampoline()
1250 called = receiver->GetClass()->FindVirtualMethodForInterface(called, kRuntimePointerSize); in artQuickResolutionTrampoline()
1265 << mirror::Object::PrettyTypeOf(receiver) << " " in artQuickResolutionTrampoline()
/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()

12