Home
last modified time | relevance | path

Searched refs:nof (Results 1 - 5 of 5) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
H A Dlinked_hash_table.h76 int nof = numberOfElements + numOfAddElements; in HasSufficientCapacity() local
80 if ((nof < capacity) && ((numOfDelElements <= (capacity - nof) / 2))) { // 2: half in HasSufficientCapacity()
81 int neededFree = nof / 2; // 2: half in HasSufficientCapacity()
82 if (nof + neededFree <= capacity) { in HasSufficientCapacity()
181 inline void SetNumberOfElements(const JSThread *thread, int nof) in SetNumberOfElements() argument
183 Set(thread, NUMBER_OF_ELEMENTS_INDEX, JSTaggedValue(nof)); in SetNumberOfElements()
H A Dtagged_list.h107 inline void SetNumberOfNodes(const JSThread *thread, int nof) in SetNumberOfNodes() argument
109 Set(thread, NUMBER_OF_NODE_INDEX, JSTaggedValue(nof)); in SetNumberOfNodes()
H A Dtagged_hash_table.h359 inline void SetEntriesCount(const JSThread *thread, int nof) in SetEntriesCount() argument
361 Set(thread, NUMBER_OF_ENTRIES_INDEX, JSTaggedValue(nof)); in SetEntriesCount()
H A Dtagged_tree.cpp467 uint32_t nof = tree->NumberOfElements() + tree->NumberOfDeletedElements(); in GrowCapacity() local
469 if (static_cast<int>(nof + 1) <= oldCapacity) { in GrowCapacity()
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
H A Dlinked_hashtable_stub_builder.cpp204 GateRef nof = Int32Add(numberOfElements, numOfAddElements); in HasSufficientCapacity() local
207 .And(Int32LessThan(nof, capacity)) in HasSufficientCapacity()
208 .And(Int32LessThanOrEqual(numOfDelElements, Int32Div(Int32Sub(capacity, nof), Int32(2)))) in HasSufficientCapacity()
215 BRANCH(Int32LessThanOrEqual(Int32Add(nof, Int32Div(nof, Int32(2))), capacity), &need, &exit); // 2: half in HasSufficientCapacity()

Completed in 6 milliseconds