Lines Matching refs:id
64 inline uint32_t GetMethodIndex(File::EntityId id) const
66 return panda::helpers::math::PowerOfTwoTableSlot(id.GetOffset(), METHOD_CACHE_SIZE);
69 inline uint32_t GetFieldIndex(File::EntityId id) const
72 return panda::helpers::math::PowerOfTwoTableSlot(id.GetOffset(), FIELD_CACHE_SIZE, 2U);
75 inline uint32_t GetClassIndex(File::EntityId id) const
77 return panda::helpers::math::PowerOfTwoTableSlot(id.GetOffset(), CLASS_CACHE_SIZE);
80 inline Method *GetMethodFromCache(File::EntityId id) const
82 uint32_t index = GetMethodIndex(id);
88 if (pair.id_ == id) {
94 inline void SetMethodCache(File::EntityId id, Method *method)
97 pair.id_ = id;
99 uint32_t index = GetMethodIndex(id);
107 inline Field *GetFieldFromCache(File::EntityId id) const
109 uint32_t index = GetFieldIndex(id);
115 if (pair.id_ == id) {
121 inline void SetFieldCache(File::EntityId id, Field *field)
123 uint32_t index = GetFieldIndex(id);
127 pair.id_ = id;
134 inline Class *GetClassFromCache(File::EntityId id) const
136 uint32_t index = GetClassIndex(id);
142 if (pair.id_ == id) {
148 inline void SetClassCache(File::EntityId id, Class *clazz)
151 pair.id_ = id;
153 uint32_t index = GetClassIndex(id);