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

Unified Diff: src/compiler.cc

Issue 2575333003: [Complier] Only optimize a function marked for tier-up if it is compiled. (Closed)
Patch Set: Created 4 years 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 | test/mjsunit/regress/regress-673242.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index b8fbbcfa2c31dea9d7fc002d6dcc7389d096ee65..7e2eec90e44938e24a109742c76e49f156aaadb9 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -880,7 +880,8 @@ MaybeHandle<Code> GetLazyCode(Handle<JSFunction> function) {
return cached_code;
}
- if (function->shared()->marked_for_tier_up()) {
+ if (function->shared()->is_compiled() &&
+ function->shared()->marked_for_tier_up()) {
DCHECK(FLAG_mark_shared_functions_for_tier_up);
function->shared()->set_marked_for_tier_up(false);
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-673242.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698