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

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

Issue 13884017: Adds support for UseDartApi vm test on MIPS. (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
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 966 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 void StubCode::GenerateJumpToErrorHandlerStub(Assembler* assembler) { 977 void StubCode::GenerateJumpToErrorHandlerStub(Assembler* assembler) {
978 __ Unimplemented("JumpToErrorHandler Stub"); 978 __ Unimplemented("JumpToErrorHandler Stub");
979 } 979 }
980 980
981 981
982 void StubCode::GenerateEqualityWithNullArgStub(Assembler* assembler) { 982 void StubCode::GenerateEqualityWithNullArgStub(Assembler* assembler) {
983 __ Unimplemented("EqualityWithNullArg Stub"); 983 __ Unimplemented("EqualityWithNullArg Stub");
984 } 984 }
985 985
986 986
987 // Calls to the runtime to optimize the given function.
988 // T0: function to be reoptimized.
989 // S4: argument descriptor (preserved).
987 void StubCode::GenerateOptimizeFunctionStub(Assembler* assembler) { 990 void StubCode::GenerateOptimizeFunctionStub(Assembler* assembler) {
988 __ Unimplemented("OptimizeFunction Stub"); 991 __ EnterStubFrame();
992 __ Push(S4);
993 __ LoadImmediate(TMP, reinterpret_cast<intptr_t>(Object::null()));
994 __ Push(TMP); // Setup space on stack for return value.
995 __ Push(T0);
996 __ CallRuntime(kOptimizeInvokedFunctionRuntimeEntry);
997 __ Pop(T0); // Discard argument.
998 __ Pop(T0); // Get Code object
999 __ Pop(S4); // Restore argument descriptor.
1000 __ lw(T0, FieldAddress(T0, Code::instructions_offset()));
1001 __ AddImmediate(T0, Instructions::HeaderSize() - kHeapObjectTag);
1002 __ LeaveStubFrame();
1003 __ jr(T0);
1004 __ break_(0);
989 } 1005 }
990 1006
991 1007
992 DECLARE_LEAF_RUNTIME_ENTRY(intptr_t, 1008 DECLARE_LEAF_RUNTIME_ENTRY(intptr_t,
993 BigintCompare, 1009 BigintCompare,
994 RawBigint* left, 1010 RawBigint* left,
995 RawBigint* right); 1011 RawBigint* right);
996 1012
997 1013
998 // Does identical check (object references are equal or not equal) with special 1014 // Does identical check (object references are equal or not equal) with special
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
1085 __ Bind(&done); 1101 __ Bind(&done);
1086 __ lw(T0, Address(SP, 0 * kWordSize)); 1102 __ lw(T0, Address(SP, 0 * kWordSize));
1087 __ lw(T1, Address(SP, 1 * kWordSize)); 1103 __ lw(T1, Address(SP, 1 * kWordSize));
1088 __ Ret(); 1104 __ Ret();
1089 __ delay_slot()->addiu(SP, SP, Immediate(2 * kWordSize)); 1105 __ delay_slot()->addiu(SP, SP, Immediate(2 * kWordSize));
1090 } 1106 }
1091 1107
1092 } // namespace dart 1108 } // namespace dart
1093 1109
1094 #endif // defined TARGET_ARCH_MIPS 1110 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« runtime/vm/intermediate_language_mips.cc ('K') | « runtime/vm/simulator_mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698