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

Unified Diff: runtime/vm/assembler_mips.cc

Issue 16022011: Enables optimization on MIPS (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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/assembler_mips.h ('k') | runtime/vm/assembler_mips_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_mips.cc
===================================================================
--- runtime/vm/assembler_mips.cc (revision 23188)
+++ runtime/vm/assembler_mips.cc (working copy)
@@ -204,10 +204,14 @@
}
-void Assembler::CompareObject(Register rd, Register rn, const Object& object) {
+void Assembler::CompareObject(Register rd1, Register rd2,
+ Register rn, const Object& object) {
ASSERT(rn != TMP1);
+ ASSERT(rd1 != TMP1);
+ ASSERT(rd1 != rd2);
LoadObject(TMP1, object);
- subu(rd, rn, TMP1);
+ slt(rd1, rn, TMP1);
+ slt(rd2, TMP1, rn);
}
« no previous file with comments | « runtime/vm/assembler_mips.h ('k') | runtime/vm/assembler_mips_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698