Home
last modified time | relevance | path

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

123456

/art/runtime/
Dmethod_handles_test.cc75 StackHandleScope<2> hs(soa.Self()); in TEST_F()
81 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
87 StackHandleScope<2> hs(soa.Self()); in TEST_F()
93 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
100 StackHandleScope<2> hs(soa.Self()); in TEST_F()
105 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
112 StackHandleScope<2> hs(soa.Self()); in TEST_F()
118 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
119 ASSERT_TRUE(IsWrongMethodTypeException(soa.Self()->GetException())); in TEST_F()
120 soa.Self()->ClearException(); in TEST_F()
[all …]
Dintern_table_test.cc40 StackHandleScope<4> hs(soa.Self()); in TEST_F()
44 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "foo"))); in TEST_F()
64 StackHandleScope<1> hs(soa.Self()); in TEST_F()
66 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "foo"))); in TEST_F()
83 ObjPtr<mirror::String> str = mirror::String::AllocFromModifiedUtf8(soa.Self(), "00000000"); in TEST_F()
127 StackHandleScope<5> hs(soa.Self()); in TEST_F()
129 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello"))); in TEST_F()
131 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "world"))); in TEST_F()
142 ReaderMutexLock mu(soa.Self(), *Locks::heap_bitmap_lock_); in TEST_F()
150 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "still here"))); in TEST_F()
[all …]
Dtransaction_test.cc41 StackHandleScope<2> hs(soa.Self()); 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(), kTransactionAbortErrorDescriptor)); in testTransactionAbort()
58 class_linker_->EnsureInitialized(soa.Self(), h_klass, true, true); in testTransactionAbort()
62 h_klass.Assign(class_linker_->FindClass(soa.Self(), "LTransaction$AbortHelperClass;", in testTransactionAbort()
65 class_linker_->VerifyClass(soa.Self(), /* verifier_deps= */ nullptr, h_klass); in testTransactionAbort()
69 h_klass.Assign(class_linker_->FindClass(soa.Self(), tested_class_signature, class_loader)); in testTransactionAbort()
71 class_linker_->VerifyClass(soa.Self(), /* verifier_deps= */ nullptr, h_klass); in testTransactionAbort()
78 bool success = class_linker_->EnsureInitialized(soa.Self(), h_klass, true, true); in testTransactionAbort()
[all …]
Dproxy_test.h43 StackHandleScope<1> hs(soa.Self()); in GenerateProxyClass()
52 soa.Self()->AssertNoPendingException(); in GenerateProxyClass()
67 soa.Self()->AssertNoPendingException(); in GenerateProxyClass()
80 mirror::Method::CreateFromArtMethod<kRuntimePointerSize>(soa.Self(), method))); in GenerateProxyClass()
87 mirror::Method::CreateFromArtMethod<kRuntimePointerSize>(soa.Self(), method))); in GenerateProxyClass()
95 mirror::Method::CreateFromArtMethod<kRuntimePointerSize>(soa.Self(), method))); in GenerateProxyClass()
101 mirror::Method::CreateFromArtMethod<kRuntimePointerSize>(soa.Self(), &m))); in GenerateProxyClass()
108 soa.Self()->AssertNoPendingException(); in GenerateProxyClass()
117 soa.Self()->AssertNoPendingException(); in GenerateProxyClass()
Dscoped_thread_state_change-inl.h77 Locks::mutator_lock_->AssertSharedHeld(Self()); in AddLocalReference()
87 Locks::mutator_lock_->AssertSharedHeld(Self()); in Decode()
89 return ObjPtr<T>::DownCast(Self()->DecodeJObject(obj)); in Decode()
105 : ScopedObjectAccessAlreadyRunnable(env), tsc_(Self(), ThreadState::kRunnable) { in ScopedObjectAccessUnchecked()
106 Self()->VerifyStack(); in ScopedObjectAccessUnchecked()
107 Locks::mutator_lock_->AssertSharedHeld(Self()); in ScopedObjectAccessUnchecked()
112 Self()->VerifyStack(); in ScopedObjectAccessUnchecked()
113 Locks::mutator_lock_->AssertSharedHeld(Self()); in ScopedObjectAccessUnchecked()
Dproxy_test.cc42 StackHandleScope<4> hs(soa.Self()); in TEST_F()
47 class_linker_->FindClass(soa.Self(), "LInterfaces$I;", class_loader))); in TEST_F()
49 class_linker_->FindClass(soa.Self(), "LInterfaces$J;", class_loader))); in TEST_F()
76 StackHandleScope<9> hs(soa.Self()); in TEST_F()
81 class_linker_->FindClass(soa.Self(), "LInterfaces$I;", class_loader))); in TEST_F()
83 class_linker_->FindClass(soa.Self(), "LInterfaces$J;", class_loader))); in TEST_F()
107 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Class;"))); in TEST_F()
110 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[[Ljava/lang/Class;"))); in TEST_F()
137 StackHandleScope<7> hs(soa.Self()); in TEST_F()
171 hs.NewHandle(mirror::Field::CreateFromArtField(soa.Self(), &static_fields0->At(0), true)); in TEST_F()
[all …]
Dreference_table_test.cc85 StackHandleScope<5u> hs(soa.Self()); in TEST_F()
87 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello")); in TEST_F()
118 Handle<mirror::ShortArray> o2 = hs.NewHandle(mirror::ShortArray::Alloc(soa.Self(), 0)); in TEST_F()
191 mirror::String::AllocFromModifiedUtf8(soa.Self(), "Without"))); in TEST_F()
194 ScopedThreadSuspension sts(soa.Self(), ThreadState::kSuspended); in TEST_F()
206 substr->InvokeFinal<'L', 'I', 'I'>(soa.Self(), h_without_trace.Get(), 0, 4)); in TEST_F()
221 h_ref = hs.NewHandle(soa.Self()->DecodeJObject(result)); in TEST_F()
255 ScopedThreadSuspension sts(soa.Self(), ThreadState::kSuspended); in TEST_F()
282 StackHandleScope<1> hs(soa.Self()); in TEST_F()
284 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello")); in TEST_F()
[all …]
Dclass_linker_test.cc909 StackHandleScope<1> hs(soa.Self()); in TEST_F()
913 ObjPtr<mirror::Class> outer = class_linker_->FindClass(soa.Self(), "LNested;", class_loader); in TEST_F()
919 class_linker_->FindClass(soa.Self(), "LNested$Inner;", class_loader); in TEST_F()
941 StackHandleScope<2> hs(soa.Self()); in TEST_F()
943 class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;")); in TEST_F()
949 ObjPtr<mirror::Class> MyClass = class_linker_->FindClass(soa.Self(), "LMyClass;", class_loader); in TEST_F()
994 StackHandleScope<1> hs(soa.Self()); in TEST_F()
998 ObjPtr<mirror::Class> klass = class_linker_->FindClass(soa.Self(), "LMyClass;", class_loader); in TEST_F()
1014 StackHandleScope<2> hs(soa.Self()); in TEST_F()
1019 = class_linker_->FindClass(soa.Self(), "LAllFields;", class_loader); in TEST_F()
[all …]
Dhandle_scope_test.cc56 StackHandleScope<0x1> hs0(soa.Self()); in TEST_F()
58 StackHandleScope<kNumReferences> test_table(soa.Self()); in TEST_F()
59 ObjPtr<mirror::Class> c = class_linker->FindSystemClass(soa.Self(), "Ljava/lang/Object;"); in TEST_F()
99 VariableSizedHandleScope hs(soa.Self()); in TEST_F()
103 hs.NewHandle(class_linker->FindSystemClass(soa.Self(), "Ljava/lang/Object;")); in TEST_F()
106 StackHandleScope<1> inner(soa.Self()); in TEST_F()
107 inner.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
112 ObjPtr<mirror::Object> o = c->AllocObject(soa.Self()); in TEST_F()
/art/runtime/mirror/
Dobject_test.cc115 StackHandleScope<2> hs(soa.Self()); in TEST_F()
116 Handle<ObjectArray<Object>> a1(hs.NewHandle(AllocObjectArray<Object>(soa.Self(), 256))); in TEST_F()
118 ObjPtr<Object> clone = Object::Clone(a1, soa.Self()); in TEST_F()
125 StackHandleScope<3> hs(soa.Self()); in TEST_F()
126 Handle<ObjectArray<Object>> oa(hs.NewHandle(AllocObjectArray<Object>(soa.Self(), 2))); in TEST_F()
138 class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/ArrayIndexOutOfBoundsException;")); in TEST_F()
141 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
142 EXPECT_OBJ_PTR_EQ(aioobe.Get(), soa.Self()->GetException()->GetClass()); in TEST_F()
143 soa.Self()->ClearException(); in TEST_F()
146 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
[all …]
Dmethod_type_test.cc61 StackHandleScope<2> hs(soa.Self()); in CreateMethodType()
83 StackHandleScope<2> hs(soa.Self()); in TEST_F()
91 StackHandleScope<2> hs(soa.Self()); in TEST_F()
99 StackHandleScope<2> hs(soa.Self()); in TEST_F()
107 StackHandleScope<2> hs(soa.Self()); in TEST_F()
120 StackHandleScope<2> hs(soa.Self()); in TEST_F()
128 StackHandleScope<2> hs(soa.Self()); in TEST_F()
136 StackHandleScope<2> hs(soa.Self()); in TEST_F()
144 StackHandleScope<2> hs(soa.Self()); in TEST_F()
152 StackHandleScope<2> hs(soa.Self()); in TEST_F()
[all …]
Ddex_cache_test.cc49 StackHandleScope<1> hs(soa.Self()); in TEST_F()
53 soa.Self(), *java_lang_dex_file_, /*class_loader=*/nullptr))); in TEST_F()
66 StackHandleScope<1> hs(soa.Self()); in TEST_F()
70 soa.Self(), *java_lang_dex_file_, /*class_loader=*/nullptr))); in TEST_F()
79 StackHandleScope<3> hs(soa.Self()); in TEST_F()
83 hs.NewHandle(class_linker_->FindClass(soa.Self(), "Lpackage1/Package1;", class_loader)); in TEST_F()
86 hs.NewHandle(class_linker_->FindClass(soa.Self(), "Lpackage2/Package2;", class_loader)); in TEST_F()
106 StackHandleScope<5> hs(soa.Self()); in TEST_F()
111 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LMethodTypes;", class_loader))); in TEST_F()
112 class_linker_->EnsureInitialized(soa.Self(), method_types, true, true); in TEST_F()
[all …]
/art/runtime/native/
Djava_lang_Class.cc93 StackHandleScope<3> hs(soa.Self()); in Class_classForName()
96 soa.Self()->ThrowNewWrappedException("Ljava/lang/NullPointerException;", /*msg=*/ nullptr); in Class_classForName()
105 soa.Self()->ThrowNewExceptionF("Ljava/lang/ClassNotFoundException;", in Class_classForName()
115 hs.NewHandle(class_linker->FindClass(soa.Self(), descriptor.c_str(), class_loader))); in Class_classForName()
117 StackHandleScope<2> hs2(soa.Self()); in Class_classForName()
118 Handle<mirror::Object> cause = hs2.NewHandle(soa.Self()->GetException()); in Class_classForName()
119 soa.Self()->ClearException(); in Class_classForName()
122 hs2, soa.Self(), mirror_name, cause); in Class_classForName()
125 soa.Self()->SetException(ObjPtr<mirror::Throwable>::DownCast(cnfe.Get())); in Class_classForName()
130 class_linker->EnsureInitialized(soa.Self(), c, true, true); in Class_classForName()
[all …]
Djava_lang_reflect_Constructor.cc50 mirror::ObjectArray<mirror::Class>::Alloc(soa.Self(), class_array_class, 0); in Constructor_getExceptionTypes()
66 StackHandleScope<1> hs(soa.Self()); in Constructor_newInstance0()
69 soa.Self()->ThrowNewExceptionF("Ljava/lang/InstantiationException;", "Can't instantiate %s %s", in Constructor_newInstance0()
78 ObjPtr<mirror::Class> caller = GetCallingClass(soa.Self(), 2); in Constructor_newInstance0()
88 soa.Self()->ThrowNewExceptionF( in Constructor_newInstance0()
96 if (!Runtime::Current()->GetClassLinker()->EnsureInitialized(soa.Self(), c, true, true)) { in Constructor_newInstance0()
97 DCHECK(soa.Self()->IsExceptionPending()); in Constructor_newInstance0()
111 movable ? c->AllocObject(soa.Self()) : c->AllocNonMovableObject(soa.Self()); in Constructor_newInstance0()
113 DCHECK(soa.Self()->IsExceptionPending()); in Constructor_newInstance0()
Djava_lang_invoke_MethodHandleImpl.cc35 StackHandleScope<2> hs(soa.Self()); 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()
Djava_lang_String.cc57 StackHandleScope<2> hs(soa.Self()); in String_concat()
63 ObjPtr<mirror::String> result = mirror::String::DoConcat(soa.Self(), string_this, string_arg); in String_concat()
72 StackHandleScope<1> hs(soa.Self()); in String_fastSubstring()
75 ObjPtr<mirror::String> result = mirror::String::AllocFromString(soa.Self(), in String_fastSubstring()
86 StackHandleScope<1> hs(soa.Self()); in String_getCharsNoCheck()
94 StackHandleScope<1> hs(soa.Self()); in String_fillBytesLatin1()
102 StackHandleScope<1> hs(soa.Self()); in String_fillBytesUTF16()
115 StackHandleScope<1> hs(soa.Self()); in String_doReplace()
117 ObjPtr<mirror::String> result = mirror::String::DoReplace(soa.Self(), string, old_c, new_c); in String_doReplace()
123 StackHandleScope<1u> hs(soa.Self()); in String_toCharArray()
[all …]
Djava_lang_StringFactory.cc40 StackHandleScope<1> hs(soa.Self()); 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()
66 StackHandleScope<1> hs(soa.Self()); in StringFactory_newStringFromUtf16Bytes()
73 soa.Self()->ThrowNewExceptionF("Ljava/lang/StringIndexOutOfBoundsException;", in StringFactory_newStringFromUtf16Bytes()
81 ObjPtr<mirror::String> result = mirror::String::AllocFromUtf16ByteArray(soa.Self(), in StringFactory_newStringFromUtf16Bytes()
94 StackHandleScope<1> hs(soa.Self()); in StringFactory_newStringFromChars()
97 ObjPtr<mirror::String> result = mirror::String::AllocFromCharArray(soa.Self(), in StringFactory_newStringFromChars()
111 StackHandleScope<1> hs(soa.Self()); in StringFactory_newStringFromString()
114 ObjPtr<mirror::String> result = mirror::String::AllocFromString(soa.Self(), in StringFactory_newStringFromString()
[all …]
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(), ThreadState::kRunnable); in ScopedFastNativeObjectAccess()
Djava_lang_Object.cc31 StackHandleScope<1u> hs(soa.Self()); in Object_internalClone()
33 return soa.AddLocalReference<jobject>(mirror::Class::Clone(o, soa.Self())); in Object_internalClone()
38 soa.Decode<mirror::Object>(java_this)->Notify(soa.Self()); in Object_notify()
43 soa.Decode<mirror::Object>(java_this)->NotifyAll(soa.Self()); in Object_notifyAll()
48 soa.Decode<mirror::Object>(java_this)->Wait(soa.Self(), ms, ns); in Object_waitJI()
Djava_lang_reflect_Array.cc38 StackHandleScope<2> hs(soa.Self()); in Array_createMultiArray()
49 mirror::Array::CreateMultiArray(soa.Self(), element_class, dimensions_array); in Array_createMultiArray()
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()
/art/test/1985-structural-redefine-stack-scope/
Dstack_scope.cc49 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()
/art/runtime/gc/
Dheap_verification_test.cc56 VariableSizedHandleScope hs(soa.Self()); in TEST_F()
58 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "test"))); in TEST_F()
77 VariableSizedHandleScope hs(soa.Self()); in TEST_F()
79 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "test"))); in TEST_F()
96 VariableSizedHandleScope hs(soa.Self()); in TEST_F()
98 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "test"))); in TEST_F()
109 VariableSizedHandleScope hs(soa.Self()); in TEST_F()
127 VariableSizedHandleScope hs(soa.Self()); in TEST_F()
129 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "obj"))); in TEST_F()
131 hs.NewHandle(AllocObjectArray<mirror::Object>(soa.Self(), 256))); in TEST_F()
[all …]
/art/test/692-vdex-inmem-loader/
Dvdex_inmem_loader.cc43 StackHandleScope<2> hs(soa.Self()); in Java_Main_areClassesVerified()
48 soa.Self(), in Java_Main_areClassesVerified()
63 h_class.Assign(class_linker->FindClass(soa.Self(), desc, h_loader)); in Java_Main_areClassesVerified()
82 StackHandleScope<1> hs(soa.Self()); in Java_Main_hasVdexFile()
87 soa.Self(), in Java_Main_hasVdexFile()
112 StackHandleScope<1> hs(soa.Self()); in Java_Main_isBackedByOatFile()
119 soa.Self(), in Java_Main_isBackedByOatFile()
139 StackHandleScope<2> hs(soa.Self()); in Java_Main_areClassesPreverified()
144 soa.Self(), in Java_Main_areClassesPreverified()
159 h_class.Assign(class_linker->FindClass(soa.Self(), desc, h_loader)); in Java_Main_areClassesPreverified()
[all …]
/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/runtime/interpreter/
Dinterpreter_switch_impl-inl.h280 StackHandleScope<1u> hs(Self()); in CheckTransactionAbort()
281 Handle<mirror::Throwable> abort_exception = hs.NewHandle(Self()->GetException()); in CheckTransactionAbort()
284 Self()->ClearException(); in CheckTransactionAbort()
285 PerformNonStandardReturn(Self(), shadow_frame_, ctx_->result, Instrumentation()); in CheckTransactionAbort()
286 Self()->SetException(abort_exception.Get()); in CheckTransactionAbort()
296 PerformNonStandardReturn(Self(), shadow_frame_, ctx_->result, Instrumentation()); in CheckForceReturn()
304 DCHECK(Self()->IsExceptionPending()); in HandlePendingException()
305 Self()->AllowThreadSuspension(); in HandlePendingException()
314 if (!MoveToExceptionHandler(Self(), in HandlePendingException()
319 DoMonitorCheckOnExit(Self(), &shadow_frame_); in HandlePendingException()
[all …]

123456