Lines Matching refs:klass
36 bool ClassTable::Contains(ObjPtr<mirror::Class> klass) { in Contains() argument
38 TableSlot slot(klass); in Contains()
42 return it->Read() == klass; in Contains()
48 mirror::Class* ClassTable::LookupByDescriptor(ObjPtr<mirror::Class> klass) { in LookupByDescriptor() argument
50 TableSlot slot(klass); in LookupByDescriptor()
60 mirror::Class* ClassTable::UpdateClass(const char* descriptor, mirror::Class* klass, size_t hash) { in UpdateClass() argument
74 CHECK_NE(existing, klass) << descriptor; in UpdateClass()
76 CHECK_EQ(klass->GetStatus(), ClassStatus::kResolving) << descriptor; in UpdateClass()
77 CHECK(!klass->IsTemp()) << descriptor; in UpdateClass()
78 VerifyObject(klass); in UpdateClass()
81 *existing_it = TableSlot(klass, hash); in UpdateClass()
136 ObjPtr<mirror::Class> ClassTable::TryInsert(ObjPtr<mirror::Class> klass) { in TryInsert() argument
137 TableSlot slot(klass); in TryInsert()
146 return klass; in TryInsert()
149 void ClassTable::Insert(ObjPtr<mirror::Class> klass) { in Insert() argument
150 const uint32_t hash = TableSlot::HashDescriptor(klass); in Insert()
152 classes_.back().InsertWithHash(TableSlot(klass, hash), hash); in Insert()
168 void ClassTable::InsertWithoutLocks(ObjPtr<mirror::Class> klass) { in InsertWithoutLocks() argument
169 const uint32_t hash = TableSlot::HashDescriptor(klass); in InsertWithoutLocks()
170 classes_.back().InsertWithHash(TableSlot(klass, hash), hash); in InsertWithoutLocks()
173 void ClassTable::InsertWithHash(ObjPtr<mirror::Class> klass, size_t hash) { in InsertWithHash() argument
175 classes_.back().InsertWithHash(TableSlot(klass, hash), hash); in InsertWithHash()
293 ClassTable::TableSlot::TableSlot(ObjPtr<mirror::Class> klass) in TableSlot() argument
294 : TableSlot(klass, HashDescriptor(klass)) {} in TableSlot()
296 uint32_t ClassTable::TableSlot::HashDescriptor(ObjPtr<mirror::Class> klass) { in HashDescriptor() argument
298 return ComputeModifiedUtf8Hash(klass->GetDescriptor(&temp)); in HashDescriptor()