Home
last modified time | relevance | path

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

12345

/art/runtime/mirror/
Dobject_test.cc109 StackHandleScope<2> hs(soa.Self()); in TEST_F()
110 Handle<ObjectArray<Object>> a1(hs.NewHandle(AllocObjectArray<Object>(soa.Self(), 256))); in TEST_F()
112 Object* clone = a1->Clone(soa.Self()); in TEST_F()
119 StackHandleScope<2> hs(soa.Self()); in TEST_F()
120 Handle<ObjectArray<Object>> oa(hs.NewHandle(AllocObjectArray<Object>(soa.Self(), 2))); in TEST_F()
131 Class* aioobe = class_linker_->FindSystemClass(soa.Self(), in TEST_F()
135 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
136 EXPECT_EQ(aioobe, soa.Self()->GetException()->GetClass()); in TEST_F()
137 soa.Self()->ClearException(); in TEST_F()
140 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
[all …]
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/runtime/
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()
74 bool success = class_linker_->EnsureInitialized(soa.Self(), h_klass, true, true); in testTransactionAbort()
[all …]
Dproxy_test.cc41 … mirror::Class* javaLangObject = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;"); in GenerateProxyClass()
49 soa.Self()->AssertNoPendingException(); in GenerateProxyClass()
62 soa.Self()->AssertNoPendingException(); in GenerateProxyClass()
75 mirror::Method::CreateFromArtMethod<kRuntimePointerSize, false>(soa.Self(), method))); in GenerateProxyClass()
82 mirror::Method::CreateFromArtMethod<kRuntimePointerSize, false>(soa.Self(), method))); in GenerateProxyClass()
90 mirror::Method::CreateFromArtMethod<kRuntimePointerSize, false>(soa.Self(), method))); in GenerateProxyClass()
96 mirror::Method::CreateFromArtMethod<kRuntimePointerSize, false>(soa.Self(), &m))); in GenerateProxyClass()
103 soa.Self()->AssertNoPendingException(); in GenerateProxyClass()
108 soa.Self()->AssertNoPendingException(); in GenerateProxyClass()
117 StackHandleScope<4> hs(soa.Self()); 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.h78 Locks::mutator_lock_->AssertSharedHeld(Self()); in AddLocalReference()
88 Locks::mutator_lock_->AssertSharedHeld(Self()); in Decode()
90 return ObjPtr<T>::DownCast(Self()->DecodeJObject(obj)); in Decode()
106 : ScopedObjectAccessAlreadyRunnable(env), tsc_(Self(), kRunnable) { in ScopedObjectAccessUnchecked()
107 Self()->VerifyStack(); in ScopedObjectAccessUnchecked()
108 Locks::mutator_lock_->AssertSharedHeld(Self()); in ScopedObjectAccessUnchecked()
113 Self()->VerifyStack(); in ScopedObjectAccessUnchecked()
114 Locks::mutator_lock_->AssertSharedHeld(Self()); in ScopedObjectAccessUnchecked()
Dclass_linker_test.cc834 StackHandleScope<1> hs(soa.Self()); in TEST_F()
838 mirror::Class* outer = class_linker_->FindClass(soa.Self(), "LNested;", class_loader); in TEST_F()
843 mirror::Class* inner = class_linker_->FindClass(soa.Self(), "LNested$Inner;", class_loader); in TEST_F()
865 mirror::Class* JavaLangObject = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;"); in TEST_F()
868 StackHandleScope<1> hs(soa.Self()); in TEST_F()
872 mirror::Class* MyClass = class_linker_->FindClass(soa.Self(), "LMyClass;", class_loader); in TEST_F()
917 StackHandleScope<1> hs(soa.Self()); in TEST_F()
921 ObjPtr<mirror::Class> klass = class_linker_->FindClass(soa.Self(), "LMyClass;", class_loader); in TEST_F()
938 StackHandleScope<2> hs(soa.Self()); in TEST_F()
943 = class_linker_->FindClass(soa.Self(), "LAllFields;", class_loader); in TEST_F()
[all …]
Dreference_table_test.cc75 mirror::Object* o1 = mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello"); in TEST_F()
106 mirror::Object* o2 = mirror::ShortArray::Alloc(soa.Self(), 0); in TEST_F()
195 mirror::Object* s1 = mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello"); in TEST_F()
196 mirror::Object* s2 = mirror::String::AllocFromModifiedUtf8(soa.Self(), "world"); in TEST_F()
208 mirror::Object* b1_1 = mirror::ByteArray::Alloc(soa.Self(), 1); in TEST_F()
210 rt.Add(mirror::ByteArray::Alloc(soa.Self(), 2)); in TEST_F()
212 rt.Add(mirror::ByteArray::Alloc(soa.Self(), 2)); in TEST_F()
213 rt.Add(mirror::ByteArray::Alloc(soa.Self(), 1)); in TEST_F()
214 rt.Add(mirror::ByteArray::Alloc(soa.Self(), 2)); in TEST_F()
217 rt.Add(mirror::CharArray::Alloc(soa.Self(), 0)); in TEST_F()
/art/runtime/native/
Djava_lang_Class.cc75 soa.Self()->ThrowNewExceptionF("Ljava/lang/ClassNotFoundException;", in Class_classForName()
81 StackHandleScope<2> hs(soa.Self()); in Class_classForName()
86 hs.NewHandle(class_linker->FindClass(soa.Self(), descriptor.c_str(), class_loader))); in Class_classForName()
102 class_linker->EnsureInitialized(soa.Self(), c, true, true); in Class_classForName()
109 StackHandleScope<1> hs(soa.Self()); in Class_getNameNative()
124 StackHandleScope<4> hs(soa.Self()); in Class_getInterfacesInternal()
128 return soa.AddLocalReference<jobjectArray>(klass->GetProxyInterfaces()->Clone(soa.Self())); in Class_getInterfacesInternal()
137 Handle<mirror::Class> class_array_class = hs.NewHandle(GetClassArrayClass(soa.Self())); in Class_getInterfacesInternal()
139 mirror::ObjectArray<mirror::Class>::Alloc(soa.Self(), class_array_class.Get(), num_ifaces)); in Class_getInterfacesInternal()
141 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()
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()
Dscoped_fast_native_object_access-inl.h29 Locks::mutator_lock_->AssertSharedHeld(Self()); in ScopedFastNativeObjectAccess()
30 DCHECK((*Self()->GetManagedStack()->GetTopQuickFrame())->IsAnnotatedWithFastNative()); in ScopedFastNativeObjectAccess()
32 DCHECK_EQ(Self()->GetState(), kRunnable); in ScopedFastNativeObjectAccess()
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()
Ddalvik_system_VMStack.cc39 if (decoded_peer == soa.Self()->GetPeer()) { in GetThreadStack()
40 trace = soa.Self()->CreateInternalStackTrace<false>(soa); in GetThreadStack()
51 ScopedThreadSuspension sts(soa.Self(), kNative); in GetThreadStack()
61 ScopedObjectAccess soa2(soa.Self()); in GetThreadStack()
90 NthCallerVisitor visitor(soa.Self(), 2); in VMStack_getCallingClassLoader()
122 ClosestUserClassLoaderVisitor visitor(soa.Self()); in VMStack_getClosestUserClassLoader()
130 NthCallerVisitor visitor(soa.Self(), 3); in VMStack_getStackClass2()
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_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_String.cc57 StackHandleScope<2> hs(soa.Self()); in String_concat()
64 mirror::String::AllocFromStrings(soa.Self(), string_this, string_arg); in String_concat()
80 StackHandleScope<1> hs(soa.Self()); in String_fastSubstring()
83 ObjPtr<mirror::String> result = mirror::String::AllocFromString<true>(soa.Self(), in String_fastSubstring()
94 StackHandleScope<1> hs(soa.Self()); in String_getCharsNoCheck()
107 StackHandleScope<1> hs(soa.Self()); in String_doReplace()
109 ObjPtr<mirror::String> result = mirror::String::DoReplace(soa.Self(), string, old_c, new_c); in String_doReplace()
116 return soa.AddLocalReference<jcharArray>(s->ToCharArray(soa.Self())); in String_toCharArray()
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()
119 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_nativeHoldsLock()
126 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_nativeInterrupt()
129 thread->Interrupt(soa.Self()); in Thread_nativeInterrupt()
137 if (soa.Decode<mirror::Object>(peer) == soa.Self()->GetPeer()) { in Thread_nativeSetName()
138 soa.Self()->SetThreadName(name.c_str()); in Thread_nativeSetName()
172 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.cc48 StackHandleScope<1> hs(soa.Self()); in TEST_F()
50 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;"))); in TEST_F()
52 StackHandleScope<1> hs2(soa.Self()); in TEST_F()
54 mirror::ObjectArray<mirror::Object>::Alloc(soa.Self(), c.Get(), 2048))); in TEST_F()
56 mirror::String* string = mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello, world!"); 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.h43 DCHECK_EQ(cls == nullptr, soa.Self()->IsExceptionPending()); in ResolveClass()
46 soa.Self()->ClearException(); in ResolveClass()
68 DCHECK_EQ(resolved_field == nullptr, soa.Self()->IsExceptionPending()); in ResolveFieldWithDexFile()
71 soa.Self()->ClearException(); in ResolveFieldWithDexFile()
117 DCHECK(soa.Self()->IsExceptionPending()); in ResolveMethod()
119 soa.Self()->ClearException(); in ResolveMethod()

12345