Home
last modified time | relevance | path

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

123

/art/runtime/mirror/
Dobject_test.cc118 StackHandleScope<2> hs(soa.Self()); in TEST_F()
120 hs.NewHandle(class_linker_->AllocObjectArray<Object>(soa.Self(), 256))); in TEST_F()
122 Object* clone = a1->Clone(soa.Self()); in TEST_F()
129 StackHandleScope<2> hs(soa.Self()); in TEST_F()
131 hs.NewHandle(class_linker_->AllocObjectArray<Object>(soa.Self(), 2))); in TEST_F()
142 Class* aioobe = class_linker_->FindSystemClass(soa.Self(), in TEST_F()
146 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
147 EXPECT_EQ(aioobe, soa.Self()->GetException(NULL)->GetClass()); in TEST_F()
148 soa.Self()->ClearException(); in TEST_F()
151 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
[all …]
Ddex_cache_test.cc36 StackHandleScope<1> hs(soa.Self()); in TEST_F()
38 hs.NewHandle(class_linker_->AllocDexCache(soa.Self(), *java_lang_dex_file_))); in TEST_F()
/art/runtime/
Dintern_table_test.cc32 StackHandleScope<4> hs(soa.Self()); in TEST_F()
36 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "foo"))); in TEST_F()
54 StackHandleScope<1> hs(soa.Self()); in TEST_F()
56 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "foo"))); in TEST_F()
102 StackHandleScope<5> hs(soa.Self()); in TEST_F()
104 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello"))); in TEST_F()
106 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "world"))); in TEST_F()
117 ReaderMutexLock mu(soa.Self(), *Locks::heap_bitmap_lock_); in TEST_F()
125 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "still here"))); in TEST_F()
135 StackHandleScope<2> hs(soa.Self()); in TEST_F()
[all …]
Dscoped_thread_state_change.h81 Thread* Self() const { in Self() function
105 Thread* Self() const { in Self() function
128 Locks::mutator_lock_->AssertSharedHeld(Self()); in AddLocalReference()
140 Locks::mutator_lock_->AssertSharedHeld(Self()); in Decode()
142 return down_cast<T>(Self()->DecodeJObject(obj)); in Decode()
147 Locks::mutator_lock_->AssertSharedHeld(Self()); in DecodeField()
156 Locks::mutator_lock_->AssertSharedHeld(Self()); in EncodeField()
164 Locks::mutator_lock_->AssertSharedHeld(Self()); in DecodeMethod()
173 Locks::mutator_lock_->AssertSharedHeld(Self()); in EncodeMethod()
230 : ScopedObjectAccessAlreadyRunnable(env), tsc_(Self(), kRunnable) { in ScopedObjectAccessUnchecked()
[all …]
Dtransaction_test.cc31 StackHandleScope<2> hs(soa.Self()); in TEST_F()
33 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;"))); in TEST_F()
38 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self()))); in TEST_F()
50 StackHandleScope<2> hs(soa.Self()); in TEST_F()
52 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;"))); in TEST_F()
54 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self()))); in TEST_F()
59 h_obj->MonitorEnter(soa.Self()); in TEST_F()
65 h_obj->MonitorExit(soa.Self()); in TEST_F()
78 StackHandleScope<2> hs(soa.Self()); in TEST_F()
80 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;"))); in TEST_F()
[all …]
Dproxy_test.cc36 … mirror::Class* javaLangObject = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;"); in GenerateProxyClass()
44 soa.Self()->AssertNoPendingException(); in GenerateProxyClass()
60 soa.Self()->AssertNoPendingException(); in GenerateProxyClass()
97 soa.Self()->AssertNoPendingException(); in GenerateProxyClass()
103 soa.Self()->AssertNoPendingException(); in GenerateProxyClass()
112 StackHandleScope<4> hs(soa.Self()); in TEST_F()
117 class_linker_->FindClass(soa.Self(), "LInterfaces$I;", class_loader))); in TEST_F()
119 class_linker_->FindClass(soa.Self(), "LInterfaces$J;", class_loader))); in TEST_F()
134 EXPECT_EQ(I.Get(), mirror::Class::GetDirectInterface(soa.Self(), proxy_class, 0)); in TEST_F()
135 EXPECT_EQ(J.Get(), mirror::Class::GetDirectInterface(soa.Self(), proxy_class, 1)); in TEST_F()
[all …]
Dclass_linker_test.cc626 StackHandleScope<1> hs(soa.Self()); in TEST_F()
630 mirror::Class* outer = class_linker_->FindClass(soa.Self(), "LNested;", class_loader); in TEST_F()
635 mirror::Class* inner = class_linker_->FindClass(soa.Self(), "LNested$Inner;", class_loader); in TEST_F()
657 mirror::Class* JavaLangObject = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;"); in TEST_F()
698 StackHandleScope<1> hs(soa.Self()); in TEST_F()
702 mirror::Class* MyClass = class_linker_->FindClass(soa.Self(), "LMyClass;", class_loader); in TEST_F()
752 mirror::Class* array_class = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/String;"); in TEST_F()
754 mirror::ObjectArray<mirror::String>::Alloc(soa.Self(), array_class, 0); in TEST_F()
767 StackHandleScope<5> hs(soa.Self()); in TEST_F()
768 Handle<mirror::LongArray> long_array(hs.NewHandle(mirror::LongArray::Alloc(soa.Self(), 0))); in TEST_F()
[all …]
Dutils_test.cc110 StackHandleScope<2> hs(soa.Self()); in TEST_F()
111 Handle<mirror::String> s(hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), ""))); in TEST_F()
114 Handle<mirror::ShortArray> a(hs.NewHandle(mirror::ShortArray::Alloc(soa.Self(), 2))); in TEST_F()
117 mirror::Class* c = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/String;"); in TEST_F()
119 mirror::Object* o = mirror::ObjectArray<mirror::String>::Alloc(soa.Self(), c, 0); in TEST_F()
127 mirror::Class* c = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/String;"); in TEST_F()
129 mirror::Object* o = mirror::ObjectArray<mirror::String>::Alloc(soa.Self(), c, 0); in TEST_F()
136 mirror::Class* c = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/String;"); in TEST_F()
138 mirror::Object* o = mirror::ObjectArray<mirror::String>::Alloc(soa.Self(), c, 0); in TEST_F()
146 mirror::Class* java_lang_String = class_linker_->FindSystemClass(soa.Self(), in TEST_F()
[all …]
Dreflection.cc417 method->Invoke(soa.Self(), args, arg_array->GetNumBytes(), result, shorty); in InvokeWithArgArray()
426 if (UNLIKELY(__builtin_frame_address(0) < soa.Self()->GetStackEnd())) { in InvokeWithVarArgs()
427 ThrowStackOverflowError(soa.Self()); in InvokeWithVarArgs()
447 if (UNLIKELY(__builtin_frame_address(0) < soa.Self()->GetStackEnd())) { in InvokeWithJValues()
448 ThrowStackOverflowError(soa.Self()); in InvokeWithJValues()
467 if (UNLIKELY(__builtin_frame_address(0) < soa.Self()->GetStackEnd())) { in InvokeVirtualOrInterfaceWithJValues()
468 ThrowStackOverflowError(soa.Self()); in InvokeVirtualOrInterfaceWithJValues()
487 if (UNLIKELY(__builtin_frame_address(0) < soa.Self()->GetStackEnd())) { in InvokeVirtualOrInterfaceWithVarArgs()
488 ThrowStackOverflowError(soa.Self()); in InvokeVirtualOrInterfaceWithVarArgs()
525 soa.Self()->GetStackEndForInterpreter(true))) { in InvokeMethod()
[all …]
Dsafe_map.h34 typedef SafeMap<K, V, Comparator, Allocator> Self; typedef
51 Self& operator=(const Self& rhs) {
68 void swap(Self& other) { map_.swap(other.map_); } in swap()
114 bool Equals(const Self& rhs) const { in Equals()
Djni_internal.cc74 return soa.Vm()->AddWeakGlobalReference(soa.Self(), obj); in AddWeakGlobalReference()
109 ThrowLocation throw_location = soa.Self()->GetCurrentLocationForThrow(); in ThrowNoSuchMethodError()
111 soa.Self()->ThrowNewExceptionF(throw_location, "Ljava/lang/NoSuchMethodError;", in ThrowNoSuchMethodError()
122 ThrowLocation throw_location = soa.Self()->GetCurrentLocationForThrow(); in ReportInvalidJNINativeMethod()
123 soa.Self()->ThrowNewExceptionF(throw_location, "Ljava/lang/NoSuchMethodError;", in ReportInvalidJNINativeMethod()
143 mirror::Class* c = EnsureInitialized(soa.Self(), soa.Decode<mirror::Class*>(jni_class)); in FindMethodID()
169 mirror::ArtMethod* method = soa.Self()->GetCurrentMethod(nullptr); in GetClassLoader()
172 return soa.Self()->GetClassLoaderOverride(); in GetClassLoader()
185 class_loader = soa.Self()->GetClassLoaderOverride(); in GetClassLoader()
198 StackHandleScope<2> hs(soa.Self()); in FindFieldID()
[all …]
/art/runtime/native/
Ddalvik_system_VMStack.cc32 if (soa.Decode<mirror::Object*>(peer) == soa.Self()->GetPeer()) { in GetThreadStack()
33 trace = soa.Self()->CreateInternalStackTrace<false>(soa); in GetThreadStack()
36 soa.Self()->TransitionFromRunnableToSuspended(kNative); in GetThreadStack()
42 MutexLock mu(soa.Self(), *Locks::thread_list_suspend_thread_lock_); in GetThreadStack()
47 CHECK_EQ(soa.Self()->TransitionFromSuspendedToRunnable(), kNative); in GetThreadStack()
49 soa.Self()->TransitionFromRunnableToSuspended(kNative); in GetThreadStack()
58 CHECK_EQ(soa.Self()->TransitionFromSuspendedToRunnable(), kNative); in GetThreadStack()
78 NthCallerVisitor visitor(soa.Self(), 2); in VMStack_getCallingClassLoader()
111 ClosestUserClassLoaderVisitor visitor(soa.Self(), bootstrap, system); in VMStack_getClosestUserClassLoader()
119 NthCallerVisitor visitor(soa.Self(), 3); in VMStack_getStackClass2()
Djava_lang_reflect_Constructor.cc40 StackHandleScope<1> hs(soa.Self()); in Constructor_newInstance()
43 ThrowLocation throw_location = soa.Self()->GetCurrentLocationForThrow(); in Constructor_newInstance()
44 soa.Self()->ThrowNewExceptionF(throw_location, "Ljava/lang/InstantiationException;", in Constructor_newInstance()
52 DCHECK(soa.Self()->IsExceptionPending()); in Constructor_newInstance()
65 movable ? c->AllocObject(soa.Self()) : c->AllocNonMovableObject(soa.Self()); in Constructor_newInstance()
Djava_lang_reflect_Field.cc99 soa.Self()->AssertThreadSuspensionIsAllowable(); in CheckReceiver()
104 StackHandleScope<2> hs(soa.Self()); in CheckReceiver()
108 DCHECK(soa.Self()->IsExceptionPending()); in CheckReceiver()
117 DCHECK(soa.Self()->IsExceptionPending()); in CheckReceiver()
128 DCHECK(soa.Self()->IsExceptionPending()); in Field_get()
132 if ((accessible == JNI_FALSE) && !VerifyFieldAccess<false>(soa.Self(), f, o)) { in Field_get()
133 DCHECK(soa.Self()->IsExceptionPending()); in Field_get()
141 DCHECK(soa.Self()->IsExceptionPending()); in Field_get()
154 DCHECK(soa.Self()->IsExceptionPending()); in GetPrimitiveField()
159 if (accessible == JNI_FALSE && !VerifyFieldAccess<false>(soa.Self(), f, o)) { in GetPrimitiveField()
[all …]
Djava_lang_Thread.cc33 return soa.AddLocalReference<jobject>(soa.Self()->GetPeer()); in Thread_currentThread()
42 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_isInterrupted()
63 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_nativeGetStatus()
103 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_nativeHoldsLock()
110 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_nativeInterrupt()
113 thread->Interrupt(soa.Self()); in Thread_nativeInterrupt()
122 if (soa.Decode<mirror::Object*>(peer) == soa.Self()->GetPeer()) { in Thread_nativeSetName()
123 soa.Self()->SetThreadName(name.c_str()); in Thread_nativeSetName()
126 self = soa.Self(); in Thread_nativeSetName()
158 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_nativeSetPriority()
Djava_lang_Class.cc56 ThrowLocation throw_location = soa.Self()->GetCurrentLocationForThrow(); in Class_classForName()
57 soa.Self()->ThrowNewExceptionF(throw_location, "Ljava/lang/ClassNotFoundException;", in Class_classForName()
63 StackHandleScope<2> hs(soa.Self()); in Class_classForName()
67 hs.NewHandle(class_linker->FindClass(soa.Self(), descriptor.c_str(), class_loader))); in Class_classForName()
88 StackHandleScope<1> hs(soa.Self()); in Class_getNameNative()
96 return soa.AddLocalReference<jobjectArray>(c->GetInterfaces()->Clone(soa.Self())); in Class_getProxyInterfaces()
Djava_lang_Object.cc31 return soa.AddLocalReference<jobject>(o->Clone(soa.Self())); in Object_internalClone()
37 o->Notify(soa.Self()); in Object_notify()
43 o->NotifyAll(soa.Self()); in Object_notifyAll()
49 o->Wait(soa.Self()); in Object_wait()
55 o->Wait(soa.Self(), ms, ns); in Object_waitJI()
Djava_lang_reflect_Array.cc31 StackHandleScope<2> hs(soa.Self()); in Array_createMultiArray()
41 mirror::Array* new_array = mirror::Array::CreateMultiArray(soa.Self(), element_class, in Array_createMultiArray()
56 mirror::Class* array_class = class_linker->FindArrayClass(soa.Self(), &element_class); in Array_createObjectArray()
58 CHECK(soa.Self()->IsExceptionPending()); in Array_createObjectArray()
62 mirror::Array* new_array = mirror::Array::Alloc<true>(soa.Self(), array_class, length, in Array_createObjectArray()
Dscoped_fast_native_object_access.h33 Locks::mutator_lock_->AssertSharedHeld(Self()); in ScopedFastNativeObjectAccess()
34 DCHECK(Self()->GetManagedStack()->GetTopQuickFrame()->AsMirrorPtr()->IsFastNative()); in ScopedFastNativeObjectAccess()
36 DCHECK_EQ(Self()->GetState(), kRunnable); in ScopedFastNativeObjectAccess()
Djava_lang_DexCache.cc29 DCHECK_EQ(dex_cache->GetLockOwnerThreadId(), soa.Self()->GetThreadId()); in DexCache_getDexNative()
37 DCHECK(soa.Self()->IsExceptionPending()); in DexCache_getDexNative()
/art/runtime/gc/
Dheap_test.cc47 StackHandleScope<1> hs(soa.Self()); in TEST_F()
49 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;"))); in TEST_F()
51 StackHandleScope<1> hs(soa.Self()); in TEST_F()
53 mirror::ObjectArray<mirror::Object>::Alloc(soa.Self(), c.Get(), 2048))); in TEST_F()
55 mirror::String* string = mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello, world!"); in TEST_F()
/art/runtime/entrypoints/
Dentrypoint_utils.cc171 stack_state_val.reset(soa.Self()->CreateInternalStackTrace<false>(soa)); in ThrowStackOverflowError()
240 soa.Self()->AssertThreadSuspensionIsAllowable(); in InvokeProxyInvocationHandler()
248 CHECK(soa.Self()->IsExceptionPending()); in InvokeProxyInvocationHandler()
260 CHECK(soa.Self()->IsExceptionPending()); in InvokeProxyInvocationHandler()
279 if (LIKELY(!soa.Self()->IsExceptionPending())) { in InvokeProxyInvocationHandler()
284 StackHandleScope<1> hs(soa.Self()); in InvokeProxyInvocationHandler()
303 DCHECK(soa.Self()->IsExceptionPending()); in InvokeProxyInvocationHandler()
311 mirror::Throwable* exception = soa.Self()->GetException(NULL); in InvokeProxyInvocationHandler()
338 soa.Self()->ThrowNewWrappedException(throw_location, in InvokeProxyInvocationHandler()
/art/compiler/driver/
Dcompiler_driver.cc582 StackHandleScope<1> hs(soa.Self()); in CompileOne()
856 StackHandleScope<1> hs(soa.Self()); in CanAssumeStringIsPresentInDexCache()
1072 StackHandleScope<3> hs(soa.Self()); in ComputeInstanceFieldInfo()
1098 StackHandleScope<1> hs(soa.Self()); in ComputeInstanceFieldInfo()
1124 StackHandleScope<3> hs(soa.Self()); in ComputeStaticFieldInfo()
1290 StackHandleScope<3> hs(soa.Self()); in ComputeInvokeInfo()
1617 StackHandleScope<2> hs(soa.Self()); in ResolveClassFieldsAndMethods()
1628 CheckAndClearResolveException(soa.Self()); in ResolveClassFieldsAndMethods()
1652 CheckAndClearResolveException(soa.Self()); in ResolveClassFieldsAndMethods()
1667 CheckAndClearResolveException(soa.Self()); in ResolveClassFieldsAndMethods()
[all …]
Dcompiler_driver-inl.h52 DCHECK_EQ(referrer_class == nullptr, soa.Self()->IsExceptionPending()); in ResolveCompilingMethodsClass()
55 soa.Self()->ClearException(); in ResolveCompilingMethodsClass()
68 DCHECK_EQ(resolved_field == nullptr, soa.Self()->IsExceptionPending()); in ResolveField()
71 soa.Self()->ClearException(); in ResolveField()
176 DCHECK_EQ(resolved_method == nullptr, soa.Self()->IsExceptionPending()); in ResolveMethod()
179 soa.Self()->ClearException(); in ResolveMethod()
271 StackHandleScope<1> hs(soa.Self()); in IsFastInvoke()
/art/runtime/arch/
Dstub_test.cc611 StackHandleScope<2> hs(soa.Self()); in TEST_F()
613 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello, world!"))); in TEST_F()
638 mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello, world!"))); in TEST_F()
686 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello, world!"))); in TestUnlockObject()
729 objects[i] = hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "")); in TestUnlockObject()
833 StackHandleScope<2> hs(soa.Self()); in TEST_F()
835 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;"))); in TEST_F()
837 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/String;"))); in TEST_F()
886 StackHandleScope<5> hs(soa.Self()); in TEST_F()
888 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;"))); in TEST_F()
[all …]

123