Lines Matching full:int
34 static inline int Hash([[maybe_unused]] const JSTaggedValue &key) in Hash()
46 static inline int Hash(const JSTaggedValue &key, const JSTaggedValue &metaData) in Hash()
56 … int metaDataHash = metaData.IsInt() ? metaData.GetInt() : static_cast<int>(metaData.GetRawData()); in Hash()
57 return static_cast<int>(hash) + metaDataHash; in Hash()
60 inline static int GetKeyIndex(int entry) in GetKeyIndex()
64 inline static int GetValueIndex(int entry) in GetValueIndex()
68 inline static int GetEntryIndex(int entry) in GetEntryIndex()
72 inline static int GetEntrySize() in GetEntrySize()
82 static constexpr int DEFAULT_ELEMENTS_NUMBER = 16;
84 int numberOfElements = DEFAULT_ELEMENTS_NUMBER)
96 inline JSTaggedValue GetAttributes(int entry) const in GetAttributes()
98 int index = GetEntryIndex(entry) + ENTRY_DETAILS_INDEX; in GetAttributes()
102 inline void SetAttributes(const JSThread *thread, int entry, JSTaggedValue metaData) in SetAttributes()
104 int index = GetEntryIndex(entry) + ENTRY_DETAILS_INDEX; in SetAttributes()
108 …inline void SetEntry(const JSThread *thread, int entry, const JSTaggedValue &key, const JSTaggedVa… in SetEntry()
122 inline void RemoveElement(const JSThread *thread, int entry) in RemoveElement()
130 int FindEntry(const JSTaggedValue &key, const JSTaggedValue &metaData);
148 …static int ComputeCompactSize(const JSHandle<TransitionsDictionary> &table, int computeHashTableSi… in ComputeCompactSize()
149 int tableSize, int addedElements) in ComputeCompactSize()
151 int realEntryCount = 0; in ComputeCompactSize()
152 for (int i = 0; i < tableSize; i++) { in ComputeCompactSize()
159 …static_cast<int>(helpers::math::GetPowerOfTwoValue32(realEntryCount + addedElements) * HASH_TABLE_… in ComputeCompactSize()
162 static constexpr int ENTRY_SIZE = 3;
163 static constexpr int ENTRY_KEY_INDEX = 0;
164 static constexpr int ENTRY_VALUE_INDEX = 1;
165 static constexpr int ENTRY_DETAILS_INDEX = 2;
166 static constexpr int HASH_TABLE_BUFFER = 2;