| 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 1869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1880 __ CallRuntime(kBreakpointRuntimeHandlerRuntimeEntry, 0); | 1880 __ CallRuntime(kBreakpointRuntimeHandlerRuntimeEntry, 0); |
| 1881 | 1881 |
| 1882 __ lw(S5, Address(SP, 1 * kWordSize)); | 1882 __ lw(S5, Address(SP, 1 * kWordSize)); |
| 1883 __ lw(T0, Address(SP, 0 * kWordSize)); | 1883 __ lw(T0, Address(SP, 0 * kWordSize)); |
| 1884 __ addiu(SP, SP, Immediate(2 * kWordSize)); | 1884 __ addiu(SP, SP, Immediate(2 * kWordSize)); |
| 1885 __ LeaveStubFrame(); | 1885 __ LeaveStubFrame(); |
| 1886 __ jr(T0); | 1886 __ jr(T0); |
| 1887 } | 1887 } |
| 1888 | 1888 |
| 1889 | 1889 |
| 1890 // S5: Contains Smi 0 (need to preserve a GC-safe value for the lazy compile | |
| 1891 // stub). | |
| 1892 // S4: Contains an arguments descriptor. | |
| 1893 void StubCode::GenerateClosureCallBreakpointStub(Assembler* assembler) { | |
| 1894 __ Comment("ClosureCallBreakpoint stub"); | |
| 1895 __ EnterStubFrame(); | |
| 1896 __ addiu(SP, SP, Immediate(-3 * kWordSize)); | |
| 1897 __ sw(S5, Address(SP, 2 * kWordSize)); | |
| 1898 __ sw(S4, Address(SP, 1 * kWordSize)); | |
| 1899 __ LoadImmediate(TMP, reinterpret_cast<intptr_t>(Object::null())); | |
| 1900 __ sw(TMP, Address(SP, 0 * kWordSize)); | |
| 1901 | |
| 1902 __ CallRuntime(kBreakpointRuntimeHandlerRuntimeEntry, 0); | |
| 1903 | |
| 1904 __ lw(S5, Address(SP, 2 * kWordSize)); | |
| 1905 __ lw(S4, Address(SP, 1 * kWordSize)); | |
| 1906 __ lw(T0, Address(SP, 0 * kWordSize)); | |
| 1907 __ addiu(SP, SP, Immediate(3 * kWordSize)); | |
| 1908 __ LeaveStubFrame(); | |
| 1909 __ jr(T0); | |
| 1910 } | |
| 1911 | |
| 1912 | |
| 1913 void StubCode::GenerateRuntimeCallBreakpointStub(Assembler* assembler) { | 1890 void StubCode::GenerateRuntimeCallBreakpointStub(Assembler* assembler) { |
| 1914 __ Comment("RuntimeCallBreakpoint stub"); | 1891 __ Comment("RuntimeCallBreakpoint stub"); |
| 1915 __ EnterStubFrame(); | 1892 __ EnterStubFrame(); |
| 1916 __ addiu(SP, SP, Immediate(-1 * kWordSize)); | 1893 __ addiu(SP, SP, Immediate(-1 * kWordSize)); |
| 1917 __ LoadImmediate(TMP, reinterpret_cast<intptr_t>(Object::null())); | 1894 __ LoadImmediate(TMP, reinterpret_cast<intptr_t>(Object::null())); |
| 1918 __ sw(TMP, Address(SP, 0 * kWordSize)); | 1895 __ sw(TMP, Address(SP, 0 * kWordSize)); |
| 1919 | 1896 |
| 1920 __ CallRuntime(kBreakpointRuntimeHandlerRuntimeEntry, 0); | 1897 __ CallRuntime(kBreakpointRuntimeHandlerRuntimeEntry, 0); |
| 1921 | 1898 |
| 1922 __ lw(T0, Address(SP, 0 * kWordSize)); | 1899 __ lw(T0, Address(SP, 0 * kWordSize)); |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2317 // Result: | 2294 // Result: |
| 2318 // T1: entry point. | 2295 // T1: entry point. |
| 2319 void StubCode::GenerateMegamorphicLookupStub(Assembler* assembler) { | 2296 void StubCode::GenerateMegamorphicLookupStub(Assembler* assembler) { |
| 2320 EmitMegamorphicLookup(assembler, T0, T1, T1); | 2297 EmitMegamorphicLookup(assembler, T0, T1, T1); |
| 2321 __ Ret(); | 2298 __ Ret(); |
| 2322 } | 2299 } |
| 2323 | 2300 |
| 2324 } // namespace dart | 2301 } // namespace dart |
| 2325 | 2302 |
| 2326 #endif // defined TARGET_ARCH_MIPS | 2303 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |