Home
last modified time | relevance | path

Searched refs:new_capacity (Results 1 - 3 of 3) sorted by relevance

/arkcompiler/runtime_core/compiler/optimizer/ir/
H A Dinst.cpp55 void DynamicOperands::Reallocate([[maybe_unused]] size_t new_capacity /* =0 */) in Reallocate()
57 if (new_capacity == 0) { in Reallocate()
59 new_capacity = (((capacity_ != 0U) ? capacity_ : 1U) << 1U) + IMM_2; in Reallocate()
60 } else if (new_capacity <= capacity_) { in Reallocate()
63 auto size = new_capacity * (sizeof(User) + sizeof(Inst *)) + sizeof(Inst *); in Reallocate()
69 *reinterpret_cast<Inst **>(reinterpret_cast<User *>(new_stor) + new_capacity) = owner_inst; in Reallocate()
73 capacity_ = new_capacity; in Reallocate()
78 auto *new_inputs = reinterpret_cast<Input *>(new_stor + sizeof(User) * new_capacity) + 1; in Reallocate()
86 User *new_user = new (reinterpret_cast<User *>(new_stor) + new_capacity - i - 1) User(false, i, new_capacity); in Reallocate()
[all...]
H A Dinst.h597 void Reallocate(size_t new_capacity = 0);
/arkcompiler/ets_runtime/ecmascript/
H A Dlayout_info.h91 uint32_t new_capacity = old_capacity + MIN_PROPERTIES_LENGTH; in ComputeGrowCapacity() local
92 return new_capacity > MAX_PROPERTIES_LENGTH ? MAX_PROPERTIES_LENGTH : new_capacity; in ComputeGrowCapacity()

Completed in 5 milliseconds