Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 906dfb7bb032ce74c3038f150ae04cab5514ec8a..a87cceda76dbc8c15527b4300a21a0db815b9c83 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -668,7 +668,10 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateArrayLiteralShallow) { |
isolate->heap()->fixed_cow_array_map()) { |
isolate->counters()->cow_arrays_created_runtime()->Increment(); |
} |
- return isolate->heap()->CopyJSObject(JSObject::cast(*boilerplate)); |
+ AllocationSiteInfoMode mode = FLAG_track_allocation_sites |
+ ? TRACK_ALLOCATION_SITE_INFO |
+ : DONT_TRACK_ALLOCATION_SITE_INFO; |
+ return isolate->heap()->CopyJSObject(JSObject::cast(*boilerplate), mode); |
} |