Index: src/runtime/runtime-typedarray.cc |
diff --git a/src/runtime/runtime-typedarray.cc b/src/runtime/runtime-typedarray.cc |
index ae10eeb6665ed7ea3bed0d5495e31e456fa89f82..0c4223cd46fc0fa36d964d8bdee09a0918545c1e 100644 |
--- a/src/runtime/runtime-typedarray.cc |
+++ b/src/runtime/runtime-typedarray.cc |
@@ -34,8 +34,7 @@ |
array_buffer->set_byte_length(*byte_length); |
if (data && !is_external) { |
- isolate->heap()->RegisterNewArrayBuffer( |
- isolate->heap()->InNewSpace(*array_buffer), data, allocated_length); |
+ isolate->heap()->RegisterNewArrayBuffer(data, allocated_length); |
} |
} |
@@ -151,8 +150,7 @@ |
size_t byte_length = NumberToSize(isolate, array_buffer->byte_length()); |
array_buffer->set_is_external(true); |
Runtime::NeuterArrayBuffer(array_buffer); |
- isolate->heap()->UnregisterArrayBuffer( |
- isolate->heap()->InNewSpace(*array_buffer), backing_store); |
+ isolate->heap()->UnregisterArrayBuffer(backing_store); |
isolate->array_buffer_allocator()->Free(backing_store, byte_length); |
return isolate->heap()->undefined_value(); |
} |