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

Unified Diff: runtime/vm/assembler_mips.h

Issue 16272004: Implements intrinsics for 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 | « no previous file | 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 23484)
+++ runtime/vm/assembler_mips.h (working copy)
@@ -187,10 +187,7 @@
// Only the tags field of the object is initialized.
void TryAllocate(const Class& cls,
Label* failure,
- bool near_jump,
- Register instance_reg) {
- UNIMPLEMENTED();
- }
+ Register instance_reg);
// Debugging and bringup support.
void Stop(const char* message);
@@ -523,6 +520,14 @@
EmitFpuLoadStore(LWC1, ft, addr);
}
+ void madd(Register rs, Register rt) {
+ EmitRType(SPECIAL2, rs, rt, R0, 0, MADD);
+ }
+
+ void maddu(Register rs, Register rt) {
+ EmitRType(SPECIAL2, rs, rt, R0, 0, MADDU);
+ }
+
void mfc1(Register rt, FRegister fs) {
Emit(COP1 << kOpcodeShift |
COP1_MF << kCop1SubShift |
@@ -567,6 +572,14 @@
fs << kFsShift);
}
+ void mthi(Register rs) {
+ EmitRType(SPECIAL, rs, R0, R0, 0, MTHI);
+ }
+
+ void mtlo(Register rs) {
+ EmitRType(SPECIAL, rs, R0, R0, 0, MTLO);
+ }
+
void muld(DRegister dd, DRegister ds, DRegister dt) {
FRegister fd = static_cast<FRegister>(dd * 2);
FRegister fs = static_cast<FRegister>(ds * 2);
« no previous file with comments | « no previous file | runtime/vm/assembler_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698