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); |