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

Unified Diff: runtime/vm/assembler_mips.h

Issue 13884017: Adds support for UseDartApi vm test on MIPS. (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
« no previous file with comments | « runtime/tests/vm/vm.status ('k') | runtime/vm/assembler_mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_mips.h
===================================================================
--- runtime/vm/assembler_mips.h (revision 21386)
+++ runtime/vm/assembler_mips.h (working copy)
@@ -553,6 +553,12 @@
EmitFpuLoadStore(SWC1, ft, addr);
}
+ void xori(Register rt, Register rs, const Immediate& imm) {
+ ASSERT(Utils::IsUint(kImmBits, imm.value()));
+ const uint16_t imm_value = static_cast<uint16_t>(imm.value());
+ EmitIType(XORI, rs, rt, imm_value);
+ }
+
void xor_(Register rd, Register rs, Register rt) {
EmitRType(SPECIAL, rs, rt, rd, 0, XOR);
}
@@ -573,6 +579,20 @@
AdduDetectOverflow(rd, rs, rd, ro);
}
+ // Subtraction of rt from rs (rs - rt) with the result placed in rd.
+ // After, ro < 0 if there was signed overflow, ro >= 0 otherwise.
+ // None of rd, rs, rt, or ro may be TMP1.
+ // ro must be different from the other registers.
+ void SubuDetectOverflow(Register rd, Register rs, Register rt, Register ro);
+
+ // ro must be different from rd and rs.
+ // None of rd, rs, rt, or ro may be TMP1.
+ void SubImmediateDetectOverflow(Register rd, Register rs, int32_t imm,
+ Register ro) {
+ LoadImmediate(rd, imm);
+ SubuDetectOverflow(rd, rs, rd, ro);
+ }
+
void Branch(const ExternalLabel* label) {
LoadImmediate(TMP1, label->address());
jr(TMP1);
« no previous file with comments | « runtime/tests/vm/vm.status ('k') | runtime/vm/assembler_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698