Chromium Code Reviews| Index: src/runtime.cc |
| diff --git a/src/runtime.cc b/src/runtime.cc |
| index 906dfb7bb032ce74c3038f150ae04cab5514ec8a..77233e71f5e776e08adf4354c4bf7d8f46363d43 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 |
|
danno
2013/01/10 22:58:59
nit: ? goes on following line. i.e.
AllocationSite
mvstanton
2013/01/11 13:43:01
Done.
|
| + : DONT_TRACK_ALLOCATION_SITE_INFO; |
| + return isolate->heap()->CopyJSObject(JSObject::cast(*boilerplate), mode); |
| } |