Home
last modified time | relevance | path

Searched refs:Self (Results 1 – 25 of 117) sorted by relevance

12345

/art/runtime/
Dmethod_handles_test.cc82 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 …]
Dintern_table_test.cc35 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 …]
Dtransaction_test.cc35 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 …]
Dproxy_test.h40 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()
Dproxy_test.cc36 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 …]
Dhandle_scope_test.cc50 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()
Dscoped_thread_state_change-inl.h80 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()
Dclass_linker_test.cc874 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 …]
Dreference_table_test.cc78 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/
Djava_lang_Class.cc172 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 …]
Djava_lang_reflect_Constructor.cc47 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()
Dscoped_fast_native_object_access-inl.h29 Locks::mutator_lock_->AssertSharedHeld(Self()); in ScopedFastNativeObjectAccess()
30 DCHECK((*Self()->GetManagedStack()->GetTopQuickFrame())->IsFastNative()); in ScopedFastNativeObjectAccess()
32 DCHECK_EQ(Self()->GetState(), kRunnable); in ScopedFastNativeObjectAccess()
Djava_lang_invoke_MethodHandleImpl.cc35 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()
Djava_lang_StringFactory.cc39 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()
Djava_lang_Object.cc31 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()
Djava_lang_String.cc57 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()
Djava_lang_reflect_Array.cc37 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()
Djava_lang_reflect_Field.cc127 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 …]
Djava_lang_Thread.cc36 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/
Dheap_verification_test.cc53 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 …]
Dheap_test.cc67 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/
Ddex_cache_test.cc44 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 …]
Dmethod_type_test.cc48 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/
Djobject_benchmark.cc55 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/
Dcompiler_driver-inl.h45 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()

12345