| Index: src/runtime-profiler.cc
|
| diff --git a/src/runtime-profiler.cc b/src/runtime-profiler.cc
|
| index 6f9f44ee2ad4c83de28a778609e9c6a7b8fd5b17..917771bdc5d57c069f3ead7170f7a2303a4abed1 100644
|
| --- a/src/runtime-profiler.cc
|
| +++ b/src/runtime-profiler.cc
|
| @@ -216,7 +216,14 @@ void RuntimeProfiler::MaybeOptimizeFullCodegen(JSFunction* function,
|
| SharedFunctionInfo* shared = function->shared();
|
| Code* shared_code = shared->code();
|
| if (shared_code->kind() != Code::FUNCTION) return;
|
| - if (function->IsInOptimizationQueue()) return;
|
| + if (function->IsInOptimizationQueue()) {
|
| + if (FLAG_trace_opt_verbose) {
|
| + PrintF("[function ");
|
| + function->PrintName();
|
| + PrintF(" is already in optimization queue]\n");
|
| + }
|
| + return;
|
| + }
|
|
|
| if (FLAG_always_osr) {
|
| AttemptOnStackReplacement(frame, AbstractCode::kMaxLoopNestingMarker);
|
| @@ -308,7 +315,14 @@ void RuntimeProfiler::MaybeOptimizeFullCodegen(JSFunction* function,
|
|
|
| void RuntimeProfiler::MaybeBaselineIgnition(JSFunction* function,
|
| JavaScriptFrame* frame) {
|
| - if (function->IsInOptimizationQueue()) return;
|
| + if (function->IsInOptimizationQueue()) {
|
| + if (FLAG_trace_opt_verbose) {
|
| + PrintF("[function ");
|
| + function->PrintName();
|
| + PrintF(" is already in optimization queue]\n");
|
| + }
|
| + return;
|
| + }
|
|
|
| if (FLAG_always_osr) {
|
| AttemptOnStackReplacement(frame, AbstractCode::kMaxLoopNestingMarker);
|
| @@ -334,7 +348,14 @@ void RuntimeProfiler::MaybeBaselineIgnition(JSFunction* function,
|
|
|
| void RuntimeProfiler::MaybeOptimizeIgnition(JSFunction* function,
|
| JavaScriptFrame* frame) {
|
| - if (function->IsInOptimizationQueue()) return;
|
| + if (function->IsInOptimizationQueue()) {
|
| + if (FLAG_trace_opt_verbose) {
|
| + PrintF("[function ");
|
| + function->PrintName();
|
| + PrintF(" is already in optimization queue]\n");
|
| + }
|
| + return;
|
| + }
|
|
|
| if (FLAG_always_osr) {
|
| AttemptOnStackReplacement(frame, AbstractCode::kMaxLoopNestingMarker);
|
|
|