| 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 1876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1887 // A2: cache array. | 1887 // A2: cache array. |
| 1888 // Result in V0: null -> not found, otherwise result (true or false). | 1888 // Result in V0: null -> not found, otherwise result (true or false). |
| 1889 void StubCode::GenerateSubtype3TestCacheStub(Assembler* assembler) { | 1889 void StubCode::GenerateSubtype3TestCacheStub(Assembler* assembler) { |
| 1890 GenerateSubtypeNTestCacheStub(assembler, 3); | 1890 GenerateSubtypeNTestCacheStub(assembler, 3); |
| 1891 } | 1891 } |
| 1892 | 1892 |
| 1893 | 1893 |
| 1894 // Return the current stack pointer address, used to stack alignment | 1894 // Return the current stack pointer address, used to stack alignment |
| 1895 // checks. | 1895 // checks. |
| 1896 void StubCode::GenerateGetStackPointerStub(Assembler* assembler) { | 1896 void StubCode::GenerateGetStackPointerStub(Assembler* assembler) { |
| 1897 __ Unimplemented("GetStackPointer Stub"); | 1897 __ Ret(); |
| 1898 __ delay_slot()->mov(V0, SP); |
| 1898 } | 1899 } |
| 1899 | 1900 |
| 1900 | 1901 |
| 1901 // Jump to the exception or error handler. | 1902 // Jump to the exception or error handler. |
| 1902 // RA: return address. | 1903 // RA: return address. |
| 1903 // A0: program_counter. | 1904 // A0: program_counter. |
| 1904 // A1: stack_pointer. | 1905 // A1: stack_pointer. |
| 1905 // A2: frame_pointer. | 1906 // A2: frame_pointer. |
| 1906 // A3: error object. | 1907 // A3: error object. |
| 1907 // SP: address of stacktrace object. | 1908 // SP: address of stacktrace object. |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2139 __ Bind(&done); | 2140 __ Bind(&done); |
| 2140 __ lw(T0, Address(SP, 0 * kWordSize)); | 2141 __ lw(T0, Address(SP, 0 * kWordSize)); |
| 2141 __ lw(T1, Address(SP, 1 * kWordSize)); | 2142 __ lw(T1, Address(SP, 1 * kWordSize)); |
| 2142 __ Ret(); | 2143 __ Ret(); |
| 2143 __ delay_slot()->addiu(SP, SP, Immediate(2 * kWordSize)); | 2144 __ delay_slot()->addiu(SP, SP, Immediate(2 * kWordSize)); |
| 2144 } | 2145 } |
| 2145 | 2146 |
| 2146 } // namespace dart | 2147 } // namespace dart |
| 2147 | 2148 |
| 2148 #endif // defined TARGET_ARCH_MIPS | 2149 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |