Lines Matching full:class
18 #include "runtime/include/class.h"
83 inline uint32_t Class::GetTypeSize(panda_file::Type type) in GetTypeSize()
110 inline uint32_t Class::GetComponentSize() const in GetComponentSize()
119 inline bool Class::IsClassClass() const in IsClassClass()
121 return GetManagedObject()->ClassAddr<Class>() == this; in IsClassClass()
124 inline bool Class::IsSubClassOf(const Class *klass) const in IsSubClassOf()
126 const Class *current = this; in IsSubClassOf()
139 inline bool Class::IsAssignableFrom(const Class *klass) const in IsAssignableFrom()
156 inline bool Class::Implements(const Class *klass) const in Implements()
167 template <Class::FindFilter filter>
168 inline Span<Field> Class::GetFields() const in GetFields()
182 template <Class::FindFilter filter, class Pred>
183 inline Field *Class::FindDeclaredField(Pred pred) const in FindDeclaredField()
203 template <Class::FindFilter filter>
204 inline Field *Class::FindDeclaredField(panda_file::File::EntityId id) const in FindDeclaredField()
228 template <Class::FindFilter filter, class Pred>
229 inline Field *Class::FindField(Pred pred) const in FindField()
258 template <Class::FindFilter filter>
259 inline Span<Method> Class::GetMethods() const in GetMethods()
275 template <Class::FindFilter filter, typename KeyComp, typename Key, typename... Pred>
276 inline Method *Class::FindDirectMethod(Key key, const Pred &... preds) const in FindDirectMethod()
311 template <Class::FindFilter filter, typename KeyComp, typename Key, typename... Pred>
312 inline Method *Class::FindClassMethod(Key key, const Pred &... preds) const in FindClassMethod()
330 template <Class::FindFilter filter, typename KeyComp, typename Key, typename... Pred>
331 inline Method *Class::FindInterfaceMethod(Key key, const Pred &... preds) const in FindInterfaceMethod()
362 inline Method *Class::GetVirtualInterfaceMethod(panda_file::File::EntityId id) const in GetVirtualInterfaceMethod()
367 inline Method *Class::GetStaticInterfaceMethod(panda_file::File::EntityId id) const in GetStaticInterfaceMethod()
372 template <class Pred>
373 inline Field *Class::FindInstanceField(Pred pred) const in FindInstanceField()
378 inline Field *Class::FindInstanceFieldById(panda_file::File::EntityId id) const in FindInstanceFieldById()
383 template <class Pred>
384 inline Field *Class::FindStaticField(Pred pred) const in FindStaticField()
389 inline Field *Class::FindStaticFieldById(panda_file::File::EntityId id) const in FindStaticFieldById()
394 template <class Pred>
395 inline Field *Class::FindField(Pred pred) const in FindField()
400 template <class Pred>
401 inline Field *Class::FindDeclaredField(Pred pred) const in FindDeclaredField()
406 inline Field *Class::GetInstanceFieldByName(const uint8_t *mutf8_name) const in GetInstanceFieldByName()
412 inline Field *Class::GetStaticFieldByName(const uint8_t *mutf8_name) const in GetStaticFieldByName()
418 inline size_t Class::GetStaticFieldsOffset() const in GetStaticFieldsOffset()
423 inline Field *Class::GetDeclaredFieldByName(const uint8_t *mutf8_name) const in GetDeclaredFieldByName()
429 inline Method *Class::GetVirtualClassMethod(panda_file::File::EntityId id) const in GetVirtualClassMethod()
434 inline Method *Class::GetStaticClassMethod(panda_file::File::EntityId id) const in GetStaticClassMethod()
439 inline Method *Class::GetDirectMethod(const uint8_t *mutf8_name, const Method::Proto &proto) const in GetDirectMethod()
446 inline Method *Class::GetClassMethod(const uint8_t *mutf8_name, const Method::Proto &proto) const in GetClassMethod()
452 inline Method *Class::GetClassMethod(const panda_file::File::StringData &sd, const Method::Proto &p… in GetClassMethod()
458 inline Method *Class::GetStaticClassMethodByName(const panda_file::File::StringData &sd, in GetStaticClassMethodByName()
465 inline Method *Class::GetVirtualClassMethodByName(const panda_file::File::StringData &sd, in GetVirtualClassMethodByName()
472 inline Method *Class::GetInterfaceMethod(const uint8_t *mutf8_name, const Method::Proto &proto) con… in GetInterfaceMethod()
478 inline Method *Class::GetInterfaceMethod(const panda_file::File::StringData &sd, const Method::Prot… in GetInterfaceMethod()
484 inline Method *Class::GetStaticInterfaceMethodByName(const panda_file::File::StringData &sd, in GetStaticInterfaceMethodByName()
491 inline Method *Class::GetVirtualInterfaceMethodByName(const panda_file::File::StringData &sd, in GetVirtualInterfaceMethodByName()
498 inline Method *Class::GetDirectMethod(const uint8_t *mutf8_name) const in GetDirectMethod()
504 inline Method *Class::GetClassMethod(const uint8_t *mutf8_name) const in GetClassMethod()
510 inline Method *Class::ResolveVirtualMethod(const Method *method) const in ResolveVirtualMethod()
549 constexpr size_t Class::ComputeClassSize(size_t vtable_size, size_t imt_size, size_t num_8bit_sfiel… in ComputeClassSize()
553 size_t size = sizeof(Class); in ComputeClassSize()
597 constexpr void Class::Pad(size_t size, size_t *padding, size_t *n) in Pad()
605 constexpr size_t Class::GetVTableOffset() in GetVTableOffset()
610 inline Span<Method *> Class::GetVTable() in GetVTable()
615 inline Span<Method *const> Class::GetVTable() const in GetVTable()
620 inline size_t Class::GetIMTOffset() const in GetIMTOffset()
625 template <class T, bool is_volatile /* = false */>
626 inline T Class::GetFieldPrimitive(size_t offset) const in GetFieldPrimitive()
628 … ASSERT_DO(IsInitializing() || IsInitialized(), LOG(ERROR, RUNTIME) << "class state: " << state_); in GetFieldPrimitive()
632 template <class T, bool is_volatile /* = false */>
633 inline void Class::SetFieldPrimitive(size_t offset, T value) in SetFieldPrimitive()
639 inline ObjectHeader *Class::GetFieldObject(size_t offset) const in GetFieldObject()
644 …ASSERT_DO(IsInitializing() || IsInitialized() || IsErroneous(), LOG(ERROR, RUNTIME) << "class stat… in GetFieldObject()
649 inline void Class::SetFieldObject(size_t offset, ObjectHeader *value) in SetFieldObject()
657 template <class T>
658 inline T Class::GetFieldPrimitive(const Field &field) const in GetFieldPrimitive()
663 template <class T>
664 inline void Class::SetFieldPrimitive(const Field &field, T value) in SetFieldPrimitive()
670 inline ObjectHeader *Class::GetFieldObject(const Field &field) const in GetFieldObject()
676 inline void Class::SetFieldObject(const Field &field, ObjectHeader *value) in SetFieldObject()
689 inline ObjectHeader *Class::GetFieldObject(ManagedThread *thread, const Field &field) const in GetFieldObject()
695 inline void Class::SetFieldObject(ManagedThread *thread, const Field &field, ObjectHeader *value) in SetFieldObject()
707 template <class T>
708 inline T Class::GetFieldPrimitive(size_t offset, std::memory_order memory_order) const in GetFieldPrimitive()
713 template <class T>
714 inline void Class::SetFieldPrimitive(size_t offset, T value, std::memory_order memory_order) in SetFieldPrimitive()
720 inline ObjectHeader *Class::GetFieldObject(size_t offset, std::memory_order memory_order) const in GetFieldObject()
726 inline void Class::SetFieldObject(size_t offset, ObjectHeader *value, std::memory_order memory_orde… in SetFieldObject()
735 inline bool Class::CompareAndSetFieldPrimitive(size_t offset, T old_value, T new_value, std::memory… in CompareAndSetFieldPrimitive()
742 inline bool Class::CompareAndSetFieldObject(size_t offset, ObjectHeader *old_value, ObjectHeader *n… in CompareAndSetFieldObject()
754 inline T Class::CompareAndExchangeFieldPrimitive(size_t offset, T old_value, T new_value, in CompareAndExchangeFieldPrimitive()
761 inline ObjectHeader *Class::CompareAndExchangeFieldObject(size_t offset, ObjectHeader *old_value, in CompareAndExchangeFieldObject()
774 inline T Class::GetAndSetFieldPrimitive(size_t offset, T value, std::memory_order memory_order) in GetAndSetFieldPrimitive()
780 inline ObjectHeader *Class::GetAndSetFieldObject(size_t offset, ObjectHeader *value, std::memory_or… in GetAndSetFieldObject()
789 inline T Class::GetAndAddFieldPrimitive(size_t offset, T value, std::memory_order memory_order) in GetAndAddFieldPrimitive()
795 inline T Class::GetAndBitwiseOrFieldPrimitive(size_t offset, T value, std::memory_order memory_orde… in GetAndBitwiseOrFieldPrimitive()
801 inline T Class::GetAndBitwiseAndFieldPrimitive(size_t offset, T value, std::memory_order memory_ord… in GetAndBitwiseAndFieldPrimitive()
807 inline T Class::GetAndBitwiseXorFieldPrimitive(size_t offset, T value, std::memory_order memory_ord… in GetAndBitwiseXorFieldPrimitive()