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

Unified Diff: src/isolate.cc

Issue 59373003: AllocationProfiler: introduce allocation_profiler flag in V8 api. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index 71cd301581fae8c3679c546f3ff4a2834440b365..58de1ab91ea1e2102ea4c092f3e16b396f6a03cd 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -1790,7 +1790,8 @@ Isolate::Isolate()
deferred_handles_head_(NULL),
optimizing_compiler_thread_(NULL),
sweeper_thread_(NULL),
- stress_deopt_count_(0) {
+ stress_deopt_count_(0),
+ allocation_profiler_(false) {
id_ = NoBarrier_AtomicIncrement(&isolate_counter_, 1);
TRACE_ISOLATE(constructor);
@@ -2148,6 +2149,10 @@ bool Isolate::Init(Deserializer* des) {
ASSERT(des == NULL);
}
+ if (is_allocation_profiler_enabled()) {
+ ASSERT(des == NULL);
+ }
+
// The initialization process does not handle memory exhaustion.
DisallowAllocationFailure disallow_allocation_failure;

Powered by Google App Engine
This is Rietveld 408576698