| 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 1684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1695 | 1695 |
| 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 void StubCode::GenerateBreakpointEqNullStub(Assembler* assembler) { |
| 1706 // TODO(hausner): implement this stub. |
| 1707 __ Branch(&StubCode::EqualityWithNullArgLabel()); |
| 1708 } |
| 1705 | 1709 |
| 1706 void StubCode::GenerateBreakpointClosureStub(Assembler* assembler) { | 1710 void StubCode::GenerateBreakpointClosureStub(Assembler* assembler) { |
| 1707 // TODO(hausner): implement this stub. | 1711 // TODO(hausner): implement this stub. |
| 1708 __ Branch(&StubCode::CallClosureFunctionLabel()); | 1712 __ Branch(&StubCode::CallClosureFunctionLabel()); |
| 1709 } | 1713 } |
| 1710 | 1714 |
| 1711 | 1715 |
| 1712 // RA: return address (Dart code). | 1716 // RA: return address (Dart code). |
| 1713 // S4: Arguments descriptor array. | 1717 // S4: Arguments descriptor array. |
| 1714 void StubCode::GenerateBreakpointStaticStub(Assembler* assembler) { | 1718 void StubCode::GenerateBreakpointStaticStub(Assembler* assembler) { |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2140 __ Bind(&done); | 2144 __ Bind(&done); |
| 2141 __ lw(T0, Address(SP, 0 * kWordSize)); | 2145 __ lw(T0, Address(SP, 0 * kWordSize)); |
| 2142 __ lw(T1, Address(SP, 1 * kWordSize)); | 2146 __ lw(T1, Address(SP, 1 * kWordSize)); |
| 2143 __ Ret(); | 2147 __ Ret(); |
| 2144 __ delay_slot()->addiu(SP, SP, Immediate(2 * kWordSize)); | 2148 __ delay_slot()->addiu(SP, SP, Immediate(2 * kWordSize)); |
| 2145 } | 2149 } |
| 2146 | 2150 |
| 2147 } // namespace dart | 2151 } // namespace dart |
| 2148 | 2152 |
| 2149 #endif // defined TARGET_ARCH_MIPS | 2153 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |