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

Unified Diff: runtime/vm/assembler_mips.h

Issue 13722022: Adds macros to the MIPS assembler for detecting overflow. (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 | « no previous file | runtime/vm/assembler_mips.cc » ('j') | runtime/vm/assembler_mips.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_mips.h
===================================================================
--- runtime/vm/assembler_mips.h (revision 20999)
+++ runtime/vm/assembler_mips.h (working copy)
@@ -506,6 +506,16 @@
// Macros in alphabetical order.
+ // Addition of rs and rt with the result placed in rd.
+ // After, ro < 0 if there was signed overflow, ro >= 0 otherwise.
+ // Clobbers TMP.
+ // Clobbers T9 if rd, rs, rt are the same register.
+ void AdduDetectOverflow(Register rd, Register rs, Register rt, Register ro);
+
+ // Loads the immediate value into T8, and calls AdduDetectOverflow.
+ void AddiuDetectOverflow(Register rt, Register rs, const Immediate& imm,
+ Register ro);
+
void Branch(const ExternalLabel* label) {
LoadImmediate(TMP, label->address());
jr(TMP);
« no previous file with comments | « no previous file | runtime/vm/assembler_mips.cc » ('j') | runtime/vm/assembler_mips.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698