Index: runtime/vm/intermediate_language_dbc.cc |
diff --git a/runtime/vm/intermediate_language_dbc.cc b/runtime/vm/intermediate_language_dbc.cc |
index 06c483dec102ccc091e35d5e0988ac27a1063eb0..19f4e6c02186b3c011d591d14a5805a958dfedf2 100644 |
--- a/runtime/vm/intermediate_language_dbc.cc |
+++ b/runtime/vm/intermediate_language_dbc.cc |
@@ -482,6 +482,26 @@ static void EmitBranchOnCondition(FlowGraphCompiler* compiler, |
} |
+Condition SmiRangeComparisonInstr::GetNextInstructionCondition( |
+ FlowGraphCompiler* compiler, |
+ BranchLabels labels) { |
+ return is_negated() ? NEXT_IS_TRUE : NEXT_IS_FALSE; |
+} |
+ |
+ |
+Condition SmiRangeComparisonInstr::EmitComparisonCode( |
+ FlowGraphCompiler* compiler, |
+ BranchLabels labels) { |
+ __ CheckClassIdRange(locs()->in(0).reg(), |
+ compiler->ToEmbeddableCid(from_, this)); |
+ __ Nop(to_ - from_); |
+ return is_negated() ? NEXT_IS_TRUE : NEXT_IS_FALSE; |
+} |
+ |
+ |
+DEFINE_MAKE_LOCATION_SUMMARY(SmiRangeComparison, 1) |
+ |
+ |
Condition StrictCompareInstr::GetNextInstructionCondition( |
FlowGraphCompiler* compiler, |
BranchLabels labels) { |