Index: runtime/vm/raw_object.cc |
=================================================================== |
--- runtime/vm/raw_object.cc (revision 31995) |
+++ runtime/vm/raw_object.cc (working copy) |
@@ -389,7 +389,7 @@ |
if (!code.IsNull() && // The function may not have code. |
!code.is_optimized() && |
(fn.CurrentCode() == fn.unoptimized_code()) && |
- !fn.HasBreakpoint() && |
+ !code.HasBreakpoint() && |
(fn.usage_counter() >= 0)) { |
fn.set_usage_counter(fn.usage_counter() / 2); |
if (FLAG_always_drop_code || (fn.usage_counter() == 0)) { |