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

Unified Diff: runtime/vm/simulator_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/intermediate_language_mips.cc ('k') | runtime/vm/stub_code_mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/simulator_mips.cc
===================================================================
--- runtime/vm/simulator_mips.cc (revision 23188)
+++ runtime/vm/simulator_mips.cc (working copy)
@@ -1762,6 +1762,20 @@
}
break;
}
+ case SLTI: {
+ // Format(instr, "slti 'rt, 'rs, 'imms");
+ int32_t rs_val = get_register(instr->RsField());
+ int32_t imm_val = instr->SImmField();
+ set_register(instr->RtField(), rs_val < imm_val ? 1 : 0);
+ break;
+ }
+ case SLTIU: {
+ // Format(instr, "slti 'rt, 'rs, 'immu");
+ uint32_t rs_val = get_register(instr->RsField());
+ uint32_t imm_val = instr->UImmField();
+ set_register(instr->RtField(), rs_val < imm_val ? 1 : 0);
+ break;
+ }
case SDC1: {
// Format(instr, "sdc1 'ft, 'imms('rs)");
int32_t base_val = get_register(instr->RsField());
« no previous file with comments | « runtime/vm/intermediate_language_mips.cc ('k') | runtime/vm/stub_code_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698