| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/globals.h" | 5 #include "vm/globals.h" |
| 6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 7 | 7 |
| 8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
| 9 #include "vm/code_generator.h" | 9 #include "vm/code_generator.h" |
| 10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
| (...skipping 1685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1696 void StubCode::GenerateClosureCallInlineCacheStub(Assembler* assembler) { | 1696 void StubCode::GenerateClosureCallInlineCacheStub(Assembler* assembler) { |
| 1697 GenerateNArgsCheckInlineCacheStub(assembler, 1); | 1697 GenerateNArgsCheckInlineCacheStub(assembler, 1); |
| 1698 } | 1698 } |
| 1699 | 1699 |
| 1700 | 1700 |
| 1701 void StubCode::GenerateMegamorphicCallStub(Assembler* assembler) { | 1701 void StubCode::GenerateMegamorphicCallStub(Assembler* assembler) { |
| 1702 GenerateNArgsCheckInlineCacheStub(assembler, 1); | 1702 GenerateNArgsCheckInlineCacheStub(assembler, 1); |
| 1703 } | 1703 } |
| 1704 | 1704 |
| 1705 | 1705 |
| 1706 void StubCode::GenerateBreakpointClosureStub(Assembler* assembler) { |
| 1707 // TODO(hausner): implement this stub. |
| 1708 __ Branch(&StubCode::CallClosureFunctionLabel()); |
| 1709 } |
| 1710 |
| 1711 |
| 1706 // RA: return address (Dart code). | 1712 // RA: return address (Dart code). |
| 1707 // S4: Arguments descriptor array. | 1713 // S4: Arguments descriptor array. |
| 1708 void StubCode::GenerateBreakpointStaticStub(Assembler* assembler) { | 1714 void StubCode::GenerateBreakpointStaticStub(Assembler* assembler) { |
| 1709 __ TraceSimMsg("BreakpointStaticStub"); | 1715 __ TraceSimMsg("BreakpointStaticStub"); |
| 1710 // Create a stub frame as we are pushing some objects on the stack before | 1716 // Create a stub frame as we are pushing some objects on the stack before |
| 1711 // calling into the runtime. | 1717 // calling into the runtime. |
| 1712 __ EnterStubFrame(); | 1718 __ EnterStubFrame(); |
| 1713 // Preserve arguments descriptor and make room for result. | 1719 // Preserve arguments descriptor and make room for result. |
| 1714 __ addiu(SP, SP, Immediate(-2 * kWordSize)); | 1720 __ addiu(SP, SP, Immediate(-2 * kWordSize)); |
| 1715 __ sw(S4, Address(SP, 1 * kWordSize)); | 1721 __ sw(S4, Address(SP, 1 * kWordSize)); |
| (...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2133 __ Bind(&done); | 2139 __ Bind(&done); |
| 2134 __ lw(T0, Address(SP, 0 * kWordSize)); | 2140 __ lw(T0, Address(SP, 0 * kWordSize)); |
| 2135 __ lw(T1, Address(SP, 1 * kWordSize)); | 2141 __ lw(T1, Address(SP, 1 * kWordSize)); |
| 2136 __ Ret(); | 2142 __ Ret(); |
| 2137 __ delay_slot()->addiu(SP, SP, Immediate(2 * kWordSize)); | 2143 __ delay_slot()->addiu(SP, SP, Immediate(2 * kWordSize)); |
| 2138 } | 2144 } |
| 2139 | 2145 |
| 2140 } // namespace dart | 2146 } // namespace dart |
| 2141 | 2147 |
| 2142 #endif // defined TARGET_ARCH_MIPS | 2148 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |