| Index: src/runtime-profiler.cc
|
| diff --git a/src/runtime-profiler.cc b/src/runtime-profiler.cc
|
| index 7330262e234c2ee1ea65465a3ffb7f81618bb288..db9d76a1a5cb116aec132e820a56d8bc0bd098ad 100644
|
| --- a/src/runtime-profiler.cc
|
| +++ b/src/runtime-profiler.cc
|
| @@ -148,7 +148,7 @@ void RuntimeProfiler::AttemptOnStackReplacement(JSFunction* function,
|
| void RuntimeProfiler::OptimizeNow() {
|
| HandleScope scope(isolate_);
|
|
|
| - if (isolate_->DebuggerHasBreakPoints()) return;
|
| + if (!isolate_->use_crankshaft() || isolate_->DebuggerHasBreakPoints()) return;
|
|
|
| DisallowHeapAllocation no_gc;
|
|
|
|
|