Index: src/wasm/wasm-module.cc |
diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc |
index 04f58c2c4f5f8c73f72875cadf1eac932058c2ba..8f99797fdec82807362ffd31b19e2e064e85529c 100644 |
--- a/src/wasm/wasm-module.cc |
+++ b/src/wasm/wasm-module.cc |
@@ -2200,10 +2200,8 @@ bool wasm::ValidateModuleBytes(Isolate* isolate, const byte* start, |
return false; |
} |
-namespace { |
- |
-MaybeHandle<JSArrayBuffer> GetInstanceMemory(Isolate* isolate, |
- Handle<JSObject> instance) { |
+MaybeHandle<JSArrayBuffer> wasm::GetInstanceMemory(Isolate* isolate, |
+ Handle<JSObject> instance) { |
Object* mem = instance->GetInternalField(kWasmMemArrayBuffer); |
DCHECK(IsWasmObject(*instance)); |
if (mem->IsUndefined(isolate)) return MaybeHandle<JSArrayBuffer>(); |
@@ -2218,8 +2216,6 @@ void SetInstanceMemory(Handle<JSObject> instance, JSArrayBuffer* buffer) { |
compiled_module->set_ptr_to_heap(buffer); |
} |
-} // namespace |
- |
int32_t wasm::GetInstanceMemorySize(Isolate* isolate, |
Handle<JSObject> instance) { |
MaybeHandle<JSArrayBuffer> maybe_mem_buffer = |