| Index: src/runtime-profiler.cc
|
| diff --git a/src/runtime-profiler.cc b/src/runtime-profiler.cc
|
| index 5e5b57ced238e88a5f0da1dbf3e7e1c60f63034b..22567d3b90576be19f829e6a55ea33c5b4d68e53 100644
|
| --- a/src/runtime-profiler.cc
|
| +++ b/src/runtime-profiler.cc
|
| @@ -117,7 +117,7 @@ void RuntimeProfiler::AttemptOnStackReplacement(JSFunction* function,
|
| }
|
|
|
| // If the code is not optimizable, don't try OSR.
|
| - if (!shared->code()->optimizable()) return;
|
| + if (shared->optimization_disabled()) return;
|
|
|
| // We are not prepared to do OSR for a function that already has an
|
| // allocated arguments object. The optimized code would bypass it for
|
|
|