Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Unified Diff: runtime/vm/flow_graph_compiler_mips.cc

Issue 2892793004: Remove unused variable (Closed)
Patch Set: x64 Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698