Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: src/runtime-profiler.cc

Issue 2450233002: Check if the frame is optimized before marking a function for optimization. (Closed)
Patch Set: removed check for FLAG_ignition_OSR from MaybeOSRIgnition. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698