Chromium Code Reviews| Index: runtime/vm/stub_code_mips.cc |
| =================================================================== |
| --- runtime/vm/stub_code_mips.cc (revision 28057) |
| +++ runtime/vm/stub_code_mips.cc (working copy) |
| @@ -2000,7 +2000,22 @@ |
| void StubCode::GenerateBreakpointRuntimeStub(Assembler* assembler) { |
| - __ Unimplemented("BreakpointRuntime stub"); |
| + __ Comment("BreakpointRuntime stub"); |
| + __ EnterStubFrame(); |
| + __ addiu(SP, SP, Immediate(-3 * kWordSize)); |
| + __ sw(S5, Address(SP, 2 * kWordSize)); |
|
Florian Schneider
2013/09/30 18:57:59
The ARM assembler has macros PushList/PopList. Wou
zra
2013/09/30 20:17:15
We have the macro on ARM because there is a conven
|
| + __ sw(S4, Address(SP, 1 * kWordSize)); |
| + __ LoadImmediate(TMP, reinterpret_cast<intptr_t>(Object::null())); |
| + __ sw(TMP, Address(SP, 0 * kWordSize)); |
| + |
| + __ CallRuntime(kBreakpointRuntimeHandlerRuntimeEntry, 0); |
| + |
| + __ lw(S5, Address(SP, 2 * kWordSize)); |
| + __ lw(S4, Address(SP, 1 * kWordSize)); |
| + __ lw(T0, Address(SP, 0 * kWordSize)); |
| + __ addiu(SP, SP, Immediate(3 * kWordSize)); |
| + __ LeaveStubFrame(); |
| + __ jr(T0); |
| } |