Lines Matching refs:soa
43 const ScopedFastNativeObjectAccess& soa, jobject java_class) in DecodeClass() argument
45 mirror::Class* c = soa.Decode<mirror::Class*>(java_class); in DecodeClass()
57 ScopedFastNativeObjectAccess soa(env); in Class_classForName() local
67 soa.Self()->ThrowNewExceptionF("Ljava/lang/ClassNotFoundException;", in Class_classForName()
73 StackHandleScope<2> hs(soa.Self()); in Class_classForName()
74 …Handle<mirror::ClassLoader> class_loader(hs.NewHandle(soa.Decode<mirror::ClassLoader*>(javaLoader)… in Class_classForName()
77 hs.NewHandle(class_linker->FindClass(soa.Self(), descriptor.c_str(), class_loader))); in Class_classForName()
91 class_linker->EnsureInitialized(soa.Self(), c, true, true); in Class_classForName()
93 return soa.AddLocalReference<jclass>(c.Get()); in Class_classForName()
97 ScopedFastNativeObjectAccess soa(env); in Class_getNameNative() local
98 StackHandleScope<1> hs(soa.Self()); in Class_getNameNative()
99 mirror::Class* const c = DecodeClass(soa, javaThis); in Class_getNameNative()
100 return soa.AddLocalReference<jstring>(mirror::Class::ComputeName(hs.NewHandle(c))); in Class_getNameNative()
104 ScopedFastNativeObjectAccess soa(env); in Class_getProxyInterfaces() local
105 mirror::Class* c = DecodeClass(soa, javaThis); in Class_getProxyInterfaces()
106 return soa.AddLocalReference<jobjectArray>(c->GetInterfaces()->Clone(soa.Self())); in Class_getProxyInterfaces()
170 ScopedFastNativeObjectAccess soa(env); in Class_getDeclaredFieldsUnchecked() local
171 return soa.AddLocalReference<jobjectArray>( in Class_getDeclaredFieldsUnchecked()
172 GetDeclaredFields(soa.Self(), DecodeClass(soa, javaThis), publicOnly != JNI_FALSE, false)); in Class_getDeclaredFieldsUnchecked()
176 ScopedFastNativeObjectAccess soa(env); in Class_getDeclaredFields() local
177 return soa.AddLocalReference<jobjectArray>( in Class_getDeclaredFields()
178 GetDeclaredFields(soa.Self(), DecodeClass(soa, javaThis), false, true)); in Class_getDeclaredFields()
182 ScopedFastNativeObjectAccess soa(env); in Class_getPublicDeclaredFields() local
183 return soa.AddLocalReference<jobjectArray>( in Class_getPublicDeclaredFields()
184 GetDeclaredFields(soa.Self(), DecodeClass(soa, javaThis), true, true)); in Class_getPublicDeclaredFields()
236 ScopedFastNativeObjectAccess soa(env); in Class_getDeclaredFieldInternal() local
237 auto* name_string = soa.Decode<mirror::String*>(name); in Class_getDeclaredFieldInternal()
238 return soa.AddLocalReference<jobject>( in Class_getDeclaredFieldInternal()
239 GetDeclaredField(soa.Self(), DecodeClass(soa, javaThis), name_string)); in Class_getDeclaredFieldInternal()
243 ScopedFastNativeObjectAccess soa(env); in Class_getDeclaredField() local
244 auto* name_string = soa.Decode<mirror::String*>(name); in Class_getDeclaredField()
249 auto* klass = DecodeClass(soa, javaThis); in Class_getDeclaredField()
250 mirror::Field* result = GetDeclaredField(soa.Self(), klass, name_string); in Class_getDeclaredField()
254 if (!soa.Self()->IsExceptionPending()) { in Class_getDeclaredField()
255 ThrowNoSuchFieldException(DecodeClass(soa, javaThis), name_str.c_str()); in Class_getDeclaredField()
259 return soa.AddLocalReference<jobject>(result); in Class_getDeclaredField()
264 ScopedFastNativeObjectAccess soa(env); in Class_getDeclaredConstructorInternal() local
265 auto* klass = DecodeClass(soa, javaThis); in Class_getDeclaredConstructorInternal()
266 auto* params = soa.Decode<mirror::ObjectArray<mirror::Class>*>(args); in Class_getDeclaredConstructorInternal()
267 StackHandleScope<1> hs(soa.Self()); in Class_getDeclaredConstructorInternal()
268 auto* declared_constructor = klass->GetDeclaredConstructor(soa.Self(), hs.NewHandle(params)); in Class_getDeclaredConstructorInternal()
270 return soa.AddLocalReference<jobject>( in Class_getDeclaredConstructorInternal()
271 mirror::Constructor::CreateFromArtMethod(soa.Self(), declared_constructor)); in Class_getDeclaredConstructorInternal()
284 ScopedFastNativeObjectAccess soa(env); in Class_getDeclaredConstructorsInternal() local
285 StackHandleScope<2> hs(soa.Self()); in Class_getDeclaredConstructorsInternal()
286 Handle<mirror::Class> h_klass = hs.NewHandle(DecodeClass(soa, javaThis)); in Class_getDeclaredConstructorsInternal()
293 soa.Self(), mirror::Constructor::ArrayClass(), constructor_count)); in Class_getDeclaredConstructorsInternal()
295 soa.Self()->AssertPendingException(); in Class_getDeclaredConstructorsInternal()
301 auto* constructor = mirror::Constructor::CreateFromArtMethod(soa.Self(), &m); in Class_getDeclaredConstructorsInternal()
303 soa.Self()->AssertPendingOOMException(); in Class_getDeclaredConstructorsInternal()
309 return soa.AddLocalReference<jobjectArray>(h_constructors.Get()); in Class_getDeclaredConstructorsInternal()
321 ScopedFastNativeObjectAccess soa(env); in Class_getDeclaredMethodInternal() local
322 StackHandleScope<3> hs(soa.Self()); in Class_getDeclaredMethodInternal()
323 auto h_method_name = hs.NewHandle(soa.Decode<mirror::String*>(name)); in Class_getDeclaredMethodInternal()
328 auto h_args = hs.NewHandle(soa.Decode<mirror::ObjectArray<mirror::Class>*>(args)); in Class_getDeclaredMethodInternal()
329 Handle<mirror::Class> h_klass = hs.NewHandle(DecodeClass(soa, javaThis)); in Class_getDeclaredMethodInternal()
334 mirror::String* np_name = np_method->GetNameAsString(soa.Self()); in Class_getDeclaredMethodInternal()
336 if (UNLIKELY(soa.Self()->IsExceptionPending())) { in Class_getDeclaredMethodInternal()
343 return soa.AddLocalReference<jobject>(mirror::Method::CreateFromArtMethod(soa.Self(), &m)); in Class_getDeclaredMethodInternal()
357 mirror::String* np_name = np_method->GetNameAsString(soa.Self()); in Class_getDeclaredMethodInternal()
359 soa.Self()->AssertPendingException(); in Class_getDeclaredMethodInternal()
363 if (UNLIKELY(soa.Self()->IsExceptionPending())) { in Class_getDeclaredMethodInternal()
369 return soa.AddLocalReference<jobject>(mirror::Method::CreateFromArtMethod(soa.Self(), &m)); in Class_getDeclaredMethodInternal()
376 soa.AddLocalReference<jobject>(mirror::Method::CreateFromArtMethod(soa.Self(), result)) : in Class_getDeclaredMethodInternal()
382 ScopedFastNativeObjectAccess soa(env); in Class_getDeclaredMethodsUnchecked() local
383 StackHandleScope<2> hs(soa.Self()); in Class_getDeclaredMethodsUnchecked()
384 Handle<mirror::Class> klass = hs.NewHandle(DecodeClass(soa, javaThis)); in Class_getDeclaredMethodsUnchecked()
402 soa.Self(), mirror::Method::ArrayClass(), num_methods)); in Class_getDeclaredMethodsUnchecked()
408 auto* method = mirror::Method::CreateFromArtMethod(soa.Self(), &m); in Class_getDeclaredMethodsUnchecked()
410 soa.Self()->AssertPendingException(); in Class_getDeclaredMethodsUnchecked()
421 auto* method = mirror::Method::CreateFromArtMethod(soa.Self(), &m); in Class_getDeclaredMethodsUnchecked()
423 soa.Self()->AssertPendingException(); in Class_getDeclaredMethodsUnchecked()
429 return soa.AddLocalReference<jobjectArray>(ret.Get()); in Class_getDeclaredMethodsUnchecked()
433 ScopedFastNativeObjectAccess soa(env); in Class_newInstance() local
434 StackHandleScope<4> hs(soa.Self()); in Class_newInstance()
435 Handle<mirror::Class> klass = hs.NewHandle(DecodeClass(soa, javaThis)); in Class_newInstance()
438 soa.Self()->ThrowNewExceptionF("Ljava/lang/InstantiationException;", in Class_newInstance()
445 caller.Assign(GetCallingClass(soa.Self(), 1)); in Class_newInstance()
447 soa.Self()->ThrowNewExceptionF( in Class_newInstance()
454 soa.Self(), NullHandle<mirror::ObjectArray<mirror::Class>>()); in Class_newInstance()
456 soa.Self()->ThrowNewExceptionF("Ljava/lang/InstantiationException;", in Class_newInstance()
465 mirror::Object* obj = mirror::String::Alloc<true>(soa.Self(), 0, allocator_type, visitor); in Class_newInstance()
466 if (UNLIKELY(soa.Self()->IsExceptionPending())) { in Class_newInstance()
469 return soa.AddLocalReference<jobject>(obj); in Class_newInstance()
472 auto receiver = hs.NewHandle(klass->AllocObject(soa.Self())); in Class_newInstance()
474 soa.Self()->AssertPendingOOMException(); in Class_newInstance()
481 caller.Assign(GetCallingClass(soa.Self(), 1)); in Class_newInstance()
484 soa.Self(), receiver.Get(), declaring_class, constructor->GetAccessFlags(), in Class_newInstance()
486 soa.Self()->ThrowNewExceptionF( in Class_newInstance()
495 soa.Self(), hs.NewHandle(declaring_class), true, true)) { in Class_newInstance()
496 soa.Self()->AssertPendingException(); in Class_newInstance()
503 constructor->Invoke(soa.Self(), args, sizeof(args), &result, "V"); in Class_newInstance()
504 if (UNLIKELY(soa.Self()->IsExceptionPending())) { in Class_newInstance()
508 return soa.AddLocalReference<jobject>(receiver.Get()); in Class_newInstance()