Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1318)

Side by Side Diff: runtime/vm/stub_code_mips.cc

Issue 14672037: Implements FPU compare and branching for MIPS simulator, assembler, disassembler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/simulator_mips.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/simulator_mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698