Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(899)

Unified Diff: src/objects.cc

Issue 1133773002: Keep track of array buffers in new space separately (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index c982dd29614ac1eb06495a93e93591c04cc35933..4056cb26e7461443cfe14ba151031c8d9cbd5518 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -17082,7 +17082,8 @@ Handle<JSArrayBuffer> JSTypedArray::MaterializeArrayBuffer(
void* backing_store =
isolate->array_buffer_allocator()->AllocateUninitialized(
fixed_typed_array->DataSize());
- isolate->heap()->RegisterNewArrayBuffer(backing_store,
+ isolate->heap()->RegisterNewArrayBuffer(isolate->heap()->InNewSpace(*buffer),
+ backing_store,
fixed_typed_array->DataSize());
buffer->set_backing_store(backing_store);
buffer->set_is_external(false);

Powered by Google App Engine
This is Rietveld 408576698