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

Unified Diff: runtime/vm/stub_code_mips.cc

Issue 14289006: Implements catch 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
« runtime/vm/constants_mips.h ('K') | « runtime/vm/stub_code_arm.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_mips.cc
===================================================================
--- runtime/vm/stub_code_mips.cc (revision 21890)
+++ runtime/vm/stub_code_mips.cc (working copy)
@@ -595,8 +595,8 @@
__ sw(T0, Address(SP, 1 * kWordSize));
__ sw(T1, Address(SP, 0 * kWordSize));
- // after the call, The stack pointer is restored to this location.
- // Pushed A3, S0-7, S4, S5 = 11.
+ // After the call, The stack pointer is restored to this location.
+ // Pushed A3, S0-7, T0, T1 = 11.
const intptr_t kSavedContextOffsetInEntryFrame = -11 * kWordSize;
// Load arguments descriptor array into S4, which is passed to Dart code.
@@ -652,7 +652,7 @@
Register r = static_cast<Register>(i);
__ lw(r, Address(SP, (i - S0 + 3) * kWordSize));
}
- __ lw(A3, Address(SP));
+ __ lw(A3, Address(SP, 2 * kWordSize));
__ addiu(SP, SP, Immediate((3 + kAbiPreservedCpuRegCount) * kWordSize));
// Restore the frame pointer and return.
@@ -1603,11 +1603,11 @@
// SP: address of stacktrace object.
// Does not return.
void StubCode::GenerateJumpToExceptionHandlerStub(Assembler* assembler) {
- ASSERT(kExceptionObjectReg == A0);
+ ASSERT(kExceptionObjectReg == V0);
ASSERT(kStackTraceObjectReg == A1);
__ mov(TMP1, A1); // Stack pointer.
- __ mov(RA, A0); // Program counter.
- __ mov(A0, A3); // Exception object.
+ __ mov(RA, V0); // Program counter.
+ __ mov(V0, A3); // Exception object.
__ lw(A1, Address(SP, 0)); // StackTrace object.
__ mov(FP, A2); // Frame_pointer.
__ mov(SP, TMP1); // Stack pointer.
« runtime/vm/constants_mips.h ('K') | « runtime/vm/stub_code_arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698