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

Unified Diff: src/full-codegen.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/deoptimizer.cc ('k') | src/heap.cc » ('j') | test/cctest/cctest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/full-codegen.cc
diff --git a/src/full-codegen.cc b/src/full-codegen.cc
index f1877fbf51edbc293bec06378fde48f0f8dbf446..adbd07fda4f6cd18af08129a65e614c5f96d63b5 100644
--- a/src/full-codegen.cc
+++ b/src/full-codegen.cc
@@ -414,6 +414,8 @@ void FullCodeGenerator::Initialize() {
!Serializer::enabled() &&
!Snapshot::HaveASnapshotToStartFrom();
masm_->set_emit_debug_code(generate_debug_code_);
+ masm_->set_emit_allocations_tracking_code(
+ masm_->isolate()->heap_profiler()->is_tracking_allocations());
masm_->set_predictable_code_size(true);
InitializeAstVisitor(info_->isolate());
}
« no previous file with comments | « src/deoptimizer.cc ('k') | src/heap.cc » ('j') | test/cctest/cctest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698