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

Unified Diff: src/runtime.cc

Issue 11817017: Additional work to get array literal allocation tracking working, even with --always-opt (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Code cleanup Created 7 years, 11 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
« src/objects.cc ('K') | « src/objects.cc ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« src/objects.cc ('K') | « src/objects.cc ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698