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

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

Issue 13874010: Merge JumpToErrorHandler and JumpToExceptionHandler stubs on all architectures. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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/stub_code_ia32.cc ('k') | runtime/vm/stub_code_x64.cc » ('j') | 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/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « runtime/vm/stub_code_ia32.cc ('k') | runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698