Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 08a1339de033faa85dc487aa206b429da76d50d8..1ccf5c2a394cb125b09e9c20549dab38d2b662b1 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -978,6 +978,8 @@ MaybeHandle<Code> GetLazyCode(Handle<JSFunction> function) { |
} |
if (function->shared()->was_marked_for_optimization()) { |
+ DCHECK(FLAG_optimize_shared_functions); |
+ |
function->shared()->set_was_marked_for_optimization(false); |
if (FLAG_trace_opt) { |