Lines Matching refs:old_size
538 int old_size = old_array->length(); in WebAssemblyTableGrow() local
543 new_size64 += old_size; in WebAssemblyTableGrow()
551 if (new_size64 < old_size || new_size64 > max_size64) { in WebAssemblyTableGrow()
552 thrower.RangeError(new_size64 < old_size ? "trying to shrink table" in WebAssemblyTableGrow()
559 static_cast<uint32_t>(new_size - old_size)); in WebAssemblyTableGrow()
561 if (new_size != old_size) { in WebAssemblyTableGrow()
564 for (int i = 0; i < old_size; ++i) new_array->set(i, old_array->get(i)); in WebAssemblyTableGrow()
566 for (int i = old_size; i < new_size; ++i) new_array->set(i, null); in WebAssemblyTableGrow()
572 return_value.Set(old_size); in WebAssemblyTableGrow()
679 uint32_t old_size = in WebAssemblyMemoryGrow() local
681 int64_t new_size64 = old_size + delta_size; in WebAssemblyMemoryGrow()
682 if (delta_size < 0 || max_size64 < new_size64 || new_size64 < old_size) { in WebAssemblyMemoryGrow()
683 thrower.RangeError(new_size64 < old_size ? "trying to shrink memory" in WebAssemblyMemoryGrow()