/art/runtime/ |
D | reflection_test.cc | 78 ScopedObjectAccess soa(env_); in GetPrimitiveClass() local 81 return soa.AddLocalReference<jclass>(c); in GetPrimitiveClass() 132 ScopedObjectAccess soa(env_); in InvokeNopMethod() local 136 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeNopMethod() 137 InvokeWithJValues(soa, receiver_ref.get(), soa.EncodeMethod(method), nullptr); in InvokeNopMethod() 141 ScopedObjectAccess soa(env_); in InvokeIdentityByteMethod() local 145 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeIdentityByteMethod() 149 JValue result = InvokeWithJValues(soa, receiver_ref.get(), soa.EncodeMethod(method), args); in InvokeIdentityByteMethod() 153 result = InvokeWithJValues(soa, receiver_ref.get(), soa.EncodeMethod(method), args); in InvokeIdentityByteMethod() 157 result = InvokeWithJValues(soa, receiver_ref.get(), soa.EncodeMethod(method), args); in InvokeIdentityByteMethod() [all …]
|
D | proxy_test.cc | 34 mirror::Class* GenerateProxyClass(ScopedObjectAccess& soa, jobject jclass_loader, in GenerateProxyClass() argument 38 … mirror::Class* javaLangObject = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;"); in GenerateProxyClass() 41 jclass javaLangClass = soa.AddLocalReference<jclass>(mirror::Class::GetJavaLangClass()); in GenerateProxyClass() 44 jobjectArray proxyClassInterfaces = soa.Env()->NewObjectArray(interfaces.size(), javaLangClass, in GenerateProxyClass() 46 soa.Self()->AssertNoPendingException(); in GenerateProxyClass() 48 soa.Env()->SetObjectArrayElement(proxyClassInterfaces, i, in GenerateProxyClass() 49 soa.AddLocalReference<jclass>(interfaces[i])); in GenerateProxyClass() 57 jobjectArray proxyClassMethods = soa.Env()->NewObjectArray( in GenerateProxyClass() 58 methods_count, soa.AddLocalReference<jclass>(mirror::Method::StaticClass()), nullptr); in GenerateProxyClass() 59 soa.Self()->AssertNoPendingException(); in GenerateProxyClass() [all …]
|
D | jni_internal.cc | 90 static void ThrowNoSuchMethodError(ScopedObjectAccess& soa, mirror::Class* c, in ThrowNoSuchMethodError() argument 94 soa.Self()->ThrowNewExceptionF("Ljava/lang/NoSuchMethodError;", in ThrowNoSuchMethodError() 99 static void ReportInvalidJNINativeMethod(const ScopedObjectAccess& soa, mirror::Class* c, in ReportInvalidJNINativeMethod() argument 105 soa.Self()->ThrowNewExceptionF("Ljava/lang/NoSuchMethodError;", in ReportInvalidJNINativeMethod() 122 static jmethodID FindMethodID(ScopedObjectAccess& soa, jclass jni_class, in FindMethodID() argument 125 mirror::Class* c = EnsureInitialized(soa.Self(), soa.Decode<mirror::Class*>(jni_class)); in FindMethodID() 144 ThrowNoSuchMethodError(soa, c, name, sig, is_static ? "static" : "non-static"); in FindMethodID() 147 return soa.EncodeMethod(method); in FindMethodID() 150 static mirror::ClassLoader* GetClassLoader(const ScopedObjectAccess& soa) in GetClassLoader() argument 152 ArtMethod* method = soa.Self()->GetCurrentMethod(nullptr); in GetClassLoader() [all …]
|
D | transaction_test.cc | 32 ScopedObjectAccess soa(Thread::Current()); in testTransactionAbort() local 34 StackHandleScope<2> hs(soa.Self()); in testTransactionAbort() 36 hs.NewHandle(soa.Decode<mirror::ClassLoader*>(jclass_loader))); in testTransactionAbort() 43 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), in testTransactionAbort() 46 class_linker_->EnsureInitialized(soa.Self(), h_klass, true, true); in testTransactionAbort() 49 h_klass.Assign(class_linker_->FindSystemClass(soa.Self(), in testTransactionAbort() 52 class_linker_->EnsureInitialized(soa.Self(), h_klass, true, true); in testTransactionAbort() 56 h_klass.Assign(class_linker_->FindClass(soa.Self(), "LTransaction$AbortHelperClass;", in testTransactionAbort() 59 class_linker_->VerifyClass(soa.Self(), h_klass); in testTransactionAbort() 63 h_klass.Assign(class_linker_->FindClass(soa.Self(), tested_class_signature, class_loader)); in testTransactionAbort() [all …]
|
D | reflection.cc | 97 void BuildArgArrayFromVarArgs(const ScopedObjectAccessAlreadyRunnable& soa, in BuildArgArrayFromVarArgs() argument 117 Append(soa.Decode<mirror::Object*>(va_arg(ap, jobject))); in BuildArgArrayFromVarArgs() 133 void BuildArgArrayFromJValues(const ScopedObjectAccessAlreadyRunnable& soa, in BuildArgArrayFromJValues() argument 159 Append(soa.Decode<mirror::Object*>(args[args_offset].l)); in BuildArgArrayFromJValues() 426 static void InvokeWithArgArray(const ScopedObjectAccessAlreadyRunnable& soa, in InvokeWithArgArray() argument 431 if (UNLIKELY(soa.Env()->check_jni)) { in InvokeWithArgArray() 432 CheckMethodArguments(soa.Vm(), method->GetInterfaceMethodIfProxy(sizeof(void*)), args); in InvokeWithArgArray() 434 method->Invoke(soa.Self(), args, arg_array->GetNumBytes(), result, shorty); in InvokeWithArgArray() 437 JValue InvokeWithVarArgs(const ScopedObjectAccessAlreadyRunnable& soa, jobject obj, jmethodID mid, in InvokeWithVarArgs() argument 443 if (UNLIKELY(__builtin_frame_address(0) < soa.Self()->GetStackEnd())) { in InvokeWithVarArgs() [all …]
|
D | intern_table_test.cc | 30 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local 32 StackHandleScope<4> hs(soa.Self()); in TEST_F() 36 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "foo"))); in TEST_F() 50 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local 54 StackHandleScope<1> hs(soa.Self()); in TEST_F() 56 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "foo"))); in TEST_F() 98 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local 102 StackHandleScope<5> hs(soa.Self()); in TEST_F() 104 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello"))); in TEST_F() 106 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "world"))); in TEST_F() [all …]
|
D | check_jni.cc | 157 bool CheckInstanceFieldID(ScopedObjectAccess& soa, jobject java_object, jfieldID fid) in CheckInstanceFieldID() argument 159 mirror::Object* o = soa.Decode<mirror::Object*>(java_object); in CheckInstanceFieldID() 172 ArtField* f = CheckFieldID(soa, fid); in CheckInstanceFieldID() 200 bool CheckMethodAndSig(ScopedObjectAccess& soa, jobject jobj, jclass jc, in CheckMethodAndSig() argument 203 ArtMethod* m = CheckMethodID(soa, mid); in CheckMethodAndSig() 223 mirror::Class* c = soa.Decode<mirror::Class*>(jc); in CheckMethodAndSig() 231 mirror::Object* o = soa.Decode<mirror::Object*>(jobj); in CheckMethodAndSig() 248 bool CheckStaticFieldID(ScopedObjectAccess& soa, jclass java_class, jfieldID fid) in CheckStaticFieldID() argument 250 mirror::Class* c = soa.Decode<mirror::Class*>(java_class); in CheckStaticFieldID() 251 ArtField* f = CheckFieldID(soa, fid); in CheckStaticFieldID() [all …]
|
D | class_linker_test.cc | 628 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local 645 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local 651 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local 665 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local 666 StackHandleScope<1> hs(soa.Self()); in TEST_F() 668 hs.NewHandle(soa.Decode<mirror::ClassLoader*>(LoadDex("Nested")))); in TEST_F() 670 mirror::Class* outer = class_linker_->FindClass(soa.Self(), "LNested;", class_loader); in TEST_F() 675 mirror::Class* inner = class_linker_->FindClass(soa.Self(), "LNested$Inner;", class_loader); in TEST_F() 682 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local 696 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local [all …]
|
/art/runtime/native/ |
D | java_lang_Class.cc | 43 const ScopedFastNativeObjectAccess& soa, jobject java_class) in DecodeClass() argument 45 mirror::Class* c = soa.Decode<mirror::Class*>(java_class); in DecodeClass() 57 ScopedFastNativeObjectAccess soa(env); in Class_classForName() local 67 soa.Self()->ThrowNewExceptionF("Ljava/lang/ClassNotFoundException;", in Class_classForName() 73 StackHandleScope<2> hs(soa.Self()); in Class_classForName() 74 …Handle<mirror::ClassLoader> class_loader(hs.NewHandle(soa.Decode<mirror::ClassLoader*>(javaLoader)… in Class_classForName() 77 hs.NewHandle(class_linker->FindClass(soa.Self(), descriptor.c_str(), class_loader))); in Class_classForName() 91 class_linker->EnsureInitialized(soa.Self(), c, true, true); in Class_classForName() 93 return soa.AddLocalReference<jclass>(c.Get()); in Class_classForName() 97 ScopedFastNativeObjectAccess soa(env); in Class_getNameNative() local [all …]
|
D | java_lang_String.cc | 33 ScopedFastNativeObjectAccess soa(env); in String_charAt() local 34 return soa.Decode<mirror::String*>(java_this)->CharAt(index); in String_charAt() 38 ScopedFastNativeObjectAccess soa(env); in String_compareTo() local 43 return soa.Decode<mirror::String*>(java_this)->CompareTo(soa.Decode<mirror::String*>(java_rhs)); in String_compareTo() 48 ScopedFastNativeObjectAccess soa(env); in String_concat() local 53 StackHandleScope<2> hs(soa.Self()); in String_concat() 54 Handle<mirror::String> string_this(hs.NewHandle(soa.Decode<mirror::String*>(java_this))); in String_concat() 55 Handle<mirror::String> string_arg(hs.NewHandle(soa.Decode<mirror::String*>(java_string_arg))); in String_concat() 59 mirror::String* result = mirror::String::AllocFromStrings(soa.Self(), string_this, string_arg); in String_concat() 60 return soa.AddLocalReference<jstring>(result); in String_concat() [all …]
|
D | dalvik_system_VMStack.cc | 31 static jobject GetThreadStack(const ScopedFastNativeObjectAccess& soa, jobject peer) in GetThreadStack() argument 34 if (soa.Decode<mirror::Object*>(peer) == soa.Self()->GetPeer()) { in GetThreadStack() 35 trace = soa.Self()->CreateInternalStackTrace<false>(soa); in GetThreadStack() 38 soa.Self()->TransitionFromRunnableToSuspended(kNative); in GetThreadStack() 44 CHECK_EQ(soa.Self()->TransitionFromSuspendedToRunnable(), kNative); in GetThreadStack() 45 trace = thread->CreateInternalStackTrace<false>(soa); in GetThreadStack() 46 soa.Self()->TransitionFromRunnableToSuspended(kNative); in GetThreadStack() 55 CHECK_EQ(soa.Self()->TransitionFromSuspendedToRunnable(), kNative); in GetThreadStack() 62 ScopedFastNativeObjectAccess soa(env); in VMStack_fillStackTraceElements() local 63 jobject trace = GetThreadStack(soa, javaThread); in VMStack_fillStackTraceElements() [all …]
|
D | sun_misc_Unsafe.cc | 30 ScopedFastNativeObjectAccess soa(env); in Unsafe_compareAndSwapInt() local 31 mirror::Object* obj = soa.Decode<mirror::Object*>(javaObj); in Unsafe_compareAndSwapInt() 40 ScopedFastNativeObjectAccess soa(env); in Unsafe_compareAndSwapLong() local 41 mirror::Object* obj = soa.Decode<mirror::Object*>(javaObj); in Unsafe_compareAndSwapLong() 50 ScopedFastNativeObjectAccess soa(env); in Unsafe_compareAndSwapObject() local 51 mirror::Object* obj = soa.Decode<mirror::Object*>(javaObj); in Unsafe_compareAndSwapObject() 52 mirror::Object* expectedValue = soa.Decode<mirror::Object*>(javaExpectedValue); in Unsafe_compareAndSwapObject() 53 mirror::Object* newValue = soa.Decode<mirror::Object*>(javaNewValue); in Unsafe_compareAndSwapObject() 61 ScopedFastNativeObjectAccess soa(env); in Unsafe_getInt() local 62 mirror::Object* obj = soa.Decode<mirror::Object*>(javaObj); in Unsafe_getInt() [all …]
|
D | java_lang_Object.cc | 31 ScopedFastNativeObjectAccess soa(env); in Object_internalClone() local 32 mirror::Object* o = soa.Decode<mirror::Object*>(java_this); in Object_internalClone() 33 return soa.AddLocalReference<jobject>(o->Clone(soa.Self())); in Object_internalClone() 37 ScopedFastNativeObjectAccess soa(env); in Object_notify() local 38 mirror::Object* o = soa.Decode<mirror::Object*>(java_this); in Object_notify() 39 o->Notify(soa.Self()); in Object_notify() 43 ScopedFastNativeObjectAccess soa(env); in Object_notifyAll() local 44 mirror::Object* o = soa.Decode<mirror::Object*>(java_this); in Object_notifyAll() 45 o->NotifyAll(soa.Self()); in Object_notifyAll() 49 ScopedFastNativeObjectAccess soa(env); in Object_wait() local [all …]
|
D | java_lang_Thread.cc | 34 ScopedFastNativeObjectAccess soa(env); in Thread_currentThread() local 35 return soa.AddLocalReference<jobject>(soa.Self()->GetPeer()); in Thread_currentThread() 43 ScopedFastNativeObjectAccess soa(env); in Thread_isInterrupted() local 44 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_isInterrupted() 45 Thread* thread = Thread::FromManagedThread(soa, java_thread); in Thread_isInterrupted() 63 ScopedObjectAccess soa(env); in Thread_nativeGetStatus() local 65 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_nativeGetStatus() 66 Thread* thread = Thread::FromManagedThread(soa, java_thread); in Thread_nativeGetStatus() 101 ScopedObjectAccess soa(env); in Thread_nativeHoldsLock() local 102 mirror::Object* object = soa.Decode<mirror::Object*>(java_object); in Thread_nativeHoldsLock() [all …]
|
D | java_lang_StringFactory.cc | 32 ScopedFastNativeObjectAccess soa(env); in StringFactory_newStringFromBytes() local 37 StackHandleScope<1> hs(soa.Self()); in StringFactory_newStringFromBytes() 38 Handle<mirror::ByteArray> byte_array(hs.NewHandle(soa.Decode<mirror::ByteArray*>(java_data))); in StringFactory_newStringFromBytes() 41 soa.Self()->ThrowNewExceptionF("Ljava/lang/StringIndexOutOfBoundsException;", in StringFactory_newStringFromBytes() 47 mirror::String* result = mirror::String::AllocFromByteArray<true>(soa.Self(), byte_count, in StringFactory_newStringFromBytes() 50 return soa.AddLocalReference<jstring>(result); in StringFactory_newStringFromBytes() 55 ScopedFastNativeObjectAccess soa(env); in StringFactory_newStringFromChars() local 56 StackHandleScope<1> hs(soa.Self()); in StringFactory_newStringFromChars() 57 Handle<mirror::CharArray> char_array(hs.NewHandle(soa.Decode<mirror::CharArray*>(java_data))); in StringFactory_newStringFromChars() 59 mirror::String* result = mirror::String::AllocFromCharArray<true>(soa.Self(), char_count, in StringFactory_newStringFromChars() [all …]
|
D | java_lang_DexCache.cc | 30 ScopedFastNativeObjectAccess soa(env); in DexCache_getDexNative() local 31 mirror::DexCache* dex_cache = soa.Decode<mirror::DexCache*>(javaDexCache); in DexCache_getDexNative() 33 DCHECK_EQ(dex_cache->GetLockOwnerThreadId(), soa.Self()->GetThreadId()); in DexCache_getDexNative() 41 DCHECK(soa.Self()->IsExceptionPending()); in DexCache_getDexNative() 53 ScopedFastNativeObjectAccess soa(env); in DexCache_getResolvedType() local 54 mirror::DexCache* dex_cache = soa.Decode<mirror::DexCache*>(javaDexCache); in DexCache_getResolvedType() 55 return soa.AddLocalReference<jobject>(dex_cache->GetResolvedType(type_index)); in DexCache_getResolvedType() 59 ScopedFastNativeObjectAccess soa(env); in DexCache_getResolvedString() local 60 mirror::DexCache* dex_cache = soa.Decode<mirror::DexCache*>(javaDexCache); in DexCache_getResolvedString() 61 return soa.AddLocalReference<jobject>(dex_cache->GetResolvedString(string_index)); in DexCache_getResolvedString() [all …]
|
D | java_lang_reflect_Constructor.cc | 37 ScopedFastNativeObjectAccess soa(env); in Constructor_newInstance() local 38 mirror::Constructor* m = soa.Decode<mirror::Constructor*>(javaMethod); in Constructor_newInstance() 39 StackHandleScope<1> hs(soa.Self()); in Constructor_newInstance() 42 soa.Self()->ThrowNewExceptionF("Ljava/lang/InstantiationException;", "Can't instantiate %s %s", in Constructor_newInstance() 49 auto* caller = GetCallingClass(soa.Self(), 1); in Constructor_newInstance() 59 soa.Self()->ThrowNewExceptionF( in Constructor_newInstance() 66 if (!Runtime::Current()->GetClassLinker()->EnsureInitialized(soa.Self(), c, true, true)) { in Constructor_newInstance() 67 DCHECK(soa.Self()->IsExceptionPending()); in Constructor_newInstance() 77 return InvokeMethod(soa, javaMethod, nullptr, javaArgs, 1); in Constructor_newInstance() 81 movable ? c->AllocObject(soa.Self()) : c->AllocNonMovableObject(soa.Self()); in Constructor_newInstance() [all …]
|
D | java_lang_reflect_Array.cc | 32 ScopedFastNativeObjectAccess soa(env); in Array_createMultiArray() local 34 StackHandleScope<2> hs(soa.Self()); in Array_createMultiArray() 35 Handle<mirror::Class> element_class(hs.NewHandle(soa.Decode<mirror::Class*>(javaElementClass))); in Array_createMultiArray() 38 mirror::Object* dimensions_obj = soa.Decode<mirror::Object*>(javaDimArray); in Array_createMultiArray() 44 mirror::Array* new_array = mirror::Array::CreateMultiArray(soa.Self(), element_class, in Array_createMultiArray() 46 return soa.AddLocalReference<jobject>(new_array); in Array_createMultiArray() 50 ScopedFastNativeObjectAccess soa(env); in Array_createObjectArray() local 56 mirror::Class* element_class = soa.Decode<mirror::Class*>(javaElementClass); in Array_createObjectArray() 59 mirror::Class* array_class = class_linker->FindArrayClass(soa.Self(), &element_class); in Array_createObjectArray() 61 CHECK(soa.Self()->IsExceptionPending()); in Array_createObjectArray() [all …]
|
D | java_lang_reflect_Field.cc | 105 ALWAYS_INLINE inline static bool CheckReceiver(const ScopedFastNativeObjectAccess& soa, in CheckReceiver() argument 109 soa.Self()->AssertThreadSuspensionIsAllowable(); in CheckReceiver() 113 StackHandleScope<2> hs(soa.Self()); in CheckReceiver() 117 if (UNLIKELY(!class_linker->EnsureInitialized(soa.Self(), h_klass, true, true))) { in CheckReceiver() 118 DCHECK(soa.Self()->IsExceptionPending()); in CheckReceiver() 125 *class_or_rcvr = soa.Decode<mirror::Object*>(j_rcvr); in CheckReceiver() 127 DCHECK(soa.Self()->IsExceptionPending()); in CheckReceiver() 134 ScopedFastNativeObjectAccess soa(env); in Field_get() local 135 mirror::Field* f = soa.Decode<mirror::Field*>(javaField); in Field_get() 137 if (!CheckReceiver(soa, javaObj, &f, &o)) { in Field_get() [all …]
|
D | java_lang_Throwable.cc | 26 ScopedFastNativeObjectAccess soa(env); in Throwable_nativeFillInStackTrace() local 27 return soa.Self()->CreateInternalStackTrace<false>(soa); in Throwable_nativeFillInStackTrace() 34 ScopedFastNativeObjectAccess soa(env); in Throwable_nativeGetStackTrace() local 35 return Thread::InternalStackTraceToStackTraceElementArray(soa, javaStackState); in Throwable_nativeGetStackTrace()
|
D | java_lang_reflect_Method.cc | 33 ScopedFastNativeObjectAccess soa(env); in Method_invoke() local 34 return InvokeMethod(soa, javaMethod, javaReceiver, javaArgs); in Method_invoke() 38 ScopedFastNativeObjectAccess soa(env); in Method_getExceptionTypesNative() local 39 ArtMethod* proxy_method = ArtMethod::FromReflectedMethod(soa, javaMethod); in Method_getExceptionTypesNative() 54 return soa.AddLocalReference<jobject>(declared_exceptions->Clone(soa.Self())); in Method_getExceptionTypesNative()
|
/art/runtime/mirror/ |
D | object_test.cc | 97 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local 98 StackHandleScope<2> hs(soa.Self()); in TEST_F() 100 hs.NewHandle(class_linker_->AllocObjectArray<Object>(soa.Self(), 256))); in TEST_F() 102 Object* clone = a1->Clone(soa.Self()); in TEST_F() 108 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local 109 StackHandleScope<2> hs(soa.Self()); in TEST_F() 111 hs.NewHandle(class_linker_->AllocObjectArray<Object>(soa.Self(), 2))); in TEST_F() 122 Class* aioobe = class_linker_->FindSystemClass(soa.Self(), in TEST_F() 126 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F() 127 EXPECT_EQ(aioobe, soa.Self()->GetException()->GetClass()); in TEST_F() [all …]
|
/art/runtime/interpreter/ |
D | interpreter.cc | 34 ScopedObjectAccessUnchecked soa(self); in InterpreterJni() local 39 ScopedLocalRef<jclass> klass(soa.Env(), in InterpreterJni() 40 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni() 44 jresult = fn(soa.Env(), klass.get()); in InterpreterJni() 46 result->SetL(soa.Decode<Object*>(jresult)); in InterpreterJni() 50 ScopedLocalRef<jclass> klass(soa.Env(), in InterpreterJni() 51 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni() 53 fn(soa.Env(), klass.get()); in InterpreterJni() 57 ScopedLocalRef<jclass> klass(soa.Env(), in InterpreterJni() 58 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni() [all …]
|
/art/runtime/entrypoints/ |
D | entrypoint_utils.cc | 170 ScopedObjectAccessUnchecked soa(env); in ThrowStackOverflowError() local 171 stack_state_val.reset(soa.Self()->CreateInternalStackTrace<false>(soa)); in ThrowStackOverflowError() 227 JValue InvokeProxyInvocationHandler(ScopedObjectAccessAlreadyRunnable& soa, const char* shorty, in InvokeProxyInvocationHandler() argument 230 DCHECK(soa.Env()->IsInstanceOf(rcvr_jobj, WellKnownClasses::java_lang_reflect_Proxy)); in InvokeProxyInvocationHandler() 233 soa.Self()->AssertThreadSuspensionIsAllowable(); in InvokeProxyInvocationHandler() 239 args_jobj = soa.Env()->NewObjectArray(args.size(), WellKnownClasses::java_lang_Object, nullptr); in InvokeProxyInvocationHandler() 241 CHECK(soa.Self()->IsExceptionPending()); in InvokeProxyInvocationHandler() 247 soa.Env()->SetObjectArrayElement(args_jobj, i, val); in InvokeProxyInvocationHandler() 253 CHECK(soa.Self()->IsExceptionPending()); in InvokeProxyInvocationHandler() 256 soa.Decode<mirror::ObjectArray<mirror::Object>* >(args_jobj)->Set<false>(i, val); in InvokeProxyInvocationHandler() [all …]
|
/art/compiler/dex/ |
D | mir_field_info.cc | 47 ScopedObjectAccess soa(Thread::Current()); in Resolve() local 48 StackHandleScope<3> hs(soa.Self()); in Resolve() 51 hs.NewHandle(compiler_driver->GetClassLoader(soa, mUnit))); in Resolve() 53 compiler_driver->ResolveCompilingMethodsClass(soa, dex_cache, class_loader, mUnit))); in Resolve() 62 resolved_field = compiler_driver->ResolveField(soa, dex_cache, class_loader, mUnit, in Resolve() 71 StackHandleScope<1> hs2(soa.Self()); in Resolve() 74 soa, h_dex_cache, class_loader, field_idx_ptr->dex_file, field_idx, false); in Resolve() 112 ScopedObjectAccess soa(Thread::Current()); in Resolve() local 113 StackHandleScope<3> hs(soa.Self()); in Resolve() 116 hs.NewHandle(compiler_driver->GetClassLoader(soa, mUnit))); in Resolve() [all …]
|