Index: src/runtime/runtime-typedarray.cc |
diff --git a/src/runtime/runtime-typedarray.cc b/src/runtime/runtime-typedarray.cc |
index ffa412090367f530291059b737f8203b537cdd69..4acdba3fc6e1b52fd8ae258d05ae4ce68c0120a3 100644 |
--- a/src/runtime/runtime-typedarray.cc |
+++ b/src/runtime/runtime-typedarray.cc |
@@ -67,11 +67,6 @@ bool Runtime::SetupArrayBufferAllocatingData(Isolate* isolate, |
} |
-void Runtime::NeuterArrayBuffer(Handle<JSArrayBuffer> array_buffer) { |
- array_buffer->Neuter(); |
-} |
- |
- |
RUNTIME_FUNCTION(Runtime_ArrayBufferInitialize) { |
HandleScope scope(isolate); |
DCHECK(args.length() == 3); |
@@ -150,7 +145,7 @@ RUNTIME_FUNCTION(Runtime_ArrayBufferNeuter) { |
void* backing_store = array_buffer->backing_store(); |
size_t byte_length = NumberToSize(isolate, array_buffer->byte_length()); |
array_buffer->set_is_external(true); |
- Runtime::NeuterArrayBuffer(array_buffer); |
+ array_buffer->Neuter(); |
isolate->heap()->UnregisterArrayBuffer( |
isolate->heap()->InNewSpace(*array_buffer), backing_store); |
isolate->array_buffer_allocator()->Free(backing_store, byte_length); |