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

Side by Side Diff: runtime/vm/simulator_mips.h

Issue 17502002: Enables more tests for SIMMIPS. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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_arm.cc ('k') | runtime/vm/simulator_mips.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 // Declares a Simulator for MIPS instructions if we are not generating a native 5 // Declares a Simulator for MIPS instructions if we are not generating a native
6 // MIPS binary. This Simulator allows us to run and debug MIPS code generation 6 // MIPS binary. This Simulator allows us to run and debug MIPS code generation
7 // on regular desktop machines. 7 // on regular desktop machines.
8 // Dart calls into generated code by "calling" the InvokeDartCode stub, 8 // Dart calls into generated code by "calling" the InvokeDartCode stub,
9 // which will start execution in the Simulator or forwards to the real entry 9 // which will start execution in the Simulator or forwards to the real entry
10 // on a MIPS HW platform. 10 // on a MIPS HW platform.
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 // Dart generally calls into generated code with 5 parameters. This is a 101 // Dart generally calls into generated code with 5 parameters. This is a
102 // convenience function, which sets up the simulator state and grabs the 102 // convenience function, which sets up the simulator state and grabs the
103 // result on return. When fp_return is true the return value is the D0 103 // result on return. When fp_return is true the return value is the D0
104 // floating point register. Otherwise, the return value is V1:V0. 104 // floating point register. Otherwise, the return value is V1:V0.
105 int64_t Call(int32_t entry, 105 int64_t Call(int32_t entry,
106 int32_t parameter0, 106 int32_t parameter0,
107 int32_t parameter1, 107 int32_t parameter1,
108 int32_t parameter2, 108 int32_t parameter2,
109 int32_t parameter3, 109 int32_t parameter3,
110 bool fp_return = false); 110 bool fp_return = false,
111 bool fp_args = false);
111 112
112 // Runtime and native call support. 113 // Runtime and native call support.
113 enum CallKind { 114 enum CallKind {
114 kRuntimeCall, 115 kRuntimeCall,
115 kLeafRuntimeCall, 116 kLeafRuntimeCall,
116 kLeafFloatRuntimeCall, 117 kLeafFloatRuntimeCall,
117 kNativeCall 118 kNativeCall
118 }; 119 };
119 static uword RedirectExternalReference(uword function, 120 static uword RedirectExternalReference(uword function,
120 CallKind call_kind, 121 CallKind call_kind,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 } 209 }
209 210
210 friend class SimulatorDebugger; 211 friend class SimulatorDebugger;
211 friend class SimulatorSetjmpBuffer; 212 friend class SimulatorSetjmpBuffer;
212 DISALLOW_COPY_AND_ASSIGN(Simulator); 213 DISALLOW_COPY_AND_ASSIGN(Simulator);
213 }; 214 };
214 215
215 } // namespace dart 216 } // namespace dart
216 217
217 #endif // VM_SIMULATOR_MIPS_H_ 218 #endif // VM_SIMULATOR_MIPS_H_
OLDNEW
« no previous file with comments | « runtime/vm/simulator_arm.cc ('k') | runtime/vm/simulator_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698