Lines Matching defs:soa
36 jobject InvokeMethod(const ScopedObjectAccess& soa, jobject javaMethod, jobject javaReceiver,
38 jmethodID mid = soa.Env()->FromReflectedMethod(javaMethod);
39 mirror::ArtMethod* m = soa.DecodeMethod(mid);
49 receiver = soa.Decode<mirror::Object*>(javaReceiver);
56 mid = soa.EncodeMethod(m);
61 soa.Decode<mirror::ObjectArray<mirror::Object>*>(javaArgs);
83 args[i].l = soa.AddLocalReference<jobject>(arg);
88 JValue value(InvokeWithJValues(soa, javaReceiver, mid, args.get()));
91 if (soa.Self()->IsExceptionPending()) {
92 jthrowable th = soa.Env()->ExceptionOccurred();
93 soa.Env()->ExceptionClear();
94 jclass exception_class = soa.Env()->FindClass("java/lang/reflect/InvocationTargetException");
95 jmethodID mid = soa.Env()->GetMethodID(exception_class, "<init>", "(Ljava/lang/Throwable;)V");
96 jobject exception_instance = soa.Env()->NewObject(exception_class, mid, th);
97 soa.Env()->Throw(reinterpret_cast<jthrowable>(exception_instance));
102 return soa.AddLocalReference<jobject>(BoxPrimitive(mh.GetReturnType()->GetPrimitiveType(), value));
251 ScopedObjectAccessUnchecked soa(Thread::Current());
253 CHECK_EQ(soa.Self()->GetState(), kRunnable);
264 soa.DecodeMethod(m)->Invoke(soa.Self(), arg_array.GetArray(), arg_array.GetNumBytes(),