Home | History | Annotate | Download | only in runtime

Lines Matching defs:new_class

2292   mirror::Class* new_class = nullptr;
2293 if (!LinkClass(self, descriptor, klass, interfaces, &new_class)) {
2301 CHECK(new_class != nullptr) << descriptor;
2302 CHECK(new_class->IsResolved()) << descriptor;
2304 Handle<mirror::Class> new_class_h(hs.NewHandle(new_class));
3133 mirror::Class* new_class = LookupClass(descriptor, hash, component_type->GetClassLoader());
3134 if (new_class != nullptr) {
3135 return new_class;
3147 auto new_class = hs.NewHandle<mirror::Class>(nullptr);
3151 new_class.Assign(GetClassRoot(kClassArrayClass));
3153 new_class.Assign(GetClassRoot(kObjectArrayClass));
3155 new_class.Assign(GetClassRoot(kJavaLangStringArrayClass));
3158 new_class.Assign(GetClassRoot(kJavaLangReflectArtMethodArrayClass));
3161 new_class.Assign(GetClassRoot(kJavaLangReflectArtFieldArrayClass));
3163 new_class.Assign(GetClassRoot(kCharArrayClass));
3165 new_class.Assign(GetClassRoot(kIntArrayClass));
3168 if (new_class.Get() == nullptr) {
3169 new_class.Assign(AllocClass(self, mirror::Array::ClassSize()));
3170 if (new_class.Get() == nullptr) {
3173 new_class->SetComponentType(component_type.Get());
3175 ObjectLock<mirror::Class> lock(self, new_class); // Must hold lock on object when initializing.
3176 DCHECK(new_class->GetComponentType() != nullptr);
3178 new_class->SetSuperClass(java_lang_Object);
3179 new_class->SetVTable(java_lang_Object->GetVTable());
3180 new_class->SetPrimitiveType(Primitive::kPrimNot);
3181 new_class->SetClassLoader(component_type->GetClassLoader());
3182 new_class->SetStatus(mirror::Class::kStatusLoaded, self);
3186 new_class->PopulateEmbeddedImtAndVTable(&hs);
3188 new_class->SetStatus(mirror::Class::kStatusInitialized, self);
3189 // don't need to set new_class->SetObjectSize(..)
3208 new_class->SetIfTable(array_iftable);
3212 int access_flags = new_class->GetComponentType()->GetAccessFlags();
3220 new_class->SetAccessFlags(access_flags);
3222 mirror::Class* existing = InsertClass(descriptor, new_class.Get(), hash);
3224 return new_class.Get();
3875 mirror::Class* new_class = nullptr;
3882 if (!LinkClass(self, descriptor.c_str(), klass, h_interfaces, &new_class)) {
3889 CHECK_NE(klass.Get(), new_class);
3890 klass.Assign(new_class);
3892 CHECK_EQ(interfaces_sfield->GetDeclaringClass(), new_class);
3895 CHECK_EQ(throws_sfield->GetDeclaringClass(), new_class);
4400 void ClassLinker::FixupTemporaryDeclaringClass(mirror::Class* temp_class, mirror::Class* new_class) {
4401 mirror::ObjectArray<mirror::ArtField>* fields = new_class->GetIFields();
4405 fields->Get(index)->SetDeclaringClass(new_class);
4410 fields = new_class->GetSFields();
4414 fields->Get(index)->SetDeclaringClass(new_class);
4419 mirror::ObjectArray<mirror::ArtMethod>* methods = new_class->GetDirectMethods();
4423 methods->Get(index)->SetDeclaringClass(new_class);
4428 methods = new_class->GetVirtualMethods();
4432 methods->Get(index)->SetDeclaringClass(new_class);
4440 mirror::Class** new_class) {
4474 *new_class = klass.Get();
4478 *new_class = klass->CopyOf(self, class_size, &imt_handle_scope);
4479 if (UNLIKELY(*new_class == nullptr)) {
4485 CHECK_EQ((*new_class)->GetClassSize(), class_size);
4487 auto new_class_h = hs.NewHandleWrapper<mirror::Class>(new_class);
4501 // This will notify waiters on new_class that saw the not yet resolved