/art/benchmark/jobject-benchmark/ |
D | jobject_benchmark.cc | 28 ScopedObjectAccess soa(env); in Java_JObjectBenchmark_timeAddRemoveLocal() local 29 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(jobj); in Java_JObjectBenchmark_timeAddRemoveLocal() 32 jobject ref = soa.Env()->AddLocalReference<jobject>(obj); in Java_JObjectBenchmark_timeAddRemoveLocal() 33 soa.Env()->DeleteLocalRef(ref); in Java_JObjectBenchmark_timeAddRemoveLocal() 39 ScopedObjectAccess soa(env); in Java_JObjectBenchmark_timeDecodeLocal() local 40 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(jobj); in Java_JObjectBenchmark_timeDecodeLocal() 42 jobject ref = soa.Env()->AddLocalReference<jobject>(obj); in Java_JObjectBenchmark_timeDecodeLocal() 44 CHECK_EQ(soa.Decode<mirror::Object>(ref), obj); in Java_JObjectBenchmark_timeDecodeLocal() 46 soa.Env()->DeleteLocalRef(ref); in Java_JObjectBenchmark_timeDecodeLocal() 51 ScopedObjectAccess soa(env); in Java_JObjectBenchmark_timeAddRemoveGlobal() local [all …]
|
/art/runtime/ |
D | method_handles_test.cc | 81 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local 83 StackHandleScope<2> hs(soa.Self()); in TEST_F() 87 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F() 89 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F() 93 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local 95 StackHandleScope<2> hs(soa.Self()); in TEST_F() 100 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F() 101 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F() 106 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local 108 StackHandleScope<2> hs(soa.Self()); in TEST_F() [all …]
|
D | proxy_test.h | 36 ObjPtr<mirror::Class> GenerateProxyClass(ScopedObjectAccess& soa, in GenerateProxyClass() argument 42 StackHandleScope<1> hs(soa.Self()); in GenerateProxyClass() 46 jclass javaLangClass = soa.AddLocalReference<jclass>(GetClassRoot<mirror::Class>()); in GenerateProxyClass() 50 soa.Env()->NewObjectArray(interfaces.size(), javaLangClass, /* initialElement= */ nullptr); in GenerateProxyClass() 51 soa.Self()->AssertNoPendingException(); in GenerateProxyClass() 53 soa.Env()->SetObjectArrayElement(proxyClassInterfaces, i, in GenerateProxyClass() 54 soa.AddLocalReference<jclass>(interfaces[i].Get())); in GenerateProxyClass() 62 jobjectArray proxyClassMethods = soa.Env()->NewObjectArray( in GenerateProxyClass() 64 soa.AddLocalReference<jclass>(GetClassRoot<mirror::Method>()), in GenerateProxyClass() 66 soa.Self()->AssertNoPendingException(); in GenerateProxyClass() [all …]
|
D | reflection_test.cc | 83 ScopedObjectAccess soa(env_); in GetPrimitiveClass() local 86 return soa.AddLocalReference<jclass>(c); in GetPrimitiveClass() 138 ScopedObjectAccess soa(env_); in InvokeNopMethod() local 142 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeNopMethod() 143 InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), nullptr); in InvokeNopMethod() 147 ScopedObjectAccess soa(env_); in InvokeIdentityByteMethod() local 151 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeIdentityByteMethod() 155 JValue result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityByteMethod() 159 result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityByteMethod() 163 result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityByteMethod() [all …]
|
D | intern_table_test.cc | 33 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local 35 StackHandleScope<4> hs(soa.Self()); in TEST_F() 39 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "foo"))); in TEST_F() 55 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local 59 StackHandleScope<1> hs(soa.Self()); in TEST_F() 61 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "foo"))); in TEST_F() 74 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local 78 GcRoot<mirror::String> str(mirror::String::AllocFromModifiedUtf8(soa.Self(), "00000000")); in TEST_F() 115 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local 119 StackHandleScope<5> hs(soa.Self()); in TEST_F() [all …]
|
D | transaction_test.cc | 34 ScopedObjectAccess soa(Thread::Current()); in testTransactionAbort() local 36 StackHandleScope<2> hs(soa.Self()); in testTransactionAbort() 38 hs.NewHandle(soa.Decode<mirror::ClassLoader>(jclass_loader))); in testTransactionAbort() 45 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), in testTransactionAbort() 48 class_linker_->EnsureInitialized(soa.Self(), h_klass, true, true); in testTransactionAbort() 51 h_klass.Assign(class_linker_->FindSystemClass(soa.Self(), in testTransactionAbort() 54 class_linker_->EnsureInitialized(soa.Self(), h_klass, true, true); in testTransactionAbort() 58 h_klass.Assign(class_linker_->FindClass(soa.Self(), "LTransaction$AbortHelperClass;", in testTransactionAbort() 61 class_linker_->VerifyClass(soa.Self(), h_klass); in testTransactionAbort() 65 h_klass.Assign(class_linker_->FindClass(soa.Self(), tested_class_signature, class_loader)); in testTransactionAbort() [all …]
|
D | proxy_test.cc | 47 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local 49 StackHandleScope<4> hs(soa.Self()); in TEST_F() 51 hs.NewHandle(soa.Decode<mirror::ClassLoader>(jclass_loader))); in TEST_F() 54 class_linker_->FindClass(soa.Self(), "LInterfaces$I;", class_loader))); in TEST_F() 56 class_linker_->FindClass(soa.Self(), "LInterfaces$J;", class_loader))); in TEST_F() 64 GenerateProxyClass(soa, jclass_loader, class_linker_, "$Proxy1234", interfaces))); in TEST_F() 71 EXPECT_OBJ_PTR_EQ(I.Get(), mirror::Class::GetDirectInterface(soa.Self(), proxy_class.Get(), 0)); in TEST_F() 72 EXPECT_OBJ_PTR_EQ(J.Get(), mirror::Class::GetDirectInterface(soa.Self(), proxy_class.Get(), 1)); in TEST_F() 81 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local 83 StackHandleScope<9> hs(soa.Self()); in TEST_F() [all …]
|
/art/runtime/native/ |
D | java_lang_String.cc | 37 ScopedFastNativeObjectAccess soa(env); in String_charAt() local 38 return soa.Decode<mirror::String>(java_this)->CharAt(index); in String_charAt() 42 ScopedFastNativeObjectAccess soa(env); in String_compareTo() local 47 return soa.Decode<mirror::String>(java_this)->CompareTo(soa.Decode<mirror::String>(java_rhs)); in String_compareTo() 52 ScopedFastNativeObjectAccess soa(env); in String_concat() local 57 StackHandleScope<2> hs(soa.Self()); in String_concat() 58 Handle<mirror::String> string_this(hs.NewHandle(soa.Decode<mirror::String>(java_this))); in String_concat() 59 Handle<mirror::String> string_arg(hs.NewHandle(soa.Decode<mirror::String>(java_string_arg))); in String_concat() 64 mirror::String::AllocFromStrings(soa.Self(), string_this, string_arg); in String_concat() 65 return soa.AddLocalReference<jstring>(result); in String_concat() [all …]
|
D | java_lang_Class.cc | 148 const ScopedFastNativeObjectAccess& soa, jobject java_class) in DecodeClass() argument 150 ObjPtr<mirror::Class> c = soa.Decode<mirror::Class>(java_class); in DecodeClass() 162 ScopedFastNativeObjectAccess soa(env); in Class_classForName() local 172 soa.Self()->ThrowNewExceptionF("Ljava/lang/ClassNotFoundException;", in Class_classForName() 178 StackHandleScope<2> hs(soa.Self()); in Class_classForName() 180 hs.NewHandle(soa.Decode<mirror::ClassLoader>(javaLoader))); in Class_classForName() 183 hs.NewHandle(class_linker->FindClass(soa.Self(), descriptor.c_str(), class_loader))); in Class_classForName() 199 class_linker->EnsureInitialized(soa.Self(), c, true, true); in Class_classForName() 201 return soa.AddLocalReference<jclass>(c.Get()); in Class_classForName() 205 ScopedFastNativeObjectAccess soa(env); in Class_getPrimitiveClass() local [all …]
|
D | java_lang_Object.cc | 29 ScopedFastNativeObjectAccess soa(env); in Object_internalClone() local 30 ObjPtr<mirror::Object> o = soa.Decode<mirror::Object>(java_this); in Object_internalClone() 31 return soa.AddLocalReference<jobject>(o->Clone(soa.Self())); in Object_internalClone() 35 ScopedFastNativeObjectAccess soa(env); in Object_notify() local 36 soa.Decode<mirror::Object>(java_this)->Notify(soa.Self()); in Object_notify() 40 ScopedFastNativeObjectAccess soa(env); in Object_notifyAll() local 41 soa.Decode<mirror::Object>(java_this)->NotifyAll(soa.Self()); in Object_notifyAll() 45 ScopedFastNativeObjectAccess soa(env); in Object_waitJI() local 46 soa.Decode<mirror::Object>(java_this)->Wait(soa.Self(), ms, ns); in Object_waitJI() 50 ScopedFastNativeObjectAccess soa(env); in Object_identityHashCodeNative() local [all …]
|
D | dalvik_system_VMStack.cc | 40 static ResultT GetThreadStack(const ScopedFastNativeObjectAccess& soa, in GetThreadStack() argument 45 ObjPtr<mirror::Object> decoded_peer = soa.Decode<mirror::Object>(peer); in GetThreadStack() 46 if (decoded_peer == soa.Self()->GetPeer()) { in GetThreadStack() 47 trace = fn(soa.Self(), soa); in GetThreadStack() 58 ScopedThreadSuspension sts(soa.Self(), kNative); in GetThreadStack() 68 ScopedObjectAccess soa2(soa.Self()); in GetThreadStack() 69 trace = fn(thread, soa); in GetThreadStack() 84 ScopedFastNativeObjectAccess soa(env); in VMStack_fillStackTraceElements() local 89 jobject trace = GetThreadStack(soa, javaThread, fn); in VMStack_fillStackTraceElements() 94 Thread::InternalStackTraceToStackTraceElementArray(soa, trace, javaSteArray, &depth); in VMStack_fillStackTraceElements() [all …]
|
D | java_lang_reflect_Constructor.cc | 41 ScopedFastNativeObjectAccess soa(env); in Constructor_getExceptionTypes() local 42 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod) in Constructor_getExceptionTypes() 51 mirror::ObjectArray<mirror::Class>::Alloc(soa.Self(), class_array_class, 0); in Constructor_getExceptionTypes() 52 return soa.AddLocalReference<jobjectArray>(empty_array); in Constructor_getExceptionTypes() 54 return soa.AddLocalReference<jobjectArray>(result_array); in Constructor_getExceptionTypes() 64 ScopedFastNativeObjectAccess soa(env); in Constructor_newInstance0() local 65 ObjPtr<mirror::Constructor> m = soa.Decode<mirror::Constructor>(javaMethod); in Constructor_newInstance0() 67 StackHandleScope<1> hs(soa.Self()); in Constructor_newInstance0() 70 soa.Self()->ThrowNewExceptionF("Ljava/lang/InstantiationException;", "Can't instantiate %s %s", in Constructor_newInstance0() 79 ObjPtr<mirror::Class> caller = GetCallingClass(soa.Self(), 2); in Constructor_newInstance0() [all …]
|
D | java_lang_reflect_Executable.cc | 43 ScopedFastNativeObjectAccess soa(env); in Executable_getDeclaredAnnotationsNative() local 44 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod); in Executable_getDeclaredAnnotationsNative() 48 soa.Decode<mirror::Class>(WellKnownClasses::java_lang_annotation_Annotation__array); in Executable_getDeclaredAnnotationsNative() 50 mirror::ObjectArray<mirror::Object>::Alloc(soa.Self(), annotation_array_class, 0); in Executable_getDeclaredAnnotationsNative() 51 return soa.AddLocalReference<jobjectArray>(empty_array); in Executable_getDeclaredAnnotationsNative() 53 return soa.AddLocalReference<jobjectArray>(annotations::GetAnnotationsForMethod(method)); in Executable_getDeclaredAnnotationsNative() 59 ScopedFastNativeObjectAccess soa(env); in Executable_getAnnotationNative() local 60 StackHandleScope<1> hs(soa.Self()); in Executable_getAnnotationNative() 61 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod); in Executable_getAnnotationNative() 65 Handle<mirror::Class> klass(hs.NewHandle(soa.Decode<mirror::Class>(annotationType))); in Executable_getAnnotationNative() [all …]
|
D | java_lang_StringFactory.cc | 35 ScopedFastNativeObjectAccess soa(env); in StringFactory_newStringFromBytes() local 40 StackHandleScope<1> hs(soa.Self()); in StringFactory_newStringFromBytes() 41 Handle<mirror::ByteArray> byte_array(hs.NewHandle(soa.Decode<mirror::ByteArray>(java_data))); in StringFactory_newStringFromBytes() 44 soa.Self()->ThrowNewExceptionF("Ljava/lang/StringIndexOutOfBoundsException;", in StringFactory_newStringFromBytes() 50 ObjPtr<mirror::String> result = mirror::String::AllocFromByteArray<true>(soa.Self(), in StringFactory_newStringFromBytes() 56 return soa.AddLocalReference<jstring>(result); in StringFactory_newStringFromBytes() 63 ScopedFastNativeObjectAccess soa(env); in StringFactory_newStringFromChars() local 64 StackHandleScope<1> hs(soa.Self()); in StringFactory_newStringFromChars() 65 Handle<mirror::CharArray> char_array(hs.NewHandle(soa.Decode<mirror::CharArray>(java_data))); in StringFactory_newStringFromChars() 67 ObjPtr<mirror::String> result = mirror::String::AllocFromCharArray<true>(soa.Self(), in StringFactory_newStringFromChars() [all …]
|
D | java_lang_Thread.cc | 35 ScopedFastNativeObjectAccess soa(env); in Thread_currentThread() local 36 return soa.AddLocalReference<jobject>(soa.Self()->GetPeer()); in Thread_currentThread() 44 ScopedFastNativeObjectAccess soa(env); in Thread_isInterrupted() local 45 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_isInterrupted() 46 Thread* thread = Thread::FromManagedThread(soa, java_thread); in Thread_isInterrupted() 73 ScopedObjectAccess soa(env); in Thread_nativeGetStatus() local 75 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_nativeGetStatus() 76 Thread* thread = Thread::FromManagedThread(soa, java_thread); in Thread_nativeGetStatus() 116 ScopedObjectAccess soa(env); in Thread_holdsLock() local 117 ObjPtr<mirror::Object> object = soa.Decode<mirror::Object>(java_object); in Thread_holdsLock() [all …]
|
D | java_lang_reflect_Array.cc | 36 ScopedFastNativeObjectAccess soa(env); in Array_createMultiArray() local 38 StackHandleScope<2> hs(soa.Self()); in Array_createMultiArray() 39 Handle<mirror::Class> element_class(hs.NewHandle(soa.Decode<mirror::Class>(javaElementClass))); in Array_createMultiArray() 42 ObjPtr<mirror::Object> dimensions_obj = soa.Decode<mirror::Object>(javaDimArray); in Array_createMultiArray() 49 mirror::Array::CreateMultiArray(soa.Self(), element_class, dimensions_array); in Array_createMultiArray() 50 return soa.AddLocalReference<jobject>(new_array); in Array_createMultiArray() 54 ScopedFastNativeObjectAccess soa(env); in Array_createObjectArray() local 63 class_linker->FindArrayClass(soa.Self(), soa.Decode<mirror::Class>(javaElementClass)); in Array_createObjectArray() 65 CHECK(soa.Self()->IsExceptionPending()); in Array_createObjectArray() 70 soa.Self(), in Array_createObjectArray() [all …]
|
D | java_lang_reflect_Method.cc | 39 ScopedFastNativeObjectAccess soa(env); in Method_getDefaultValue() local 40 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod); in Method_getDefaultValue() 44 return soa.AddLocalReference<jobject>(annotations::GetAnnotationDefaultValue(method)); in Method_getDefaultValue() 48 ScopedFastNativeObjectAccess soa(env); in Method_getExceptionTypes() local 49 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod); in Method_getExceptionTypes() 64 return soa.AddLocalReference<jobjectArray>(declared_exceptions->Clone(soa.Self())); in Method_getExceptionTypes() 73 mirror::ObjectArray<mirror::Class>::Alloc(soa.Self(), class_array_class, 0); in Method_getExceptionTypes() 74 return soa.AddLocalReference<jobjectArray>(empty_array); in Method_getExceptionTypes() 76 return soa.AddLocalReference<jobjectArray>(result_array); in Method_getExceptionTypes() 83 ScopedFastNativeObjectAccess soa(env); in Method_invoke() local [all …]
|
D | java_lang_reflect_Field.cc | 124 ALWAYS_INLINE inline static bool CheckReceiver(const ScopedFastNativeObjectAccess& soa, in CheckReceiver() argument 129 soa.Self()->AssertThreadSuspensionIsAllowable(); in CheckReceiver() 133 StackHandleScope<2> hs(soa.Self()); in CheckReceiver() 137 if (UNLIKELY(!class_linker->EnsureInitialized(soa.Self(), h_klass, true, true))) { in CheckReceiver() 138 DCHECK(soa.Self()->IsExceptionPending()); in CheckReceiver() 145 *class_or_rcvr = soa.Decode<mirror::Object>(j_rcvr); in CheckReceiver() 147 DCHECK(soa.Self()->IsExceptionPending()); in CheckReceiver() 154 ScopedFastNativeObjectAccess soa(env); in Field_get() local 155 ObjPtr<mirror::Field> f = soa.Decode<mirror::Field>(javaField); in Field_get() 157 if (!CheckReceiver(soa, javaObj, &f, &o)) { in Field_get() [all …]
|
D | sun_misc_Unsafe.cc | 43 ScopedFastNativeObjectAccess soa(env); in Unsafe_compareAndSwapInt() local 44 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(javaObj); in Unsafe_compareAndSwapInt() 56 ScopedFastNativeObjectAccess soa(env); in Unsafe_compareAndSwapLong() local 57 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(javaObj); in Unsafe_compareAndSwapLong() 67 ScopedFastNativeObjectAccess soa(env); in Unsafe_compareAndSwapObject() local 68 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(javaObj); in Unsafe_compareAndSwapObject() 69 ObjPtr<mirror::Object> expectedValue = soa.Decode<mirror::Object>(javaExpectedValue); in Unsafe_compareAndSwapObject() 70 ObjPtr<mirror::Object> newValue = soa.Decode<mirror::Object>(javaNewValue); in Unsafe_compareAndSwapObject() 94 ScopedFastNativeObjectAccess soa(env); in Unsafe_getInt() local 95 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(javaObj); in Unsafe_getInt() [all …]
|
/art/runtime/mirror/ |
D | object_test.cc | 110 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local 111 StackHandleScope<2> hs(soa.Self()); in TEST_F() 112 Handle<ObjectArray<Object>> a1(hs.NewHandle(AllocObjectArray<Object>(soa.Self(), 256))); in TEST_F() 114 ObjPtr<Object> clone = a1->Clone(soa.Self()); in TEST_F() 120 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local 121 StackHandleScope<3> hs(soa.Self()); in TEST_F() 122 Handle<ObjectArray<Object>> oa(hs.NewHandle(AllocObjectArray<Object>(soa.Self(), 2))); in TEST_F() 134 class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/ArrayIndexOutOfBoundsException;")); in TEST_F() 137 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F() 138 EXPECT_OBJ_PTR_EQ(aioobe.Get(), soa.Self()->GetException()->GetClass()); in TEST_F() [all …]
|
D | dex_cache_test.cc | 43 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local 44 StackHandleScope<1> hs(soa.Self()); in TEST_F() 48 soa.Self(), in TEST_F() 66 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local 67 StackHandleScope<1> hs(soa.Self()); in TEST_F() 71 soa.Self(), in TEST_F() 80 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local 83 StackHandleScope<1> hs(soa.Self()); in TEST_F() 85 soa.Decode<mirror::ClassLoader>(jclass_loader))); in TEST_F() 86 ObjPtr<mirror::Class> klass = class_linker_->FindClass(soa.Self(), "LMain;", class_loader); in TEST_F() [all …]
|
/art/runtime/jni/ |
D | jni_internal.cc | 387 static void ThrowNoSuchMethodError(ScopedObjectAccess& soa, in ThrowNoSuchMethodError() argument 394 soa.Self()->ThrowNewExceptionF("Ljava/lang/NoSuchMethodError;", in ThrowNoSuchMethodError() 402 static void ReportInvalidJNINativeMethod(const ScopedObjectAccess& soa, in ReportInvalidJNINativeMethod() argument 411 soa.Self()->ThrowNewExceptionF("Ljava/lang/NoSuchMethodError;", in ReportInvalidJNINativeMethod() 430 static jmethodID FindMethodID(ScopedObjectAccess& soa, jclass jni_class, in FindMethodID() argument 433 ObjPtr<mirror::Class> c = EnsureInitialized(soa.Self(), soa.Decode<mirror::Class>(jni_class)); in FindMethodID() 444 if (method != nullptr && ShouldDenyAccessToMember(method, soa.Self())) { in FindMethodID() 448 ThrowNoSuchMethodError(soa, c, name, sig, is_static ? "static" : "non-static"); in FindMethodID() 454 static ObjPtr<mirror::ClassLoader> GetClassLoader(const ScopedObjectAccess& soa) in GetClassLoader() argument 456 ArtMethod* method = soa.Self()->GetCurrentMethod(nullptr); in GetClassLoader() [all …]
|
/art/runtime/interpreter/ |
D | interpreter.cc | 57 ScopedObjectAccessUnchecked soa(self); in InterpreterJni() local 62 ScopedLocalRef<jclass> klass(soa.Env(), in InterpreterJni() 63 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni() 67 jresult = fn(soa.Env(), klass.get()); in InterpreterJni() 69 result->SetL(soa.Decode<mirror::Object>(jresult)); in InterpreterJni() 73 ScopedLocalRef<jclass> klass(soa.Env(), in InterpreterJni() 74 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni() 76 fn(soa.Env(), klass.get()); in InterpreterJni() 80 ScopedLocalRef<jclass> klass(soa.Env(), in InterpreterJni() 81 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni() [all …]
|
/art/test/692-vdex-inmem-loader/ |
D | vdex_inmem_loader.cc | 41 ScopedObjectAccess soa(Thread::Current()); in Java_Main_areClassesVerified() local 42 StackHandleScope<2> hs(soa.Self()); in Java_Main_areClassesVerified() 43 Handle<mirror::ClassLoader> h_loader(hs.NewHandle(soa.Decode<mirror::ClassLoader>(loader))); in Java_Main_areClassesVerified() 47 soa, in Java_Main_areClassesVerified() 62 h_class.Assign(class_linker->FindClass(soa.Self(), desc, h_loader)); in Java_Main_areClassesVerified() 80 ScopedObjectAccess soa(Thread::Current()); in Java_Main_hasVdexFile() local 81 StackHandleScope<1> hs(soa.Self()); in Java_Main_hasVdexFile() 82 Handle<mirror::ClassLoader> h_loader = hs.NewHandle(soa.Decode<mirror::ClassLoader>(loader)); in Java_Main_hasVdexFile() 86 soa, in Java_Main_hasVdexFile() 108 ScopedObjectAccess soa(Thread::Current()); in Java_Main_isBackedByOatFile() local [all …]
|
/art/runtime/gc/ |
D | heap_verification_test.cc | 49 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local 54 VariableSizedHandleScope hs(soa.Self()); in TEST_F() 56 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "test"))); in TEST_F() 74 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local 75 VariableSizedHandleScope hs(soa.Self()); in TEST_F() 77 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "test"))); in TEST_F() 93 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local 94 VariableSizedHandleScope hs(soa.Self()); in TEST_F() 96 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "test"))); in TEST_F() 105 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local [all …]
|