| Index: src/runtime-profiler.cc
|
| diff --git a/src/runtime-profiler.cc b/src/runtime-profiler.cc
|
| index ab76cc90649901d3f562de3f94c973ba1661e254..59d12d393c7cc464e413fbbfd3941a2fbc2cbb2f 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);
|
|
|
|
|