Commit c23d4dd3 authored by Deepti Gandluri's avatar Deepti Gandluri Committed by Commit Bot

[wasm] Remove unused functions on the memory object

Change-Id: Id221faecc9873cb0dbbd89777e055884158dbfb3
Reviewed-on: https://chromium-review.googlesource.com/c/1364370Reviewed-by: 's avatarAdam Klein <adamk@chromium.org>
Commit-Queue: Deepti Gandluri <gdeepti@chromium.org>
Cr-Commit-Position: refs/heads/master@{#58059}
parent fbc82ec3
......@@ -985,11 +985,6 @@ Handle<WasmMemoryObject> WasmMemoryObject::New(
return memory_obj;
}
uint32_t WasmMemoryObject::current_pages() {
return static_cast<uint32_t>(array_buffer()->byte_length() /
wasm::kWasmPageSize);
}
bool WasmMemoryObject::has_full_guard_region(Isolate* isolate) {
const wasm::WasmMemoryTracker::AllocationData* allocation =
isolate->wasm_engine()->memory_tracker()->FindAllocationData(
......@@ -1029,13 +1024,6 @@ void WasmMemoryObject::AddInstance(Isolate* isolate,
SetInstanceMemory(instance, buffer);
}
void WasmMemoryObject::RemoveInstance(Handle<WasmMemoryObject> memory,
Handle<WasmInstanceObject> instance) {
if (memory->has_instances()) {
memory->instances()->RemoveOne(MaybeObjectHandle::Weak(instance));
}
}
// static
int32_t WasmMemoryObject::Grow(Isolate* isolate,
Handle<WasmMemoryObject> memory_object,
......
......@@ -311,10 +311,6 @@ class WasmMemoryObject : public JSObject {
// Add an instance to the internal (weak) list.
static void AddInstance(Isolate* isolate, Handle<WasmMemoryObject> memory,
Handle<WasmInstanceObject> object);
// Remove an instance from the internal (weak) list.
static void RemoveInstance(Handle<WasmMemoryObject> memory,
Handle<WasmInstanceObject> object);
uint32_t current_pages();
inline bool has_maximum_pages();
// Return whether the underlying backing store has guard regions large enough
......
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