Lines Matching refs:self

71 static void AbortTransactionOrFail(Thread* self, const char* fmt, ...)
75 static void AbortTransactionOrFail(Thread* self, const char* fmt, ...) { in AbortTransactionOrFail() argument
79 AbortTransactionV(self, fmt, args); in AbortTransactionOrFail()
93 static void CharacterLowerUpper(Thread* self, in CharacterLowerUpper() argument
102 AbortTransactionOrFail(self, in CharacterLowerUpper()
119 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedCharacterToLowerCase() argument
120 CharacterLowerUpper(self, shadow_frame, result, arg_offset, true); in UnstartedCharacterToLowerCase()
124 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedCharacterToUpperCase() argument
125 CharacterLowerUpper(self, shadow_frame, result, arg_offset, false); in UnstartedCharacterToUpperCase()
129 static void UnstartedRuntimeFindClass(Thread* self, Handle<mirror::String> className, in UnstartedRuntimeFindClass() argument
138 ObjPtr<mirror::Class> found = class_linker->FindClass(self, descriptor.c_str(), class_loader); in UnstartedRuntimeFindClass()
140 if (!self->IsExceptionPending()) { in UnstartedRuntimeFindClass()
141 AbortTransactionOrFail(self, "%s failed in un-started runtime for class: %s", in UnstartedRuntimeFindClass()
148 StackHandleScope<1> hs(self); in UnstartedRuntimeFindClass()
150 if (!class_linker->EnsureInitialized(self, h_class, true, true)) { in UnstartedRuntimeFindClass()
151 CHECK(self->IsExceptionPending()); in UnstartedRuntimeFindClass()
163 static void CheckExceptionGenerateClassNotFound(Thread* self) in CheckExceptionGenerateClassNotFound() argument
165 if (self->IsExceptionPending()) { in CheckExceptionGenerateClassNotFound()
167 std::string type(mirror::Object::PrettyTypeOf(self->GetException())); in CheckExceptionGenerateClassNotFound()
169 self->ThrowNewWrappedException("Ljava/lang/ClassNotFoundException;", in CheckExceptionGenerateClassNotFound()
175 static ObjPtr<mirror::String> GetClassName(Thread* self, in GetClassName() argument
181 AbortTransactionOrFail(self, "Null-pointer in Class.forName."); in GetClassName()
204 void UnstartedRuntime::UnstartedClassForNameCommon(Thread* self, in UnstartedClassForNameCommon() argument
210 ObjPtr<mirror::String> class_name = GetClassName(self, shadow_frame, arg_offset); in UnstartedClassForNameCommon()
227 ScopedObjectAccessUnchecked soa(self); in UnstartedClassForNameCommon()
229 AbortTransactionOrFail(self, in UnstartedClassForNameCommon()
235 StackHandleScope<1> hs(self); in UnstartedClassForNameCommon()
237 UnstartedRuntimeFindClass(self, in UnstartedClassForNameCommon()
244 CheckExceptionGenerateClassNotFound(self); in UnstartedClassForNameCommon()
248 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedClassForName() argument
249 UnstartedClassForNameCommon(self, shadow_frame, result, arg_offset, false, "Class.forName"); in UnstartedClassForName()
253 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedClassForNameLong() argument
254 UnstartedClassForNameCommon(self, shadow_frame, result, arg_offset, true, "Class.forName"); in UnstartedClassForNameLong()
258 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedClassGetPrimitiveClass() argument
259 ObjPtr<mirror::String> class_name = GetClassName(self, shadow_frame, arg_offset); in UnstartedClassGetPrimitiveClass()
262 DCHECK(self->IsExceptionPending()); in UnstartedClassGetPrimitiveClass()
263 AbortTransactionOrFail(self, in UnstartedClassGetPrimitiveClass()
265 self->GetException()->GetDetailMessage()->ToModifiedUtf8().c_str()); in UnstartedClassGetPrimitiveClass()
272 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedClassClassForName() argument
273 UnstartedClassForNameCommon(self, shadow_frame, result, arg_offset, true, "Class.classForName"); in UnstartedClassClassForName()
277 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedClassNewInstance() argument
278 StackHandleScope<2> hs(self); // Class, constructor, object. in UnstartedClassNewInstance()
281 AbortTransactionOrFail(self, "Null-pointer in Class.newInstance."); in UnstartedClassNewInstance()
288 AbortTransactionOrFail(self, "Class reference is null for newInstance"); in UnstartedClassNewInstance()
295 AbortTransactionF(self, "Class for newInstance is finalizable: '%s'", in UnstartedClassNewInstance()
307 if (cl->EnsureInitialized(self, h_klass, true, true)) { in UnstartedClassNewInstance()
313 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(self))); in UnstartedClassNewInstance()
315 EnterInterpreterFromInvoke(self, cons, h_obj.Get(), nullptr, nullptr); in UnstartedClassNewInstance()
316 if (!self->IsExceptionPending()) { in UnstartedClassNewInstance()
321 self->ThrowNewExceptionF("Ljava/lang/InternalError;", in UnstartedClassNewInstance()
327 AbortTransactionOrFail(self, "Failed in Class.newInstance for '%s' with %s", in UnstartedClassNewInstance()
329 mirror::Object::PrettyTypeOf(self->GetException()).c_str()); in UnstartedClassNewInstance()
334 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedClassGetDeclaredField() argument
358 AbortTransactionOrFail(self, "Failed to find field in Class.getDeclaredField in un-started " in UnstartedClassGetDeclaredField()
363 ObjPtr<mirror::Field> field = mirror::Field::CreateFromArtField(self, found, true); in UnstartedClassGetDeclaredField()
369 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedClassGetDeclaredMethod() argument
383 self, klass, name, args, fn_hiddenapi_access_context) in UnstartedClassGetDeclaredMethod()
385 self, klass, name, args, fn_hiddenapi_access_context); in UnstartedClassGetDeclaredMethod()
394 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedClassGetDeclaredConstructor() argument
404 ? mirror::Class::GetDeclaredConstructorInternal<PointerSize::k64>(self, klass, args) in UnstartedClassGetDeclaredConstructor()
405 : mirror::Class::GetDeclaredConstructorInternal<PointerSize::k32>(self, klass, args); in UnstartedClassGetDeclaredConstructor()
414 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedClassGetDeclaringClass() argument
415 StackHandleScope<1> hs(self); in UnstartedClassGetDeclaringClass()
424 UnstartedClassIsAnonymousClass(self, shadow_frame, &is_anon_result, arg_offset); in UnstartedClassGetDeclaringClass()
433 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedClassGetEnclosingClass() argument
434 StackHandleScope<1> hs(self); in UnstartedClassGetEnclosingClass()
443 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedClassGetInnerClassFlags() argument
444 StackHandleScope<1> hs(self); in UnstartedClassGetInnerClassFlags()
452 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedClassGetSignatureAnnotation() argument
453 StackHandleScope<1> hs(self); in UnstartedClassGetSignatureAnnotation()
466 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedClassIsAnonymousClass() argument
467 StackHandleScope<1> hs(self); in UnstartedClassIsAnonymousClass()
506 static void GetResourceAsStream(Thread* self, in GetResourceAsStream() argument
512 AbortTransactionOrFail(self, "null name for getResourceAsStream"); in GetResourceAsStream()
520 AbortTransactionOrFail(self, in GetResourceAsStream()
534 AbortTransactionOrFail(self, "Boot classpath not set"); in GetResourceAsStream()
552 AbortTransactionOrFail(self, in GetResourceAsStream()
559 StackHandleScope<3> hs(self); in GetResourceAsStream()
562 Handle<mirror::ByteArray> h_array(hs.NewHandle(mirror::ByteArray::Alloc(self, map_size))); in GetResourceAsStream()
564 AbortTransactionOrFail(self, "Could not find/create byte array class"); in GetResourceAsStream()
574 runtime->GetClassLinker()->FindClass(self, in GetResourceAsStream()
578 AbortTransactionOrFail(self, "Could not find ByteArrayInputStream class"); in GetResourceAsStream()
581 if (!runtime->GetClassLinker()->EnsureInitialized(self, h_class, true, true)) { in GetResourceAsStream()
582 AbortTransactionOrFail(self, "Could not initialize ByteArrayInputStream class"); in GetResourceAsStream()
586 Handle<mirror::Object> h_obj(hs.NewHandle(h_class->AllocObject(self))); in GetResourceAsStream()
588 AbortTransactionOrFail(self, "Could not allocate ByteArrayInputStream object"); in GetResourceAsStream()
595 AbortTransactionOrFail(self, "Could not find ByteArrayInputStream constructor"); in GetResourceAsStream()
601 EnterInterpreterFromInvoke(self, constructor, h_obj.Get(), args, nullptr); in GetResourceAsStream()
603 if (self->IsExceptionPending()) { in GetResourceAsStream()
604 AbortTransactionOrFail(self, "Could not run ByteArrayInputStream constructor"); in GetResourceAsStream()
612 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedClassLoaderGetResourceAsStream() argument
618 StackHandleScope<1> hs(self); in UnstartedClassLoaderGetResourceAsStream()
621 if (self->DecodeJObject(WellKnownClasses::java_lang_BootClassLoader) != in UnstartedClassLoaderGetResourceAsStream()
623 AbortTransactionOrFail(self, in UnstartedClassLoaderGetResourceAsStream()
630 GetResourceAsStream(self, shadow_frame, result, arg_offset); in UnstartedClassLoaderGetResourceAsStream()
634 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedConstructorNewInstance0() argument
636 StackHandleScope<4> hs(self); in UnstartedConstructorNewInstance0()
644 AbortTransactionOrFail(self, "Cannot handle abstract classes"); in UnstartedConstructorNewInstance0()
651 ObjPtr<mirror::Class> caller = GetCallingClass(self, 2); in UnstartedConstructorNewInstance0()
655 AbortTransactionOrFail(self, "Cannot access class"); in UnstartedConstructorNewInstance0()
659 if (!Runtime::Current()->GetClassLinker()->EnsureInitialized(self, c, true, true)) { in UnstartedConstructorNewInstance0()
660 DCHECK(self->IsExceptionPending()); in UnstartedConstructorNewInstance0()
664 AbortTransactionOrFail(self, "new Class() is not supported"); in UnstartedConstructorNewInstance0()
671 AbortTransactionOrFail(self, "String construction is not supported"); in UnstartedConstructorNewInstance0()
675 Handle<mirror::Object> receiver = hs.NewHandle(c->AllocObject(self)); in UnstartedConstructorNewInstance0()
677 AbortTransactionOrFail(self, "Could not allocate"); in UnstartedConstructorNewInstance0()
683 ScopedObjectAccessUnchecked soa(self); in UnstartedConstructorNewInstance0()
684 ScopedLocalRef<jobject> method_ref(self->GetJniEnv(), in UnstartedConstructorNewInstance0()
686 ScopedLocalRef<jobject> object_ref(self->GetJniEnv(), in UnstartedConstructorNewInstance0()
688 ScopedLocalRef<jobject> args_ref(self->GetJniEnv(), in UnstartedConstructorNewInstance0()
692 if (self->IsExceptionPending()) { in UnstartedConstructorNewInstance0()
693 AbortTransactionOrFail(self, "Failed running constructor"); in UnstartedConstructorNewInstance0()
700 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedVmClassLoaderFindLoadedClass() argument
704 StackHandleScope<2> hs(self); in UnstartedVmClassLoaderFindLoadedClass()
707 UnstartedRuntimeFindClass(self, h_class_name, h_class_loader, result, in UnstartedVmClassLoaderFindLoadedClass()
710 if (self->IsExceptionPending()) { in UnstartedVmClassLoaderFindLoadedClass()
712 std::string type(mirror::Object::PrettyTypeOf(self->GetException())); in UnstartedVmClassLoaderFindLoadedClass()
714 self->ClearException(); in UnstartedVmClassLoaderFindLoadedClass()
723 static void PrimitiveArrayCopy(Thread* self, in PrimitiveArrayCopy() argument
731 AbortTransactionOrFail(self, in PrimitiveArrayCopy()
754 Thread* self, ShadowFrame* shadow_frame, JValue* result ATTRIBUTE_UNUSED, size_t arg_offset) { in UnstartedSystemArraycopy() argument
764 AbortTransactionOrFail(self, "src is null in arraycopy."); in UnstartedSystemArraycopy()
768 AbortTransactionOrFail(self, "dst is null in arraycopy."); in UnstartedSystemArraycopy()
773 self->ThrowNewException("Ljava/lang/ArrayStoreException;", "src or trg is not an array"); in UnstartedSystemArraycopy()
784 self->ThrowNewExceptionF("Ljava/lang/IndexOutOfBoundsException;", in UnstartedSystemArraycopy()
791 if (Runtime::Current()->IsActiveTransaction() && !CheckWriteConstraint(self, dst_obj)) { in UnstartedSystemArraycopy()
792 DCHECK(self->IsExceptionPending()); in UnstartedSystemArraycopy()
805 AbortTransactionOrFail(self, "Type mismatch in arraycopy: %s vs %s", in UnstartedSystemArraycopy()
841 PrimitiveArrayCopy<uint8_t>(self, src_array, src_pos, dst_array, dst_pos, length); in UnstartedSystemArraycopy()
843 PrimitiveArrayCopy<uint16_t>(self, src_array, src_pos, dst_array, dst_pos, length); in UnstartedSystemArraycopy()
845 PrimitiveArrayCopy<int32_t>(self, src_array, src_pos, dst_array, dst_pos, length); in UnstartedSystemArraycopy()
847 AbortTransactionOrFail(self, "Unimplemented System.arraycopy for type '%s'", in UnstartedSystemArraycopy()
853 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedSystemArraycopyByte() argument
855 UnstartedRuntime::UnstartedSystemArraycopy(self, shadow_frame, result, arg_offset); in UnstartedSystemArraycopyByte()
859 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedSystemArraycopyChar() argument
861 UnstartedRuntime::UnstartedSystemArraycopy(self, shadow_frame, result, arg_offset); in UnstartedSystemArraycopyChar()
865 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedSystemArraycopyInt() argument
867 UnstartedRuntime::UnstartedSystemArraycopy(self, shadow_frame, result, arg_offset); in UnstartedSystemArraycopyInt()
871 Thread* self ATTRIBUTE_UNUSED, ShadowFrame* shadow_frame ATTRIBUTE_UNUSED, in UnstartedSystemGetSecurityManager()
878 static void GetSystemProperty(Thread* self, in GetSystemProperty() argument
884 StackHandleScope<4> hs(self); in GetSystemProperty()
888 AbortTransactionOrFail(self, "getProperty key was null"); in GetSystemProperty()
899 class_linker->FindClass(self, in GetSystemProperty()
903 AbortTransactionOrFail(self, "Could not find AndroidHardcodedSystemProperties"); in GetSystemProperty()
906 if (!class_linker->EnsureInitialized(self, h_props_class, true, true)) { in GetSystemProperty()
907 AbortTransactionOrFail(self, "Could not initialize AndroidHardcodedSystemProperties"); in GetSystemProperty()
916 AbortTransactionOrFail(self, in GetSystemProperty()
925 AbortTransactionOrFail(self, "Field %s is null", kAndroidHardcodedSystemPropertiesFieldName); in GetSystemProperty()
939 AbortTransactionOrFail(self, in GetSystemProperty()
958 AbortTransactionOrFail(self, "getProperty key %s not supported", h_key->ToModifiedUtf8().c_str()); in GetSystemProperty()
962 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedSystemGetProperty() argument
963 GetSystemProperty(self, shadow_frame, result, arg_offset, false); in UnstartedSystemGetProperty()
967 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedSystemGetPropertyWithDefault() argument
968 GetSystemProperty(self, shadow_frame, result, arg_offset, true); in UnstartedSystemGetPropertyWithDefault()
997 static ObjPtr<mirror::Object> CreateInstanceOf(Thread* self, const char* class_descriptor) in CreateInstanceOf() argument
1002 class_linker->FindClass(self, class_descriptor, ScopedNullHandle<mirror::ClassLoader>()); in CreateInstanceOf()
1004 AbortTransactionOrFail(self, "Could not load class %s", class_descriptor); in CreateInstanceOf()
1008 StackHandleScope<2> hs(self); in CreateInstanceOf()
1010 Handle<mirror::Object> h_obj(hs.NewHandle(h_class->AllocObject(self))); in CreateInstanceOf()
1014 AbortTransactionOrFail(self, "Could not find <init> for %s", class_descriptor); in CreateInstanceOf()
1018 EnterInterpreterFromInvoke(self, init_method, h_obj.Get(), nullptr, nullptr); in CreateInstanceOf()
1019 if (!self->IsExceptionPending()) { in CreateInstanceOf()
1022 AbortTransactionOrFail(self, "Could not run <init> for %s", class_descriptor); in CreateInstanceOf()
1025 AbortTransactionOrFail(self, "Could not allocate instance of %s", class_descriptor); in CreateInstanceOf()
1030 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset ATTRIBUTE_UNUSED) { in UnstartedThreadLocalGet() argument
1033 result->SetL(CreateInstanceOf(self, "Lsun/misc/FloatingDecimal$BinaryToASCIIBuffer;")); in UnstartedThreadLocalGet()
1035 AbortTransactionOrFail(self, in UnstartedThreadLocalGet()
1042 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset ATTRIBUTE_UNUSED) { in UnstartedThreadCurrentThread() argument
1055 Runtime::Current()->InitThreadGroups(self); in UnstartedThreadCurrentThread()
1057 self->CreateCompileTimePeer(self->GetJniEnv(), in UnstartedThreadCurrentThread()
1062 AbortTransactionOrFail(self, "Failed allocating peer"); in UnstartedThreadCurrentThread()
1066 result->SetL(self->DecodeJObject(main_peer)); in UnstartedThreadCurrentThread()
1067 self->GetJniEnv()->DeleteLocalRef(main_peer); in UnstartedThreadCurrentThread()
1069 AbortTransactionOrFail(self, in UnstartedThreadCurrentThread()
1076 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset ATTRIBUTE_UNUSED) { in UnstartedThreadGetNativeState() argument
1092 AbortTransactionOrFail(self, in UnstartedThreadGetNativeState()
1099 Thread* self ATTRIBUTE_UNUSED, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedMathCeil()
1104 Thread* self ATTRIBUTE_UNUSED, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedMathFloor()
1109 Thread* self ATTRIBUTE_UNUSED, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedMathSin()
1114 Thread* self ATTRIBUTE_UNUSED, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedMathCos()
1119 Thread* self ATTRIBUTE_UNUSED, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedMathPow()
1125 Thread* self ATTRIBUTE_UNUSED, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedObjectHashCode()
1131 Thread* self ATTRIBUTE_UNUSED, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedDoubleDoubleToRawLongBits()
1180 Thread* self ATTRIBUTE_UNUSED, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedMemoryPeekByte()
1185 Thread* self ATTRIBUTE_UNUSED, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedMemoryPeekShort()
1190 Thread* self ATTRIBUTE_UNUSED, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedMemoryPeekInt()
1195 Thread* self ATTRIBUTE_UNUSED, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedMemoryPeekLong()
1200 Primitive::Type type, Thread* self, ShadowFrame* shadow_frame, size_t arg_offset) in UnstartedMemoryPeekArray() argument
1205 Runtime::Current()->AbortTransactionAndThrowAbortError(self, "Null pointer in peekArray"); in UnstartedMemoryPeekArray()
1215 Runtime::Current()->AbortTransactionAndThrowAbortError(self, error_msg.c_str()); in UnstartedMemoryPeekArray()
1249 Thread* self, ShadowFrame* shadow_frame, JValue* result ATTRIBUTE_UNUSED, size_t arg_offset) { in UnstartedMemoryPeekByteArray() argument
1250 UnstartedMemoryPeekArray(Primitive::kPrimByte, self, shadow_frame, arg_offset); in UnstartedMemoryPeekByteArray()
1255 Thread* self, ShadowFrame* shadow_frame, JValue* result ATTRIBUTE_UNUSED, size_t arg_offset) { in UnstartedStringGetCharsNoCheck() argument
1261 AbortTransactionOrFail(self, "String.getCharsNoCheck with null object"); in UnstartedStringGetCharsNoCheck()
1267 StackHandleScope<1> hs(self); in UnstartedStringGetCharsNoCheck()
1278 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedStringCharAt() argument
1282 AbortTransactionOrFail(self, "String.charAt with null object"); in UnstartedStringCharAt()
1291 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedStringDoReplace() argument
1294 StackHandleScope<1> hs(self); in UnstartedStringDoReplace()
1298 AbortTransactionOrFail(self, "String.replaceWithMatch with null object"); in UnstartedStringDoReplace()
1301 result->SetL(mirror::String::DoReplace(self, string, old_c, new_c)); in UnstartedStringDoReplace()
1306 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedStringFactoryNewStringFromChars() argument
1310 StackHandleScope<1> hs(self); in UnstartedStringFactoryNewStringFromChars()
1316 mirror::String::AllocFromCharArray(self, char_count, h_char_array, offset, allocator)); in UnstartedStringFactoryNewStringFromChars()
1321 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedStringFactoryNewStringFromString() argument
1324 AbortTransactionOrFail(self, "StringFactory.newStringFromString with null object"); in UnstartedStringFactoryNewStringFromString()
1327 StackHandleScope<1> hs(self); in UnstartedStringFactoryNewStringFromString()
1332 mirror::String::AllocFromString(self, h_string->GetLength(), h_string, 0, allocator)); in UnstartedStringFactoryNewStringFromString()
1336 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedStringFastSubstring() argument
1341 StackHandleScope<1> hs(self); in UnstartedStringFastSubstring()
1348 result->SetL(mirror::String::AllocFromString(self, length, h_string, start, allocator)); in UnstartedStringFastSubstring()
1353 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) in UnstartedStringToCharArray() argument
1355 StackHandleScope<1> hs(self); in UnstartedStringToCharArray()
1359 AbortTransactionOrFail(self, "String.charAt with null object"); in UnstartedStringToCharArray()
1362 result->SetL(mirror::String::ToCharArray(string, self)); in UnstartedStringToCharArray()
1367 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedReferenceGetReferent() argument
1371 AbortTransactionOrFail(self, "Reference.getReferent() with null object"); in UnstartedReferenceGetReferent()
1375 Runtime::Current()->GetHeap()->GetReferenceProcessor()->GetReferent(self, ref); in UnstartedReferenceGetReferent()
1385 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset ATTRIBUTE_UNUSED) { in UnstartedRuntimeAvailableProcessors() argument
1398 AbortTransactionOrFail(self, "Accessing availableProcessors not allowed"); in UnstartedRuntimeAvailableProcessors()
1405 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedUnsafeCompareAndSwapLong() argument
1409 AbortTransactionOrFail(self, "Cannot access null object, retry at runtime."); in UnstartedUnsafeCompareAndSwapLong()
1418 if (!CheckWriteConstraint(self, obj)) { in UnstartedUnsafeCompareAndSwapLong()
1419 DCHECK(self->IsExceptionPending()); in UnstartedUnsafeCompareAndSwapLong()
1434 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { in UnstartedUnsafeCompareAndSwapObject() argument
1438 AbortTransactionOrFail(self, "Cannot access null object, retry at runtime."); in UnstartedUnsafeCompareAndSwapObject()
1464 if (!CheckWriteConstraint(self, obj) || !CheckWriteValueConstraint(self, new_value)) { in UnstartedUnsafeCompareAndSwapObject()
1465 DCHECK(self->IsExceptionPending()); in UnstartedUnsafeCompareAndSwapObject()
1484 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) in UnstartedUnsafeGetObjectVolatile() argument
1489 AbortTransactionOrFail(self, "Cannot access null object, retry at runtime."); in UnstartedUnsafeGetObjectVolatile()
1498 Thread* self, ShadowFrame* shadow_frame, JValue* result ATTRIBUTE_UNUSED, size_t arg_offset) in UnstartedUnsafePutObjectVolatile() argument
1503 AbortTransactionOrFail(self, "Cannot access null object, retry at runtime."); in UnstartedUnsafePutObjectVolatile()
1509 if (!CheckWriteConstraint(self, obj) || !CheckWriteValueConstraint(self, value)) { in UnstartedUnsafePutObjectVolatile()
1510 DCHECK(self->IsExceptionPending()); in UnstartedUnsafePutObjectVolatile()
1520 Thread* self, ShadowFrame* shadow_frame, JValue* result ATTRIBUTE_UNUSED, size_t arg_offset) in UnstartedUnsafePutOrderedObject() argument
1525 AbortTransactionOrFail(self, "Cannot access null object, retry at runtime."); in UnstartedUnsafePutOrderedObject()
1532 if (!CheckWriteConstraint(self, obj) || !CheckWriteValueConstraint(self, new_value)) { in UnstartedUnsafePutOrderedObject()
1533 DCHECK(self->IsExceptionPending()); in UnstartedUnsafePutOrderedObject()
1545 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) in UnstartedIntegerParseInt() argument
1549 AbortTransactionOrFail(self, "Cannot parse null string, retry at runtime."); in UnstartedIntegerParseInt()
1555 AbortTransactionOrFail(self, "Cannot parse empty string, retry at runtime."); in UnstartedIntegerParseInt()
1567 AbortTransactionOrFail(self, "Cannot parse string %s, retry at runtime.", c_str); in UnstartedIntegerParseInt()
1573 AbortTransactionOrFail(self, "Cannot parse string %s, retry at runtime.", c_str); in UnstartedIntegerParseInt()
1577 AbortTransactionOrFail(self, "Cannot parse string %s, retry at runtime.", c_str); in UnstartedIntegerParseInt()
1589 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) in UnstartedLongParseLong() argument
1593 AbortTransactionOrFail(self, "Cannot parse null string, retry at runtime."); in UnstartedLongParseLong()
1599 AbortTransactionOrFail(self, "Cannot parse empty string, retry at runtime."); in UnstartedLongParseLong()
1612 AbortTransactionOrFail(self, "Cannot parse string %s, retry at runtime.", c_str); in UnstartedLongParseLong()
1618 AbortTransactionOrFail(self, "Cannot parse string %s, retry at runtime.", c_str); in UnstartedLongParseLong()
1622 AbortTransactionOrFail(self, "Cannot parse string %s, retry at runtime.", c_str); in UnstartedLongParseLong()
1630 Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) in UnstartedMethodInvoke() argument
1632 JNIEnvExt* env = self->GetJniEnv(); in UnstartedMethodInvoke()
1633 ScopedObjectAccessUnchecked soa(self); in UnstartedMethodInvoke()
1650 result->SetL(self->DecodeJObject(result_jobj.get())); in UnstartedMethodInvoke()
1654 if (self->IsExceptionPending()) { in UnstartedMethodInvoke()
1655 AbortTransactionOrFail(self, "Failed Method.invoke"); in UnstartedMethodInvoke()
1660 Thread* self ATTRIBUTE_UNUSED, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) in UnstartedSystemIdentityHashCode()
1671 Thread* self ATTRIBUTE_UNUSED, ArtMethod* method ATTRIBUTE_UNUSED, in UnstartedJNIVMRuntimeIs64Bit()
1679 Thread* self, in UnstartedJNIVMRuntimeNewUnpaddedArray() argument
1688 AbortTransactionOrFail(self, "VMRuntime.newUnpaddedArray with null element_class."); in UnstartedJNIVMRuntimeNewUnpaddedArray()
1693 runtime->GetClassLinker()->FindArrayClass(self, element_class->AsClass()); in UnstartedJNIVMRuntimeNewUnpaddedArray()
1697 self, array_class, length, array_class->GetComponentSizeShift(), allocator)); in UnstartedJNIVMRuntimeNewUnpaddedArray()
1701 Thread* self ATTRIBUTE_UNUSED, ArtMethod* method ATTRIBUTE_UNUSED, in UnstartedJNIVMStackGetCallingClassLoader()
1707 Thread* self, ArtMethod* method ATTRIBUTE_UNUSED, mirror::Object* receiver ATTRIBUTE_UNUSED, in UnstartedJNIVMStackGetStackClass2() argument
1709 NthCallerVisitor visitor(self, 3); in UnstartedJNIVMStackGetStackClass2()
1717 Thread* self ATTRIBUTE_UNUSED, ArtMethod* method ATTRIBUTE_UNUSED, in UnstartedJNIMathLog()
1725 Thread* self ATTRIBUTE_UNUSED, ArtMethod* method ATTRIBUTE_UNUSED, in UnstartedJNIMathExp()
1733 Thread* self ATTRIBUTE_UNUSED, in UnstartedJNIAtomicLongVMSupportsCS8()
1744 Thread* self, ArtMethod* method ATTRIBUTE_UNUSED, mirror::Object* receiver, in UnstartedJNIClassGetNameNative() argument
1746 StackHandleScope<1> hs(self); in UnstartedJNIClassGetNameNative()
1751 Thread* self ATTRIBUTE_UNUSED, ArtMethod* method ATTRIBUTE_UNUSED, in UnstartedJNIDoubleLongBitsToDouble()
1758 Thread* self ATTRIBUTE_UNUSED, ArtMethod* method ATTRIBUTE_UNUSED, in UnstartedJNIFloatFloatToRawIntBits()
1764 Thread* self ATTRIBUTE_UNUSED, ArtMethod* method ATTRIBUTE_UNUSED, in UnstartedJNIFloatIntBitsToFloat()
1770 Thread* self, ArtMethod* method ATTRIBUTE_UNUSED, mirror::Object* receiver, in UnstartedJNIObjectInternalClone() argument
1772 StackHandleScope<1> hs(self); in UnstartedJNIObjectInternalClone()
1774 result->SetL(mirror::Object::Clone(h_receiver, self)); in UnstartedJNIObjectInternalClone()
1778 Thread* self, ArtMethod* method ATTRIBUTE_UNUSED, mirror::Object* receiver, in UnstartedJNIObjectNotifyAll() argument
1780 receiver->NotifyAll(self); in UnstartedJNIObjectNotifyAll()
1783 void UnstartedRuntime::UnstartedJNIStringCompareTo(Thread* self, in UnstartedJNIStringCompareTo() argument
1790 AbortTransactionOrFail(self, "String.compareTo with null object."); in UnstartedJNIStringCompareTo()
1797 Thread* self ATTRIBUTE_UNUSED, ArtMethod* method ATTRIBUTE_UNUSED, mirror::Object* receiver, in UnstartedJNIStringIntern()
1803 Thread* self, ArtMethod* method ATTRIBUTE_UNUSED, mirror::Object* receiver ATTRIBUTE_UNUSED, in UnstartedJNIArrayCreateMultiArray() argument
1805 StackHandleScope<2> hs(self); in UnstartedJNIArrayCreateMultiArray()
1808 result->SetL(mirror::Array::CreateMultiArray(self, h_class, h_dimensions)); in UnstartedJNIArrayCreateMultiArray()
1812 Thread* self, ArtMethod* method ATTRIBUTE_UNUSED, mirror::Object* receiver ATTRIBUTE_UNUSED, in UnstartedJNIArrayCreateObjectArray() argument
1822 ObjPtr<mirror::Class> array_class = class_linker->FindArrayClass(self, element_class); in UnstartedJNIArrayCreateObjectArray()
1824 CHECK(self->IsExceptionPending()); in UnstartedJNIArrayCreateObjectArray()
1829 self, array_class, length, runtime->GetHeap()->GetCurrentAllocator()); in UnstartedJNIArrayCreateObjectArray()
1834 Thread* self, ArtMethod* method ATTRIBUTE_UNUSED, mirror::Object* receiver ATTRIBUTE_UNUSED, in UnstartedJNIThrowableNativeFillInStackTrace() argument
1836 ScopedObjectAccessUnchecked soa(self); in UnstartedJNIThrowableNativeFillInStackTrace()
1837 result->SetL(soa.Decode<mirror::Object>(self->CreateInternalStackTrace(soa))); in UnstartedJNIThrowableNativeFillInStackTrace()
1841 Thread* self ATTRIBUTE_UNUSED, ArtMethod* method ATTRIBUTE_UNUSED, in UnstartedJNIByteOrderIsLittleEndian()
1847 Thread* self, in UnstartedJNIUnsafeCompareAndSwapInt() argument
1854 AbortTransactionOrFail(self, "Unsafe.compareAndSwapInt with null object."); in UnstartedJNIUnsafeCompareAndSwapInt()
1862 if (!CheckWriteConstraint(self, obj)) { in UnstartedJNIUnsafeCompareAndSwapInt()
1863 DCHECK(self->IsExceptionPending()); in UnstartedJNIUnsafeCompareAndSwapInt()
1881 void UnstartedRuntime::UnstartedJNIUnsafeGetIntVolatile(Thread* self, in UnstartedJNIUnsafeGetIntVolatile() argument
1888 AbortTransactionOrFail(self, "Unsafe.compareAndSwapIntVolatile with null object."); in UnstartedJNIUnsafeGetIntVolatile()
1896 void UnstartedRuntime::UnstartedJNIUnsafePutObject(Thread* self, in UnstartedJNIUnsafePutObject() argument
1903 AbortTransactionOrFail(self, "Unsafe.putObject with null object."); in UnstartedJNIUnsafePutObject()
1909 if (!CheckWriteConstraint(self, obj) || !CheckWriteValueConstraint(self, new_value)) { in UnstartedJNIUnsafePutObject()
1910 DCHECK(self->IsExceptionPending()); in UnstartedJNIUnsafePutObject()
1920 Thread* self, in UnstartedJNIUnsafeGetArrayBaseOffsetForComponentType() argument
1927 AbortTransactionOrFail(self, "Unsafe.getArrayBaseOffsetForComponentType with null component."); in UnstartedJNIUnsafeGetArrayBaseOffsetForComponentType()
1935 Thread* self, in UnstartedJNIUnsafeGetArrayIndexScaleForComponentType() argument
1942 AbortTransactionOrFail(self, "Unsafe.getArrayIndexScaleForComponentType with null component."); in UnstartedJNIUnsafeGetArrayIndexScaleForComponentType()
1949 using InvokeHandler = void(*)(Thread* self,
1954 using JNIHandler = void(*)(Thread* self,
1993 void UnstartedRuntime::Invoke(Thread* self, const CodeItemDataAccessor& accessor, in Invoke() argument
2006 self->PushShadowFrame(shadow_frame); in Invoke()
2008 (*iter->second)(self, shadow_frame, result, arg_offset); in Invoke()
2010 self->PopShadowFrame(); in Invoke()
2013 ArtInterpreterToInterpreterBridge(self, accessor, shadow_frame, result); in Invoke()
2018 void UnstartedRuntime::Jni(Thread* self, ArtMethod* method, mirror::Object* receiver, in Jni() argument
2025 (*iter->second)(self, method, receiver, args, result); in Jni()
2027 AbortTransactionF(self, "Attempt to invoke native method in non-started runtime: %s", in Jni()