Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index d02b38c29f9d22f07240607d577d6d271ef1d0ad..7281768adb04725a5e205d3dba3a49932e18eb9a 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -673,7 +673,11 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateArrayLiteralShallow) { |
JSObject* boilerplate_object = JSObject::cast(*boilerplate); |
AllocationSiteMode mode = AllocationSiteInfo::GetMode( |
boilerplate_object->GetElementsKind()); |
- return isolate->heap()->CopyJSObject(boilerplate_object, mode); |
+ if (mode == TRACK_ALLOCATION_SITE) { |
+ return isolate->heap()->CopyJSObjectWithAllocationSite(boilerplate_object); |
+ } |
+ |
+ return isolate->heap()->CopyJSObject(boilerplate_object); |
} |