| 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/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1008 } | 1008 } |
| 1009 | 1009 |
| 1010 | 1010 |
| 1011 // Return the current stack pointer address, used to stack alignment | 1011 // Return the current stack pointer address, used to stack alignment |
| 1012 // checks. | 1012 // checks. |
| 1013 void StubCode::GenerateGetStackPointerStub(Assembler* assembler) { | 1013 void StubCode::GenerateGetStackPointerStub(Assembler* assembler) { |
| 1014 __ Unimplemented("GetStackPointer Stub"); | 1014 __ Unimplemented("GetStackPointer Stub"); |
| 1015 } | 1015 } |
| 1016 | 1016 |
| 1017 | 1017 |
| 1018 // Jump to the exception handler. | 1018 // Jump to the exception or error handler. |
| 1019 // No Result. | 1019 // No Result. |
| 1020 void StubCode::GenerateJumpToExceptionHandlerStub(Assembler* assembler) { | 1020 void StubCode::GenerateJumpToExceptionHandlerStub(Assembler* assembler) { |
| 1021 __ Unimplemented("JumpToExceptionHandler Stub"); | 1021 __ Unimplemented("JumpToExceptionHandler Stub"); |
| 1022 } | 1022 } |
| 1023 | 1023 |
| 1024 | 1024 |
| 1025 // Jump to the error handler. | |
| 1026 // No Result. | |
| 1027 void StubCode::GenerateJumpToErrorHandlerStub(Assembler* assembler) { | |
| 1028 __ Unimplemented("JumpToErrorHandler Stub"); | |
| 1029 } | |
| 1030 | |
| 1031 | |
| 1032 void StubCode::GenerateEqualityWithNullArgStub(Assembler* assembler) { | 1025 void StubCode::GenerateEqualityWithNullArgStub(Assembler* assembler) { |
| 1033 __ Unimplemented("EqualityWithNullArg Stub"); | 1026 __ Unimplemented("EqualityWithNullArg Stub"); |
| 1034 } | 1027 } |
| 1035 | 1028 |
| 1036 | 1029 |
| 1037 // Calls to the runtime to optimize the given function. | 1030 // Calls to the runtime to optimize the given function. |
| 1038 // T0: function to be reoptimized. | 1031 // T0: function to be reoptimized. |
| 1039 // S4: argument descriptor (preserved). | 1032 // S4: argument descriptor (preserved). |
| 1040 void StubCode::GenerateOptimizeFunctionStub(Assembler* assembler) { | 1033 void StubCode::GenerateOptimizeFunctionStub(Assembler* assembler) { |
| 1041 __ EnterStubFrame(); | 1034 __ EnterStubFrame(); |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1151 __ Bind(&done); | 1144 __ Bind(&done); |
| 1152 __ lw(T0, Address(SP, 0 * kWordSize)); | 1145 __ lw(T0, Address(SP, 0 * kWordSize)); |
| 1153 __ lw(T1, Address(SP, 1 * kWordSize)); | 1146 __ lw(T1, Address(SP, 1 * kWordSize)); |
| 1154 __ Ret(); | 1147 __ Ret(); |
| 1155 __ delay_slot()->addiu(SP, SP, Immediate(2 * kWordSize)); | 1148 __ delay_slot()->addiu(SP, SP, Immediate(2 * kWordSize)); |
| 1156 } | 1149 } |
| 1157 | 1150 |
| 1158 } // namespace dart | 1151 } // namespace dart |
| 1159 | 1152 |
| 1160 #endif // defined TARGET_ARCH_MIPS | 1153 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |