| Index: src/runtime-profiler.cc
|
| diff --git a/src/runtime-profiler.cc b/src/runtime-profiler.cc
|
| index ab76cc90649901d3f562de3f94c973ba1661e254..a1aa101e3827cbb97c69d3aa57c528a84c3b33e3 100644
|
| --- a/src/runtime-profiler.cc
|
| +++ b/src/runtime-profiler.cc
|
| @@ -266,7 +266,7 @@ void RuntimeProfiler::MaybeOptimizeFullCodegen(JSFunction* function,
|
| }
|
| return;
|
| }
|
| - if (function->IsOptimized()) return;
|
| + if (frame->is_optimized()) return;
|
|
|
| int ticks = shared_code->profiler_ticks();
|
|
|
| @@ -360,7 +360,7 @@ void RuntimeProfiler::MaybeOptimizeIgnition(JSFunction* function,
|
| return;
|
| }
|
|
|
| - if (function->IsOptimized()) return;
|
| + if (frame->is_optimized()) return;
|
|
|
| OptimizationReason reason = ShouldOptimizeIgnition(function, frame);
|
|
|
| @@ -371,8 +371,6 @@ void RuntimeProfiler::MaybeOptimizeIgnition(JSFunction* function,
|
|
|
| bool RuntimeProfiler::MaybeOSRIgnition(JSFunction* function,
|
| JavaScriptFrame* frame) {
|
| - if (!FLAG_ignition_osr) return false;
|
| -
|
| SharedFunctionInfo* shared = function->shared();
|
| int ticks = shared->profiler_ticks();
|
|
|
|
|