| Index: src/runtime-profiler.cc
|
| diff --git a/src/runtime-profiler.cc b/src/runtime-profiler.cc
|
| index bb7a7d7c64a9db85ce154c3271211a5881c33e35..de9bf401ba41e5c3118ff6aa52fb77913eef22e7 100644
|
| --- a/src/runtime-profiler.cc
|
| +++ b/src/runtime-profiler.cc
|
| @@ -268,6 +268,7 @@ void RuntimeProfiler::OptimizeNow() {
|
|
|
| // Do not record non-optimizable functions.
|
| if (!function->IsOptimizable()) continue;
|
| + if (function->shared()->optimization_disabled()) continue;
|
|
|
| // Only record top-level code on top of the execution stack and
|
| // avoid optimizing excessively large scripts since top-level code
|
|
|