Chromium Code Reviews| Index: src/isolate.cc |
| diff --git a/src/isolate.cc b/src/isolate.cc |
| index 8d155669cf8e2eff0c98f4a7d75b42096a80a227..9f4b4120cbde467d6c83770a8ebb4b76fda9fee0 100644 |
| --- a/src/isolate.cc |
| +++ b/src/isolate.cc |
| @@ -1786,7 +1786,8 @@ Isolate::Isolate() |
| optimizing_compiler_thread_(this), |
| marking_thread_(NULL), |
| sweeper_thread_(NULL), |
| - callback_table_(NULL) { |
| + callback_table_(NULL), |
| + stress_deopt_count_(0) { |
| id_ = NoBarrier_AtomicIncrement(&isolate_counter_, 1); |
| TRACE_ISOLATE(constructor); |
| @@ -1898,6 +1899,10 @@ void Isolate::Deinit() { |
| if (FLAG_hydrogen_stats) GetHStatistics()->Print(); |
| + if (FLAG_trace_deopt_stress) { |
| + PrintF(stdout, "=== Stress deopt counter: %u\n", stress_deopt_count_); |
|
Michael Starzinger
2013/07/16 15:23:35
nit: Let's drop the '===' marker in the output.
|
| + } |
| + |
| // We must stop the logger before we tear down other components. |
| Sampler* sampler = logger_->sampler(); |
| if (sampler && sampler->IsActive()) sampler->Stop(); |
| @@ -2132,6 +2137,8 @@ bool Isolate::Init(Deserializer* des) { |
| ASSERT(Isolate::Current() == this); |
| TRACE_ISOLATE(init); |
| + stress_deopt_count_ = FLAG_deopt_every_n_times; |
| + |
| if (function_entry_hook() != NULL) { |
| // When function entry hooking is in effect, we have to create the code |
| // stubs from scratch to get entry hooks, rather than loading the previously |