/art/runtime/ |
D | method_handles_test.cc | 82 StackHandleScope<2> hs(soa.Self()); in TEST_F() 86 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F() 88 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F() 94 StackHandleScope<2> hs(soa.Self()); in TEST_F() 99 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F() 100 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F() 107 StackHandleScope<2> hs(soa.Self()); in TEST_F() 111 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F() 112 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F() 119 StackHandleScope<2> hs(soa.Self()); in TEST_F() [all …]
|
D | intern_table_test.cc | 35 StackHandleScope<4> hs(soa.Self()); in TEST_F() 39 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "foo"))); in TEST_F() 59 StackHandleScope<1> hs(soa.Self()); in TEST_F() 61 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "foo"))); in TEST_F() 78 GcRoot<mirror::String> str(mirror::String::AllocFromModifiedUtf8(soa.Self(), "00000000")); in TEST_F() 119 StackHandleScope<5> hs(soa.Self()); in TEST_F() 121 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello"))); in TEST_F() 123 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "world"))); in TEST_F() 134 ReaderMutexLock mu(soa.Self(), *Locks::heap_bitmap_lock_); in TEST_F() 142 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "still here"))); in TEST_F() [all …]
|
D | transaction_test.cc | 35 StackHandleScope<2> hs(soa.Self()); in testTransactionAbort() 44 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), in testTransactionAbort() 47 class_linker_->EnsureInitialized(soa.Self(), h_klass, true, true); in testTransactionAbort() 50 h_klass.Assign(class_linker_->FindSystemClass(soa.Self(), in testTransactionAbort() 53 class_linker_->EnsureInitialized(soa.Self(), h_klass, true, true); in testTransactionAbort() 57 h_klass.Assign(class_linker_->FindClass(soa.Self(), "LTransaction$AbortHelperClass;", in testTransactionAbort() 60 class_linker_->VerifyClass(soa.Self(), h_klass); in testTransactionAbort() 64 h_klass.Assign(class_linker_->FindClass(soa.Self(), tested_class_signature, class_loader)); in testTransactionAbort() 66 class_linker_->VerifyClass(soa.Self(), h_klass); in testTransactionAbort() 73 bool success = class_linker_->EnsureInitialized(soa.Self(), h_klass, true, true); in testTransactionAbort() [all …]
|
D | proxy_test.h | 40 mirror::Class* javaLangObject = class_linker->FindSystemClass(soa.Self(), "Ljava/lang/Object;"); in GenerateProxyClass() 48 soa.Self()->AssertNoPendingException(); in GenerateProxyClass() 61 soa.Self()->AssertNoPendingException(); in GenerateProxyClass() 74 mirror::Method::CreateFromArtMethod<kRuntimePointerSize, false>(soa.Self(), method))); in GenerateProxyClass() 81 mirror::Method::CreateFromArtMethod<kRuntimePointerSize, false>(soa.Self(), method))); in GenerateProxyClass() 89 mirror::Method::CreateFromArtMethod<kRuntimePointerSize, false>(soa.Self(), method))); in GenerateProxyClass() 95 mirror::Method::CreateFromArtMethod<kRuntimePointerSize, false>(soa.Self(), &m))); in GenerateProxyClass() 102 soa.Self()->AssertNoPendingException(); in GenerateProxyClass() 107 soa.Self()->AssertNoPendingException(); in GenerateProxyClass()
|
D | proxy_test.cc | 36 StackHandleScope<4> hs(soa.Self()); in TEST_F() 41 class_linker_->FindClass(soa.Self(), "LInterfaces$I;", class_loader))); in TEST_F() 43 class_linker_->FindClass(soa.Self(), "LInterfaces$J;", class_loader))); in TEST_F() 58 EXPECT_OBJ_PTR_EQ(I.Get(), mirror::Class::GetDirectInterface(soa.Self(), proxy_class.Get(), 0)); in TEST_F() 59 EXPECT_OBJ_PTR_EQ(J.Get(), mirror::Class::GetDirectInterface(soa.Self(), proxy_class.Get(), 1)); in TEST_F() 70 StackHandleScope<9> hs(soa.Self()); in TEST_F() 75 class_linker_->FindClass(soa.Self(), "LInterfaces$I;", class_loader))); in TEST_F() 77 class_linker_->FindClass(soa.Self(), "LInterfaces$J;", class_loader))); in TEST_F() 101 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Class;"))); in TEST_F() 104 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[[Ljava/lang/Class;"))); in TEST_F() [all …]
|
D | handle_scope_test.cc | 50 StackHandleScope<0x1> hs0(soa.Self()); in TEST_F() 52 StackHandleScope<kNumReferences> test_table(soa.Self()); in TEST_F() 53 ObjPtr<mirror::Class> c = class_linker->FindSystemClass(soa.Self(), "Ljava/lang/Object;"); in TEST_F() 93 VariableSizedHandleScope hs(soa.Self()); in TEST_F() 96 hs.NewHandle(class_linker->FindSystemClass(soa.Self(), "Ljava/lang/Object;")); in TEST_F() 98 StackHandleScope<1> inner(soa.Self()); in TEST_F() 99 inner.NewHandle(c->AllocObject(soa.Self())); in TEST_F() 105 ObjPtr<mirror::Object> o = c->AllocObject(soa.Self()); in TEST_F()
|
D | scoped_thread_state_change-inl.h | 80 Locks::mutator_lock_->AssertSharedHeld(Self()); in AddLocalReference() 90 Locks::mutator_lock_->AssertSharedHeld(Self()); in Decode() 92 return ObjPtr<T>::DownCast(Self()->DecodeJObject(obj)); in Decode() 108 : ScopedObjectAccessAlreadyRunnable(env), tsc_(Self(), kRunnable) { in ScopedObjectAccessUnchecked() 109 Self()->VerifyStack(); in ScopedObjectAccessUnchecked() 110 Locks::mutator_lock_->AssertSharedHeld(Self()); in ScopedObjectAccessUnchecked() 115 Self()->VerifyStack(); in ScopedObjectAccessUnchecked() 116 Locks::mutator_lock_->AssertSharedHeld(Self()); in ScopedObjectAccessUnchecked()
|
D | class_linker_test.cc | 874 StackHandleScope<1> hs(soa.Self()); in TEST_F() 878 mirror::Class* outer = class_linker_->FindClass(soa.Self(), "LNested;", class_loader); in TEST_F() 883 mirror::Class* inner = class_linker_->FindClass(soa.Self(), "LNested$Inner;", class_loader); in TEST_F() 905 mirror::Class* JavaLangObject = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;"); in TEST_F() 908 StackHandleScope<1> hs(soa.Self()); in TEST_F() 912 mirror::Class* MyClass = class_linker_->FindClass(soa.Self(), "LMyClass;", class_loader); in TEST_F() 957 StackHandleScope<1> hs(soa.Self()); in TEST_F() 961 ObjPtr<mirror::Class> klass = class_linker_->FindClass(soa.Self(), "LMyClass;", class_loader); in TEST_F() 977 StackHandleScope<2> hs(soa.Self()); in TEST_F() 982 = class_linker_->FindClass(soa.Self(), "LAllFields;", class_loader); in TEST_F() [all …]
|
D | reference_table_test.cc | 78 mirror::Object* o1 = mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello"); in TEST_F() 109 mirror::Object* o2 = mirror::ShortArray::Alloc(soa.Self(), 0); in TEST_F() 180 StackHandleScope<3> hs(soa.Self()); in TEST_F() 182 mirror::String::AllocFromModifiedUtf8(soa.Self(), "Without"))); in TEST_F() 185 ScopedThreadSuspension sts(soa.Self(), ThreadState::kSuspended); in TEST_F() 204 h_with_trace = hs.NewHandle(soa.Self()->DecodeJObject(result)); in TEST_F() 218 h_ref = hs.NewHandle(soa.Self()->DecodeJObject(result)); in TEST_F() 252 ScopedThreadSuspension sts(soa.Self(), ThreadState::kSuspended); in TEST_F() 279 mirror::Object* s1 = mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello"); in TEST_F() 280 mirror::Object* s2 = mirror::String::AllocFromModifiedUtf8(soa.Self(), "world"); in TEST_F() [all …]
|
/art/runtime/native/ |
D | java_lang_Class.cc | 172 soa.Self()->ThrowNewExceptionF("Ljava/lang/ClassNotFoundException;", in Class_classForName() 178 StackHandleScope<2> hs(soa.Self()); 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() 212 StackHandleScope<1> hs(soa.Self()); in Class_getNameNative() 227 StackHandleScope<4> hs(soa.Self()); in Class_getInterfacesInternal() 231 return soa.AddLocalReference<jobjectArray>(klass->GetProxyInterfaces()->Clone(soa.Self())); in Class_getInterfacesInternal() 240 Handle<mirror::Class> class_array_class = hs.NewHandle(GetClassArrayClass(soa.Self())); in Class_getInterfacesInternal() 242 mirror::ObjectArray<mirror::Class>::Alloc(soa.Self(), class_array_class.Get(), num_ifaces)); in Class_getInterfacesInternal() 244 DCHECK(soa.Self()->IsExceptionPending()); in Class_getInterfacesInternal() [all …]
|
D | java_lang_reflect_Constructor.cc | 47 Runtime::Current()->GetClassLinker()->FindArrayClass(soa.Self(), &class_class); in Constructor_getExceptionTypes() 52 mirror::ObjectArray<mirror::Class>::Alloc(soa.Self(), class_array_class, 0); in Constructor_getExceptionTypes() 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() 89 soa.Self()->ThrowNewExceptionF( in Constructor_newInstance0() 97 if (!Runtime::Current()->GetClassLinker()->EnsureInitialized(soa.Self(), c, true, true)) { in Constructor_newInstance0() 98 DCHECK(soa.Self()->IsExceptionPending()); in Constructor_newInstance0() 112 movable ? c->AllocObject(soa.Self()) : c->AllocNonMovableObject(soa.Self()); in Constructor_newInstance0()
|
D | scoped_fast_native_object_access-inl.h | 29 Locks::mutator_lock_->AssertSharedHeld(Self()); in ScopedFastNativeObjectAccess() 30 DCHECK((*Self()->GetManagedStack()->GetTopQuickFrame())->IsFastNative()); in ScopedFastNativeObjectAccess() 32 DCHECK_EQ(Self()->GetState(), kRunnable); in ScopedFastNativeObjectAccess()
|
D | java_lang_invoke_MethodHandleImpl.cc | 35 StackHandleScope<2> hs(soa.Self()); in MethodHandleImpl_getMemberInternal() 51 soa.Self(), field, false /* force_resolve */)); in MethodHandleImpl_getMemberInternal() 56 soa.Self(), method)); in MethodHandleImpl_getMemberInternal() 59 soa.Self(), method)); in MethodHandleImpl_getMemberInternal() 64 soa.Self()->AssertPendingOOMException(); in MethodHandleImpl_getMemberInternal()
|
D | java_lang_StringFactory.cc | 39 StackHandleScope<1> hs(soa.Self()); in StringFactory_newStringFromBytes() 43 soa.Self()->ThrowNewExceptionF("Ljava/lang/StringIndexOutOfBoundsException;", in StringFactory_newStringFromBytes() 49 ObjPtr<mirror::String> result = mirror::String::AllocFromByteArray<true>(soa.Self(), in StringFactory_newStringFromBytes() 63 StackHandleScope<1> hs(soa.Self()); in StringFactory_newStringFromChars() 66 ObjPtr<mirror::String> result = mirror::String::AllocFromCharArray<true>(soa.Self(), in StringFactory_newStringFromChars() 80 StackHandleScope<1> hs(soa.Self()); in StringFactory_newStringFromString() 83 ObjPtr<mirror::String> result = mirror::String::AllocFromString<true>(soa.Self(), in StringFactory_newStringFromString()
|
D | java_lang_Object.cc | 31 return soa.AddLocalReference<jobject>(o->Clone(soa.Self())); in Object_internalClone() 36 soa.Decode<mirror::Object>(java_this)->Notify(soa.Self()); in Object_notify() 41 soa.Decode<mirror::Object>(java_this)->NotifyAll(soa.Self()); in Object_notifyAll() 46 soa.Decode<mirror::Object>(java_this)->Wait(soa.Self()); in Object_wait() 51 soa.Decode<mirror::Object>(java_this)->Wait(soa.Self(), ms, ns); in Object_waitJI()
|
D | java_lang_String.cc | 57 StackHandleScope<2> hs(soa.Self()); in String_concat() 64 mirror::String::AllocFromStrings(soa.Self(), string_this, string_arg); in String_concat() 73 StackHandleScope<1> hs(soa.Self()); in String_fastSubstring() 76 ObjPtr<mirror::String> result = mirror::String::AllocFromString<true>(soa.Self(), in String_fastSubstring() 87 StackHandleScope<1> hs(soa.Self()); in String_getCharsNoCheck() 100 StackHandleScope<1> hs(soa.Self()); in String_doReplace() 102 ObjPtr<mirror::String> result = mirror::String::DoReplace(soa.Self(), string, old_c, new_c); in String_doReplace() 109 return soa.AddLocalReference<jcharArray>(s->ToCharArray(soa.Self())); in String_toCharArray()
|
D | java_lang_reflect_Array.cc | 37 StackHandleScope<2> hs(soa.Self()); in Array_createMultiArray() 47 mirror::Array* new_array = mirror::Array::CreateMultiArray(soa.Self(), in Array_createMultiArray() 63 ObjPtr<mirror::Class> array_class = class_linker->FindArrayClass(soa.Self(), &element_class); in Array_createObjectArray() 65 CHECK(soa.Self()->IsExceptionPending()); in Array_createObjectArray() 70 soa.Self(), in Array_createObjectArray()
|
D | java_lang_reflect_Field.cc | 127 soa.Self()->AssertThreadSuspensionIsAllowable(); in CheckReceiver() 131 StackHandleScope<2> hs(soa.Self()); in CheckReceiver() 135 if (UNLIKELY(!class_linker->EnsureInitialized(soa.Self(), h_klass, true, true))) { in CheckReceiver() 136 DCHECK(soa.Self()->IsExceptionPending()); in CheckReceiver() 145 DCHECK(soa.Self()->IsExceptionPending()); in CheckReceiver() 156 DCHECK(soa.Self()->IsExceptionPending()); in Field_get() 160 if (!f->IsAccessible() && !VerifyFieldAccess<false>(soa.Self(), f, o)) { in Field_get() 161 DCHECK(soa.Self()->IsExceptionPending()); in Field_get() 169 DCHECK(soa.Self()->IsExceptionPending()); in Field_get() 183 DCHECK(soa.Self()->IsExceptionPending()); in GetPrimitiveField() [all …]
|
D | java_lang_Thread.cc | 36 return soa.AddLocalReference<jobject>(soa.Self()->GetPeer()); in Thread_currentThread() 45 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_isInterrupted() 75 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_nativeGetStatus() 121 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_nativeHoldsLock() 128 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_nativeInterrupt() 131 thread->Interrupt(soa.Self()); in Thread_nativeInterrupt() 139 if (soa.Decode<mirror::Object>(peer) == soa.Self()->GetPeer()) { in Thread_nativeSetName() 140 soa.Self()->SetThreadName(name.c_str()); in Thread_nativeSetName() 174 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_nativeSetPriority()
|
/art/runtime/gc/ |
D | heap_verification_test.cc | 53 VariableSizedHandleScope hs(soa.Self()); in TEST_F() 55 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "test"))); in TEST_F() 74 VariableSizedHandleScope hs(soa.Self()); in TEST_F() 76 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "test"))); in TEST_F() 88 VariableSizedHandleScope hs(soa.Self()); in TEST_F() 90 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "test"))); in TEST_F() 101 VariableSizedHandleScope hs(soa.Self()); in TEST_F() 113 VariableSizedHandleScope hs(soa.Self()); in TEST_F() 115 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "obj"))); in TEST_F() 117 hs.NewHandle(AllocObjectArray<mirror::Object>(soa.Self(), 256))); in TEST_F() [all …]
|
D | heap_test.cc | 67 StackHandleScope<1> hs(soa.Self()); in TEST_F() 69 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;"))); in TEST_F() 71 StackHandleScope<1> hs2(soa.Self()); in TEST_F() 73 mirror::ObjectArray<mirror::Object>::Alloc(soa.Self(), c.Get(), 2048))); in TEST_F() 75 mirror::String* string = mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello, world!"); in TEST_F()
|
/art/runtime/mirror/ |
D | dex_cache_test.cc | 44 StackHandleScope<1> hs(soa.Self()); in TEST_F() 48 soa.Self(), in TEST_F() 67 StackHandleScope<1> hs(soa.Self()); in TEST_F() 71 soa.Self(), in TEST_F() 83 StackHandleScope<1> hs(soa.Self()); in TEST_F() 86 mirror::Class* klass = class_linker_->FindClass(soa.Self(), "LMain;", class_loader); in TEST_F() 97 StackHandleScope<3> hs(soa.Self()); in TEST_F() 101 hs.NewHandle(class_linker_->FindClass(soa.Self(), "Lpackage1/Package1;", class_loader)); in TEST_F() 104 hs.NewHandle(class_linker_->FindClass(soa.Self(), "Lpackage2/Package2;", class_loader)); in TEST_F() 124 StackHandleScope<5> hs(soa.Self()); in TEST_F() [all …]
|
D | method_type_test.cc | 48 StackHandleScope<5> hs(soa.Self()); in CreateMethodType() 53 soa.Self(), FullyQualifiedType(return_type).c_str(), boot_class_loader)); in CreateMethodType() 63 soa.Self(), FullyQualifiedType(param_types[i]).c_str(), boot_class_loader)); in CreateMethodType() 74 StackHandleScope<2> hs(soa.Self()); in TEST_F() 82 StackHandleScope<2> hs(soa.Self()); in TEST_F() 90 StackHandleScope<2> hs(soa.Self()); in TEST_F() 98 StackHandleScope<2> hs(soa.Self()); in TEST_F()
|
/art/benchmark/jobject-benchmark/ |
D | jobject_benchmark.cc | 55 jobject ref = soa.Vm()->AddGlobalRef(soa.Self(), obj); in Java_JObjectBenchmark_timeAddRemoveGlobal() 56 soa.Vm()->DeleteGlobalRef(soa.Self(), ref); in Java_JObjectBenchmark_timeAddRemoveGlobal() 65 jobject ref = soa.Vm()->AddGlobalRef(soa.Self(), obj); in Java_JObjectBenchmark_timeDecodeGlobal() 69 soa.Vm()->DeleteGlobalRef(soa.Self(), ref); in Java_JObjectBenchmark_timeDecodeGlobal() 78 jobject ref = soa.Vm()->AddWeakGlobalRef(soa.Self(), obj); in Java_JObjectBenchmark_timeAddRemoveWeakGlobal() 79 soa.Vm()->DeleteWeakGlobalRef(soa.Self(), ref); in Java_JObjectBenchmark_timeAddRemoveWeakGlobal() 88 jobject ref = soa.Vm()->AddWeakGlobalRef(soa.Self(), obj); in Java_JObjectBenchmark_timeDecodeWeakGlobal() 92 soa.Vm()->DeleteWeakGlobalRef(soa.Self(), ref); in Java_JObjectBenchmark_timeDecodeWeakGlobal()
|
/art/compiler/driver/ |
D | compiler_driver-inl.h | 45 DCHECK_EQ(cls == nullptr, soa.Self()->IsExceptionPending()); in ResolveClass() 48 soa.Self()->ClearException(); in ResolveClass() 72 DCHECK_EQ(resolved_field == nullptr, soa.Self()->IsExceptionPending()); in ResolveField() 75 soa.Self()->ClearException(); in ResolveField() 114 DCHECK(soa.Self()->IsExceptionPending()); in ResolveMethod() 116 soa.Self()->ClearException(); in ResolveMethod()
|