Commit 03da4fec authored by Deepti Gandluri's avatar Deepti Gandluri Committed by Commit Bot

[wasm] Remove shared parameter to Memory.Grow()

R=mtrofin@chromium.org

Change-Id: Ia1e215d59e9ea863b85c64c2eab41f6cd6fe3404
Reviewed-on: https://chromium-review.googlesource.com/570842
Commit-Queue: Deepti Gandluri <gdeepti@chromium.org>
Reviewed-by: 's avatarMircea Trofin <mtrofin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#47026}
parent c805d5e3
......@@ -274,8 +274,8 @@ Handle<JSArrayBuffer> GrowMemoryBuffer(Isolate* isolate,
: old_buffer->has_guard_region();
size_t new_size =
static_cast<size_t>(old_pages + pages) * WasmModule::kPageSize;
Handle<JSArrayBuffer> new_buffer = NewArrayBuffer(
isolate, new_size, enable_guard_regions, IsShared(old_buffer));
Handle<JSArrayBuffer> new_buffer =
NewArrayBuffer(isolate, new_size, enable_guard_regions);
if (new_buffer.is_null()) return new_buffer;
Address new_mem_start = static_cast<Address>(new_buffer->backing_store());
memcpy(new_mem_start, old_mem_start, old_size);
......@@ -369,8 +369,7 @@ int32_t WasmMemoryObject::Grow(Isolate* isolate,
new_buffer = SetupArrayBuffer(
isolate, old_buffer->allocation_base(),
old_buffer->allocation_length(), old_buffer->backing_store(),
old_size, old_buffer->is_external(), old_buffer->has_guard_region(),
IsShared(old_buffer));
old_size, old_buffer->is_external(), old_buffer->has_guard_region());
memory_object->set_array_buffer(*new_buffer);
}
DCHECK_EQ(0, old_size % WasmModule::kPageSize);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment