Lines Matching refs:Self

74   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()
200 hs.NewHandle(EnsureInitialized(soa.Self(), soa.Decode<mirror::Class*>(jni_class)))); in FindFieldID()
209 field_type = class_linker->FindClass(soa.Self(), sig, class_loader); in FindFieldID()
215 DCHECK(soa.Self()->IsExceptionPending()); in FindFieldID()
217 StackHandleScope<1> hs(soa.Self()); in FindFieldID()
218 Handle<mirror::Throwable> cause(hs.NewHandle(soa.Self()->GetException(&throw_location))); in FindFieldID()
219 soa.Self()->ClearException(); in FindFieldID()
221 soa.Self()->ThrowNewExceptionF(throw_location, "Ljava/lang/NoSuchFieldError;", in FindFieldID()
225 soa.Self()->GetException(nullptr)->SetCause(cause.Get()); in FindFieldID()
230 field = mirror::Class::FindStaticField(soa.Self(), c, name, in FindFieldID()
236 ThrowLocation throw_location = soa.Self()->GetCurrentLocationForThrow(); in FindFieldID()
237 soa.Self()->ThrowNewExceptionF(throw_location, "Ljava/lang/NoSuchFieldError;", in FindFieldID()
249 ThrowLocation throw_location = soa.Self()->GetCurrentLocationForThrow(); in ThrowAIOOBE()
250 soa.Self()->ThrowNewExceptionF(throw_location, "Ljava/lang/ArrayIndexOutOfBoundsException;", in ThrowAIOOBE()
258 ThrowLocation throw_location = soa.Self()->GetCurrentLocationForThrow(); in ThrowSIOOBE()
259 soa.Self()->ThrowNewExceptionF(throw_location, "Ljava/lang/StringIndexOutOfBoundsException;", in ThrowSIOOBE()
302 ThrowLocation throw_location = soa.Self()->GetCurrentLocationForThrow(); in ThrowNewException()
303 soa.Self()->SetException(throw_location, soa.Decode<mirror::Throwable*>(exception.get())); in ThrowNewException()
597 StackHandleScope<1> hs(soa.Self()); in FindClass()
599 c = class_linker->FindClass(soa.Self(), descriptor.c_str(), class_loader); in FindClass()
601 c = class_linker->FindSystemClass(soa.Self(), descriptor.c_str()); in FindClass()
696 ThrowLocation throw_location = soa.Self()->GetCurrentLocationForThrow(); in Throw()
697 soa.Self()->SetException(throw_location, exception); in Throw()
712 soa.Self()->ClearException(); in ExceptionClear()
719 if (!soa.Self()->GetException(nullptr)) { in ExceptionDescribe()
723 StackHandleScope<3> hs(soa.Self()); in ExceptionDescribe()
732 mirror::Throwable* old_exception_obj = soa.Self()->GetException(&old_throw_location); in ExceptionDescribe()
737 old_is_exception_reported = soa.Self()->IsExceptionReportedToInstrumentation(); in ExceptionDescribe()
738 soa.Self()->ClearException(); in ExceptionDescribe()
749 if (soa.Self()->IsExceptionPending()) { in ExceptionDescribe()
750 LOG(WARNING) << "JNI WARNING: " << PrettyTypeOf(soa.Self()->GetException(nullptr)) in ExceptionDescribe()
752 soa.Self()->ClearException(); in ExceptionDescribe()
758 soa.Self()->SetException(gc_safe_throw_location, old_exception.Get()); in ExceptionDescribe()
759 soa.Self()->SetExceptionReportedToInstrumentation(old_is_exception_reported); in ExceptionDescribe()
764 mirror::Object* exception = soa.Self()->GetException(nullptr); in ExceptionOccurred()
804 WriterMutexLock mu(soa.Self(), vm->globals_lock); in NewGlobalRef()
832 soa.Vm()->DeleteWeakGlobalRef(soa.Self(), obj); in DeleteWeakGlobalRef()
878 mirror::Class* c = EnsureInitialized(soa.Self(), soa.Decode<mirror::Class*>(java_class)); in AllocObject()
882 return soa.AddLocalReference<jobject>(c->AllocObject(soa.Self())); in AllocObject()
899 mirror::Class* c = EnsureInitialized(soa.Self(), soa.Decode<mirror::Class*>(java_class)); in NewObjectV()
903 mirror::Object* result = c->AllocObject(soa.Self()); in NewObjectV()
909 if (soa.Self()->IsExceptionPending()) { in NewObjectV()
919 mirror::Class* c = EnsureInitialized(soa.Self(), soa.Decode<mirror::Class*>(java_class)); in NewObjectA()
923 mirror::Object* result = c->AllocObject(soa.Self()); in NewObjectA()
929 if (soa.Self()->IsExceptionPending()) { in NewObjectA()
1924 mirror::String* result = mirror::String::AllocFromUtf16(soa.Self(), char_count, chars); in NewString()
1933 mirror::String* result = mirror::String::AllocFromModifiedUtf8(soa.Self(), utf); in NewStringUTF()
2020 StackHandleScope<1> hs(soa.Self()); in GetStringCritical()
2022 heap->IncrementDisableMovingGC(soa.Self()); in GetStringCritical()
2037 heap->DecrementDisableMovingGC(soa.Self()); in ReleaseStringCritical()
2139 array_class = class_linker->FindArrayClass(soa.Self(), &element_class); in NewObjectArray()
2147 mirror::ObjectArray<mirror::Object>::Alloc(soa.Self(), array_class, length); in NewObjectArray()
2182 heap->IncrementDisableMovingGC(soa.Self()); in GetPrimitiveArrayCritical()
2424 m->RegisterNative(soa.Self(), fnPtr, is_fast); in RegisterNativeMethods()
2440 m->UnregisterNative(soa.Self()); in UnregisterNatives()
2447 m->UnregisterNative(soa.Self()); in UnregisterNatives()
2463 o = o->MonitorEnter(soa.Self()); in MonitorEnter()
2464 if (soa.Self()->IsExceptionPending()) { in MonitorEnter()
2475 o->MonitorExit(soa.Self()); in MonitorExit()
2476 if (soa.Self()->IsExceptionPending()) { in MonitorExit()
2573 soa.Self()->ThrowOutOfMemoryError(caller); in EnsureLocalCapacity()
2585 ArtT* result = ArtT::Alloc(soa.Self(), length); in NewPrimitiveArray()
2673 heap->DecrementDisableMovingGC(soa.Self()); in ReleasePrimitiveArray()