• Home
  • Raw
  • Download

Lines Matching refs:id

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