/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 inline 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 | transaction_test.cc | 39 ScopedObjectAccess soa(Thread::Current()); in testTransactionAbort() local 41 StackHandleScope<2> hs(soa.Self()); in testTransactionAbort() 43 hs.NewHandle(soa.Decode<mirror::ClassLoader>(jclass_loader))); in testTransactionAbort() 50 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), in testTransactionAbort() 53 class_linker_->EnsureInitialized(soa.Self(), h_klass, true, true); in testTransactionAbort() 56 h_klass.Assign(class_linker_->FindSystemClass(soa.Self(), in testTransactionAbort() 59 class_linker_->EnsureInitialized(soa.Self(), h_klass, true, true); in testTransactionAbort() 63 h_klass.Assign(class_linker_->FindClass(soa.Self(), "LTransaction$AbortHelperClass;", in testTransactionAbort() 66 class_linker_->VerifyClass(soa.Self(), h_klass); in testTransactionAbort() 70 h_klass.Assign(class_linker_->FindClass(soa.Self(), tested_class_signature, class_loader)); in testTransactionAbort() [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 …]
|
/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_Object.cc | 30 ScopedFastNativeObjectAccess soa(env); in Object_internalClone() local 31 StackHandleScope<1u> hs(soa.Self()); in Object_internalClone() 32 Handle<mirror::Object> o = hs.NewHandle(soa.Decode<mirror::Object>(java_this)); in Object_internalClone() 33 return soa.AddLocalReference<jobject>(mirror::Class::Clone(o, soa.Self())); in Object_internalClone() 37 ScopedFastNativeObjectAccess soa(env); in Object_notify() local 38 soa.Decode<mirror::Object>(java_this)->Notify(soa.Self()); in Object_notify() 42 ScopedFastNativeObjectAccess soa(env); in Object_notifyAll() local 43 soa.Decode<mirror::Object>(java_this)->NotifyAll(soa.Self()); in Object_notifyAll() 47 ScopedFastNativeObjectAccess soa(env); in Object_waitJI() local 48 soa.Decode<mirror::Object>(java_this)->Wait(soa.Self(), ms, ns); in Object_waitJI() [all …]
|
D | java_lang_Class.cc | 165 const ScopedFastNativeObjectAccess& soa, jobject java_class) in DecodeClass() argument 167 ObjPtr<mirror::Class> c = soa.Decode<mirror::Class>(java_class); in DecodeClass() 179 ScopedFastNativeObjectAccess soa(env); in Class_classForName() local 189 soa.Self()->ThrowNewExceptionF("Ljava/lang/ClassNotFoundException;", in Class_classForName() 195 StackHandleScope<2> hs(soa.Self()); in Class_classForName() 197 hs.NewHandle(soa.Decode<mirror::ClassLoader>(javaLoader))); in Class_classForName() 200 hs.NewHandle(class_linker->FindClass(soa.Self(), descriptor.c_str(), class_loader))); in Class_classForName() 216 class_linker->EnsureInitialized(soa.Self(), c, true, true); in Class_classForName() 218 return soa.AddLocalReference<jclass>(c.Get()); in Class_classForName() 222 ScopedFastNativeObjectAccess soa(env); in Class_getPrimitiveClass() 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_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(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(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 ScopedFastNativeObjectAccess soa(env); in Thread_getNativeTid() local 117 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_getNativeTid() [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_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() 62 StackHandleScope<1u> hs(soa.Self()); in Method_getExceptionTypes() 65 return soa.AddLocalReference<jobjectArray>( in Method_getExceptionTypes() 66 mirror::ObjectArray<mirror::Class>::Clone(declared_exceptions, soa.Self())); in Method_getExceptionTypes() 75 mirror::ObjectArray<mirror::Class>::Alloc(soa.Self(), class_array_class, 0); in Method_getExceptionTypes() 76 return soa.AddLocalReference<jobjectArray>(empty_array); in Method_getExceptionTypes() [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 | 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 …]
|
D | java_lang_invoke_MethodHandleImpl.cc | 34 ScopedObjectAccess soa(env); in MethodHandleImpl_getMemberInternal() local 35 StackHandleScope<2> hs(soa.Self()); in MethodHandleImpl_getMemberInternal() 37 soa.Decode<mirror::MethodHandleImpl>(thiz)); in MethodHandleImpl_getMemberInternal() 47 mirror::Field::CreateFromArtField(soa.Self(), field, /* force_resolve= */ false)); in MethodHandleImpl_getMemberInternal() 52 mirror::Constructor::CreateFromArtMethod<kRuntimePointerSize>(soa.Self(), method)); in MethodHandleImpl_getMemberInternal() 54 h_object.Assign(mirror::Method::CreateFromArtMethod<kRuntimePointerSize>(soa.Self(), method)); in MethodHandleImpl_getMemberInternal() 59 soa.Self()->AssertPendingOOMException(); in MethodHandleImpl_getMemberInternal() 63 return soa.AddLocalReference<jobject>(h_object.Get()); in MethodHandleImpl_getMemberInternal()
|
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 Thread* self = soa.Self(); in CheckReceiver() 147 *class_or_rcvr = soa.Decode<mirror::Object>(j_rcvr); in CheckReceiver() 149 DCHECK(soa.Self()->IsExceptionPending()); in CheckReceiver() 156 ScopedFastNativeObjectAccess soa(env); in Field_get() local 157 ObjPtr<mirror::Field> f = soa.Decode<mirror::Field>(javaField); in Field_get() 159 if (!CheckReceiver(soa, javaObj, &f, &o)) { in Field_get() 160 DCHECK(soa.Self()->IsExceptionPending()); in Field_get() 164 if (!f->IsAccessible() && !VerifyFieldAccess<false>(soa.Self(), f, o)) { in Field_get() [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 = Object::Clone(a1, 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 | 205 static void ReportInvalidJNINativeMethod(const ScopedObjectAccess& soa, in ReportInvalidJNINativeMethod() argument 214 soa.Self()->ThrowNewExceptionF("Ljava/lang/NoSuchMethodError;", in ReportInvalidJNINativeMethod() 221 static jmethodID FindMethodID(ScopedObjectAccess& soa, jclass jni_class, in FindMethodID() argument 224 return jni::EncodeArtMethod<kEnableIndexIds>(FindMethodJNI(soa, jni_class, name, sig, is_static)); in FindMethodID() 228 static ObjPtr<mirror::ClassLoader> GetClassLoader(const ScopedObjectAccess& soa) in GetClassLoader() argument 230 ArtMethod* method = soa.Self()->GetCurrentMethod(nullptr); in GetClassLoader() 234 return soa.Decode<mirror::ClassLoader>(soa.Self()->GetClassLoaderOverride()); in GetClassLoader() 242 soa.Decode<mirror::ClassLoader>(Runtime::Current()->GetSystemClassLoader()); in GetClassLoader() 247 class_loader = soa.Decode<mirror::ClassLoader>(soa.Self()->GetClassLoaderOverride()); in GetClassLoader() 260 static jfieldID FindFieldID(const ScopedObjectAccess& soa, jclass jni_class, const char* name, in FindFieldID() argument [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/test/1985-structural-redefine-stack-scope/ |
D | stack_scope.cc | 48 ScopedObjectAccess soa(Thread::Current()); in Java_Main_NativeFieldScopeCheck() local 49 StackHandleScope<4> hs(soa.Self()); in Java_Main_NativeFieldScopeCheck() 50 StackArtFieldHandleScope<1> fhs(soa.Self()); in Java_Main_NativeFieldScopeCheck() 51 StackArtFieldHandleScope<1> bhs(soa.Self()); in Java_Main_NativeFieldScopeCheck() 56 ScopedThreadSuspension sts(soa.Self(), ThreadState::kNative); in Java_Main_NativeFieldScopeCheck() 62 soa.Self(), in Java_Main_NativeFieldScopeCheck() 63 Runtime::Current()->GetClassLinker()->FindArrayClass(soa.Self(), in Java_Main_NativeFieldScopeCheck() 67 soa.Self(), hs.NewHandle(GetClassRoot<mirror::Object>()), mt_arr))); in Java_Main_NativeFieldScopeCheck() 69 mirror::MethodHandleImpl::Create(soa.Self(), in Java_Main_NativeFieldScopeCheck() 79 return soa.AddLocalReference<jobject>(mhi.Get()); in Java_Main_NativeFieldScopeCheck()
|