Lines Matching full:int
25 inline int LayoutInfo::GetPropertiesCapacity() const in GetPropertiesCapacity()
27 return static_cast<int>((GetLength()) >> ELEMENTS_INDEX_LOG2); in GetPropertiesCapacity()
30 inline int LayoutInfo::NumberOfElements() const in NumberOfElements()
35 inline void LayoutInfo::SetNumberOfElements([[maybe_unused]] const JSThread *thread, int properties) in SetNumberOfElements()
40 inline uint32_t LayoutInfo::GetKeyIndex(int index) const in GetKeyIndex()
45 inline uint32_t LayoutInfo::GetAttrIndex(int index) const in GetAttrIndex()
50 inline void LayoutInfo::SetPropertyInit(const JSThread *thread, int index, const JSTaggedValue &key, in SetPropertyInit()
58 inline void LayoutInfo::SetNormalAttr(const JSThread *thread, int index, const PropertyAttributes &… in SetNormalAttr()
66 inline JSTaggedValue LayoutInfo::GetKey(int index) const in GetKey()
72 inline PropertyAttributes LayoutInfo::GetAttr(int index) const in GetAttr()
78 inline JSTaggedValue LayoutInfo::GetSortedKey(int index) const in GetSortedKey()
84 inline uint32_t LayoutInfo::GetSortedIndex(int index) const in GetSortedIndex()
89 inline void LayoutInfo::SetSortedIndex(const JSThread *thread, int index, int sortedIndex) in SetSortedIndex()
97 inline int LayoutInfo::FindElementWithCache(JSThread *thread, JSHClass *cls, JSTaggedValue key, in FindElementWithCache()
98 int propertiesNumber) in FindElementWithCache()
101 const int MAX_ELEMENTS_LINER_SEARCH = 9; // 9: Builtins Object properties number is nine; in FindElementWithCache()
104 for (int i = 0; i < propertiesNumber; i++) { in FindElementWithCache()
113 int index = cache->Get(cls, key); in FindElementWithCache()
121 inline int LayoutInfo::BinarySearch(JSTaggedValue key, int propertiesNumber) in BinarySearch()
124 int low = 0; in BinarySearch()
125 int elements = NumberOfElements(); in BinarySearch()
126 int high = elements - 1; in BinarySearch()
132 int mid = low + (high - low) / 2; // 2: half in BinarySearch()
140 int sortIndex = static_cast<int>(GetSortedIndex(mid)); in BinarySearch()
145 int midLeft = mid; in BinarySearch()
146 int midRight = mid; in BinarySearch()
148 sortIndex = static_cast<int>(GetSortedIndex(--midLeft)); in BinarySearch()
159 sortIndex = static_cast<int>(GetSortedIndex(++midRight)); in BinarySearch()