Index: runtime/vm/intermediate_language_arm64.cc |
=================================================================== |
--- runtime/vm/intermediate_language_arm64.cc (revision 44874) |
+++ runtime/vm/intermediate_language_arm64.cc (working copy) |
@@ -5090,7 +5090,9 @@ |
licm_hoisted_ ? ICData::kHoisted : 0); |
if (IsNullCheck()) { |
__ CompareObject(locs()->in(0).reg(), Object::null_object(), PP); |
- __ b(deopt, EQ); |
+ ASSERT(DeoptIfNull() || DeoptIfNotNull()); |
+ Condition cond = DeoptIfNull() ? EQ : NE; |
+ __ b(deopt, cond); |
return; |
} |