Index: runtime/vm/intermediate_language_arm.cc |
=================================================================== |
--- runtime/vm/intermediate_language_arm.cc (revision 44874) |
+++ runtime/vm/intermediate_language_arm.cc (working copy) |
@@ -5939,7 +5939,9 @@ |
if (IsNullCheck()) { |
__ CompareImmediate(locs()->in(0).reg(), |
reinterpret_cast<intptr_t>(Object::null())); |
- __ b(deopt, EQ); |
+ ASSERT(DeoptIfNull() || DeoptIfNotNull()); |
+ Condition cond = DeoptIfNull() ? EQ : NE; |
+ __ b(deopt, cond); |
return; |
} |