Lines Matching refs:self

136     Thread* self = Thread::Current();  in GetPrimitiveClass()  local
139 self->ThrowNewException("Ljava/lang/NullPointerException;", /* msg= */ nullptr); in GetPrimitiveClass()
141 self->ThrowNewException("Ljava/lang/ClassNotFoundException;", name->ToModifiedUtf8().c_str()); in GetPrimitiveClass()
147 ObjPtr<ClassExt> Class::EnsureExtDataPresent(Handle<Class> h_this, Thread* self) { in EnsureExtDataPresent() argument
152 StackHandleScope<2> hs(self); in EnsureExtDataPresent()
154 Handle<Throwable> throwable(hs.NewHandle(self->GetException())); in EnsureExtDataPresent()
155 self->ClearException(); in EnsureExtDataPresent()
157 Handle<ClassExt> new_ext(hs.NewHandle(ClassExt::Alloc(self))); in EnsureExtDataPresent()
161 self->AssertPendingOOMException(); in EnsureExtDataPresent()
185 self->SetException(throwable.Get()); in EnsureExtDataPresent()
192 static void CheckSetStatus(Thread* self, T thiz, ClassStatus new_status, ClassStatus old_status) in CheckSetStatus() argument
204 !Locks::mutator_lock_->IsExclusiveHeld(self)) { in CheckSetStatus()
207 CHECK_EQ(thiz->GetLockOwnerThreadId(), self->GetThreadId()) in CheckSetStatus()
211 if (UNLIKELY(Locks::mutator_lock_->IsExclusiveHeld(self))) { in CheckSetStatus()
243 void Class::SetStatus(Handle<Class> h_this, ClassStatus new_status, Thread* self) { in SetStatus() argument
248 CheckSetStatus(self, h_this, new_status, old_status); in SetStatus()
258 if (self->IsExceptionPending()) { in SetStatus()
259 LOG(ERROR) << "Exception: " << self->GetException()->Dump(); in SetStatus()
263 ObjPtr<ClassExt> ext(EnsureExtDataPresent(h_this, self)); in SetStatus()
265 self->AssertPendingException(); in SetStatus()
266 ext->SetVerifyError(self->GetException()); in SetStatus()
268 self->AssertPendingOOMException(); in SetStatus()
270 self->AssertPendingException(); in SetStatus()
302 h_this->NotifyAll(self); in SetStatus()
311 h_this->NotifyAll(self); in SetStatus()
383 Thread* self = Thread::Current(); in ComputeName() local
401 name = String::AllocFromModifiedUtf8(self, c_name); in ComputeName()
405 name = String::AllocFromModifiedUtf8(self, DescriptorToDot(descriptor).c_str()); in ComputeName()
424 Thread* const self = Thread::Current(); in DumpClass() local
425 StackHandleScope<2> hs(self); in DumpClass()
448 ObjPtr<Class> interface = GetDirectInterface(self, h_this.Get(), i); in DumpClass()
873 Thread* self = Thread::Current(); in FindVirtualMethodForInterfaceSuper() local
874 StackHandleScope<2> hs(self); in FindVirtualMethodForInterfaceSuper()
1034 ArtField* Class::FindStaticField(Thread* self, in FindStaticField() argument
1048 ObjPtr<Class> interface = GetDirectInterface(self, k, i); in FindStaticField()
1050 f = FindStaticField(self, interface, name, type); in FindStaticField()
1059 ArtField* Class::FindStaticField(Thread* self, in FindStaticField() argument
1074 ObjPtr<Class> interface = GetDirectInterface(self, k, i); in FindStaticField()
1076 f = FindStaticField(self, interface, dex_cache, dex_field_idx); in FindStaticField()
1085 ArtField* Class::FindField(Thread* self, in FindField() argument
1102 ObjPtr<Class> interface = GetDirectInterface(self, k, i); in FindField()
1104 f = FindStaticField(self, interface, name, type); in FindField()
1197 ObjPtr<Class> Class::GetDirectInterface(Thread* self, ObjPtr<Class> klass, uint32_t idx) { in GetDirectInterface() argument
1205 interface = class_linker->LookupClass(self, "Ljava/lang/Cloneable;", nullptr); in GetDirectInterface()
1208 interface = class_linker->LookupClass(self, "Ljava/io/Serializable;", nullptr); in GetDirectInterface()
1224 ObjPtr<Class> Class::ResolveDirectInterface(Thread* self, Handle<Class> klass, uint32_t idx) { in ResolveDirectInterface() argument
1225 ObjPtr<Class> interface = GetDirectInterface(self, klass.Get(), idx); in ResolveDirectInterface()
1231 CHECK(interface != nullptr || self->IsExceptionPending()); in ResolveDirectInterface()
1322 CopyClassVisitor(Thread* self, in CopyClassVisitor() argument
1328 : self_(self), orig_(orig), new_length_(new_length), in CopyClassVisitor()
1357 Thread* self, in CopyOf() argument
1367 CopyClassVisitor visitor(self, &h_this, new_length, sizeof(Class), imt, pointer_size); in CopyOf()
1370 heap->AllocObject(self, java_lang_Class, new_length, visitor) : in CopyOf()
1371 heap->AllocNonMovableObject(self, java_lang_Class, new_length, visitor); in CopyOf()
1373 self->AssertPendingOOMException(); in CopyOf()
1389 Thread* self, Handle<ObjectArray<Class>> args, PointerSize pointer_size) { in GetDeclaredConstructor() argument
1399 if (UNLIKELY(self->IsExceptionPending())) { in GetDeclaredConstructor()
1452 Thread* self, in GetDeclaredMethodInternal() argument
1464 StackHandleScope<3> hs(self); in GetDeclaredMethodInternal()
1483 if (UNLIKELY(self->IsExceptionPending())) { in GetDeclaredMethodInternal()
1491 return Method::CreateFromArtMethod<kPointerSize>(self, &m); in GetDeclaredMethodInternal()
1515 self->AssertPendingException(); in GetDeclaredMethodInternal()
1519 if (UNLIKELY(self->IsExceptionPending())) { in GetDeclaredMethodInternal()
1530 return Method::CreateFromArtMethod<kPointerSize>(self, &m); in GetDeclaredMethodInternal()
1540 ? Method::CreateFromArtMethod<kPointerSize>(self, result) in GetDeclaredMethodInternal()
1546 Thread* self,
1553 Thread* self,
1561 Thread* self, in GetDeclaredConstructorInternal() argument
1564 StackHandleScope<1> hs(self); in GetDeclaredConstructorInternal()
1565 ArtMethod* result = klass->GetDeclaredConstructor(self, hs.NewHandle(args), kPointerSize); in GetDeclaredConstructorInternal()
1567 ? Constructor::CreateFromArtMethod<kPointerSize>(self, result) in GetDeclaredConstructorInternal()
1575 Thread* self,
1580 Thread* self,
1692 Thread* self = Thread::Current(); in EnsureMethodIds() local
1693 ObjPtr<ClassExt> ext(EnsureExtDataPresent(h_this, self)); in EnsureMethodIds()
1695 self->AssertPendingOOMException(); in EnsureMethodIds()
1711 Thread* self = Thread::Current(); in EnsureStaticFieldIds() local
1712 ObjPtr<ClassExt> ext(EnsureExtDataPresent(h_this, self)); in EnsureStaticFieldIds()
1714 self->AssertPendingOOMException(); in EnsureStaticFieldIds()
1729 Thread* self = Thread::Current(); in EnsureInstanceFieldIds() local
1730 ObjPtr<ClassExt> ext(EnsureExtDataPresent(h_this, self)); in EnsureInstanceFieldIds()
1732 self->AssertPendingOOMException(); in EnsureInstanceFieldIds()