Index: runtime/vm/flow_graph_compiler_mips.cc |
diff --git a/runtime/vm/flow_graph_compiler_mips.cc b/runtime/vm/flow_graph_compiler_mips.cc |
index a8e408e31d93e40fc30e09c45b25aed365a26485..afaf6bce035cf54789df184b1758dadc0f5b1d29 100644 |
--- a/runtime/vm/flow_graph_compiler_mips.cc |
+++ b/runtime/vm/flow_graph_compiler_mips.cc |
@@ -1557,7 +1557,6 @@ int FlowGraphCompiler::EmitTestAndCallCheckCid(Label* next_label, |
const CidRange& range, |
int bias) { |
intptr_t cid_start = range.cid_start; |
- intptr_t cid_end = range.cid_end; |
if (range.IsSingleCid()) { |
__ BranchNotEqual(T2, Immediate(cid_start - bias), next_label); |
} else { |
@@ -1565,7 +1564,7 @@ int FlowGraphCompiler::EmitTestAndCallCheckCid(Label* next_label, |
bias = cid_start; |
// TODO(erikcorry): We should use sltiu instead of the temporary TMP if |
// the range is small enough. |
- __ LoadImmediate(TMP, cid_end - cid_end); |
kustermann
2017/05/19 07:59:42
end - end :)
|
+ __ LoadImmediate(TMP, range.Extent()); |
// Reverse comparison so we get 1 if biased cid > tmp ie cid is out of |
// range. |
__ sltu(TMP, TMP, T2); |