Searched refs:currentSize (Results 1 – 4 of 4) sorted by relevance
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | template_map_test.cpp | 270 int currentSize = 128, atLeastSize = 33; in HWTEST_F_L0() local 271 EXPECT_EQ(TemplateMap::RecalculateTableSize(currentSize, atLeastSize), currentSize); in HWTEST_F_L0() 273 EXPECT_EQ(TemplateMap::RecalculateTableSize(currentSize, atLeastSize - 1), currentSize / 2); in HWTEST_F_L0() 275 currentSize = TemplateMap::MIN_SIZE * 4; in HWTEST_F_L0() 276 for (int i = currentSize; i >= 0; i--) { in HWTEST_F_L0() 277 EXPECT_EQ(TemplateMap::RecalculateTableSize(currentSize, i), currentSize); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
D | mem_controller.cpp | 28 size_t MemController::CalculateAllocLimit(size_t currentSize, size_t minSize, size_t maxSize, size_… in CalculateAllocLimit() argument 31 const uint64_t limit = std::max(static_cast<uint64_t>(currentSize * factor), in CalculateAllocLimit() 32 … static_cast<uint64_t>(currentSize) + minAllocLimitGrowingStep_) + in CalculateAllocLimit() 36 const uint64_t halfToMaxSize = (static_cast<uint64_t>(currentSize) + maxSize) / 2; in CalculateAllocLimit()
|
D | mem_controller.h | 50 …size_t CalculateAllocLimit(size_t currentSize, size_t minSize, size_t maxSize, size_t newSpaceCapa…
|
/arkcompiler/ets_runtime/ecmascript/ |
D | tagged_hash_table.h | 130 inline static int RecalculateTableSize(int currentSize, int atLeastSize) in RecalculateTableSize() argument 134 if (atLeastSize > (currentSize / 4)) { // 4 : quarter in RecalculateTableSize() 135 return currentSize; in RecalculateTableSize() 142 return currentSize; in RecalculateTableSize() 163 int currentSize = Size(); in IsNeedGrowHashTable() local 168 if (numberFilled + neededFree <= currentSize) { in IsNeedGrowHashTable() 362 int currentSize = this->Size(); in Rehash() local 364 for (int i = 0; i < currentSize; i++) { in Rehash()
|