Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 482392a38c38b64f162cc24d5ea711fa1afd73d3..3941d754d4159c7939c41aad1dfd60e9f8986789 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -973,7 +973,8 @@ MaybeHandle<Code> GetLazyCode(Handle<JSFunction> function) { |
return cached_code; |
} |
- if (function->shared()->was_marked_for_optimization()) { |
+ if (FLAG_mark_shared_functions && |
+ function->shared()->was_marked_for_optimization()) { |
Michael Starzinger
2016/10/25 10:38:24
nit: This should actually never happen when the fl
Leszek Swirski
2016/10/25 10:56:10
Good point, done.
|
function->shared()->set_was_marked_for_optimization(false); |
if (FLAG_trace_opt) { |