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

Unified Diff: src/deoptimizer.cc

Issue 22852024: Track JS allocations as they arrive with no affection on performance when tracking is switched off (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Deoptimize code and generate optimized code when switching allocations tracking Created 7 years, 3 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
« no previous file with comments | « src/builtins.cc ('k') | src/full-codegen.cc » ('j') | test/cctest/cctest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/deoptimizer.cc
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc
index 9a1bb9d8efb97e2193051079321f3b59d9219444..431d12ab3aa27919fac296548cb7f276f18c45d9 100644
--- a/src/deoptimizer.cc
+++ b/src/deoptimizer.cc
@@ -2440,6 +2440,8 @@ void Deoptimizer::EnsureCodeForDeoptimizationEntry(Isolate* isolate,
MacroAssembler masm(isolate, NULL, 16 * KB);
masm.set_emit_debug_code(false);
+ masm.set_emit_allocations_tracking_code(
+ isolate->heap_profiler()->is_tracking_allocations());
GenerateDeoptimizationEntries(&masm, entry_count, type);
CodeDesc desc;
masm.GetCode(&desc);
« no previous file with comments | « src/builtins.cc ('k') | src/full-codegen.cc » ('j') | test/cctest/cctest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698