Lines Matching refs:new_class
4160 ObjPtr<mirror::Class> new_class =
4162 if (new_class != nullptr) {
4163 return new_class;
4175 auto new_class = hs.NewHandle<mirror::Class>(nullptr);
4179 new_class.Assign(GetClassRoot<mirror::ObjectArray<mirror::Class>>(this));
4181 new_class.Assign(GetClassRoot<mirror::ObjectArray<mirror::Object>>(this));
4183 new_class.Assign(GetClassRoot<mirror::ObjectArray<mirror::String>>(this));
4185 new_class.Assign(GetClassRoot<mirror::BooleanArray>(this));
4187 new_class.Assign(GetClassRoot<mirror::ByteArray>(this));
4189 new_class.Assign(GetClassRoot<mirror::CharArray>(this));
4191 new_class.Assign(GetClassRoot<mirror::ShortArray>(this));
4193 new_class.Assign(GetClassRoot<mirror::IntArray>(this));
4195 new_class.Assign(GetClassRoot<mirror::LongArray>(this));
4197 new_class.Assign(GetClassRoot<mirror::FloatArray>(this));
4199 new_class.Assign(GetClassRoot<mirror::DoubleArray>(this));
4202 if (new_class == nullptr) {
4203 new_class.Assign(AllocClass(self, mirror::Array::ClassSize(image_pointer_size_)));
4204 if (new_class == nullptr) {
4208 new_class->SetComponentType(component_type.Get());
4210 ObjectLock<mirror::Class> lock(self, new_class); // Must hold lock on object when initializing.
4211 DCHECK(new_class->GetComponentType() != nullptr);
4213 new_class->SetSuperClass(java_lang_Object);
4214 new_class->SetVTable(java_lang_Object->GetVTable());
4215 new_class->SetPrimitiveType(Primitive::kPrimNot);
4216 new_class->SetClassLoader(component_type->GetClassLoader());
4218 new_class->SetClassFlags(mirror::kClassFlagNoReferenceFields);
4220 new_class->SetClassFlags(mirror::kClassFlagObjectArray);
4222 mirror::Class::SetStatus(new_class, ClassStatus::kLoaded, self);
4223 new_class->PopulateEmbeddedVTable(image_pointer_size_);
4225 new_class->SetImt(object_imt, image_pointer_size_);
4226 EnsureSkipAccessChecksMethods</* kNeedsVerified= */ true>(new_class, image_pointer_size_);
4227 mirror::Class::SetStatus(new_class, ClassStatus::kInitialized, self);
4228 // don't need to set new_class->SetObjectSize(..)
4246 new_class->SetIfTable(array_iftable);
4250 int access_flags = new_class->GetComponentType()->GetAccessFlags();
4260 new_class->SetAccessFlags(access_flags);
4262 ObjPtr<mirror::Class> existing = InsertClass(descriptor, new_class.Get(), hash);
4267 Runtime::Current()->GetRuntimeCallbacks()->ClassLoad(new_class);
4268 Runtime::Current()->GetRuntimeCallbacks()->ClassPrepare(new_class, new_class);
4270 jit::Jit::NewTypeLoadedIfUsingJit(new_class.Get());
4271 return new_class.Get();
5758 ObjPtr<mirror::Class> new_class) {
5760 for (ArtField& field : new_class->GetIFields()) {
5762 field.SetDeclaringClass(new_class);
5767 for (ArtField& field : new_class->GetSFields()) {
5769 field.SetDeclaringClass(new_class);
5775 for (auto& method : new_class->GetMethods(image_pointer_size_)) {
5777 method.SetDeclaringClass(new_class);
5783 WriteBarrier::ForEveryFieldWrite(new_class);
5961 // This will notify waiters on new_class that saw the not yet resolved