Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 217b37b2fe5cbdb11ccc52fb559dfc16c8814106..f11ad9671855e8c99ae743c638194945bf155a7c 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -4823,7 +4823,8 @@ MaybeObject* Heap::CopyJSObject(JSObject* source, AllocationSite* site) { |
{ int adjusted_object_size = site != NULL |
? object_size + AllocationMemento::kSize |
: object_size; |
- MaybeObject* maybe_clone = new_space_.AllocateRaw(adjusted_object_size); |
+ MaybeObject* maybe_clone = |
+ AllocateRaw(adjusted_object_size, NEW_SPACE, NEW_SPACE); |
if (!maybe_clone->ToObject(&clone)) return maybe_clone; |
} |
SLOW_ASSERT(InNewSpace(clone)); |