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

Unified Diff: runtime/vm/stub_code_mips.cc

Issue 14556002: Uses slt and sltu for signed vs. unsigned comparison by the MIPS assembler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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
« runtime/vm/assembler_mips.h ('K') | « runtime/vm/intermediate_language_mips.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_mips.cc
===================================================================
--- runtime/vm/stub_code_mips.cc (revision 22132)
+++ runtime/vm/stub_code_mips.cc (working copy)
@@ -286,7 +286,7 @@
__ AddImmediate(T2, kWordSize);
__ Bind(&loop_condition);
__ AddImmediate(A1, -Smi::RawValue(1)); // A1 is Smi.
- __ BranchGreaterEqual(A1, ZR, &loop);
+ __ BranchSignedGreaterEqual(A1, ZR, &loop);
}
@@ -806,7 +806,7 @@
__ lw(A3, Address(A2));
__ Push(A3);
__ addiu(A1, A1, Immediate(1));
- __ BranchLess(A1, T1, &push_arguments);
+ __ BranchSignedLess(A1, T1, &push_arguments);
__ delay_slot()->addiu(A2, A2, Immediate(kWordSize));
__ Bind(&done_push_arguments);
@@ -1403,7 +1403,8 @@
Label is_hot;
if (FlowGraphCompiler::CanOptimize()) {
ASSERT(FLAG_optimization_counter_threshold > 1);
- __ BranchGreaterEqual(T7, FLAG_optimization_counter_threshold, &is_hot);
+ __ BranchSignedGreaterEqual(T7, FLAG_optimization_counter_threshold,
+ &is_hot);
// As long as VM has no OSR do not optimize in the middle of the function
// but only at exit so that we have collected all type feedback before
// optimizing.
« runtime/vm/assembler_mips.h ('K') | « runtime/vm/intermediate_language_mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698