Index: src/mips/codegen-mips.cc |
=================================================================== |
--- src/mips/codegen-mips.cc (revision 3980) |
+++ src/mips/codegen-mips.cc (working copy) |
@@ -81,7 +81,7 @@ |
// a1: called JS function |
// cp: callee's context |
-void CodeGenerator::Generate(CompilationInfo* info, Mode mode) { |
+void CodeGenerator::Generate(CompilationInfo* infomode) { |
UNIMPLEMENTED_MIPS(); |
} |
@@ -467,6 +467,34 @@ |
void JSEntryStub::GenerateBody(MacroAssembler* masm, bool is_construct) { |
UNIMPLEMENTED_MIPS(); |
+ |
+ // Save callee saved registers on the stack. |
+ __ MultiPush(kCalleeSaved | ra.bit()); |
+ |
+ // ********** State ********** |
+ // |
+ // * Registers: |
+ // a0: entry_address |
+ // a1: function |
+ // a2: reveiver_pointer |
+ // a3: argc |
+ // |
+ // * Stack: |
+ // --------------------------- |
+ // args |
+ // --------------------------- |
+ // 4 args slots |
+ // --------------------------- |
+ // callee saved registers + ra |
+ // --------------------------- |
+ // |
+ // *************************** |
+ |
+ __ break_(0x1234); |
+ |
+ // Restore callee saved registers from the stack. |
+ __ MultiPop(kCalleeSaved | ra.bit()); |
+ |
// Load a result. |
__ li(v0, Operand(0x1234)); |
__ jr(ra); |