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

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

Issue 17131002: Enables language 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/runtime_entry_mips.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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 int64_t Call(int32_t entry, 99 int64_t Call(int32_t entry,
100 int32_t parameter0, 100 int32_t parameter0,
101 int32_t parameter1, 101 int32_t parameter1,
102 int32_t parameter2, 102 int32_t parameter2,
103 int32_t parameter3); 103 int32_t parameter3);
104 104
105 // Runtime and native call support. 105 // Runtime and native call support.
106 enum CallKind { 106 enum CallKind {
107 kRuntimeCall, 107 kRuntimeCall,
108 kLeafRuntimeCall, 108 kLeafRuntimeCall,
109 kLeafFloatRuntimeCall,
109 kNativeCall 110 kNativeCall
110 }; 111 };
111 static uword RedirectExternalReference(uword function, CallKind call_kind); 112 static uword RedirectExternalReference(uword function,
113 CallKind call_kind,
114 int argument_count);
112 115
113 void Longjmp(uword pc, 116 void Longjmp(uword pc,
114 uword sp, 117 uword sp,
115 uword fp, 118 uword fp,
116 RawObject* raw_exception, 119 RawObject* raw_exception,
117 RawObject* raw_stacktrace); 120 RawObject* raw_stacktrace);
118 121
119 private: 122 private:
120 // A pc value used to signal the simulator to stop execution. Generally 123 // A pc value used to signal the simulator to stop execution. Generally
121 // the ra is set to this value on transition from native C code to 124 // the ra is set to this value on transition from native C code to
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 } 201 }
199 202
200 friend class SimulatorDebugger; 203 friend class SimulatorDebugger;
201 friend class SimulatorSetjmpBuffer; 204 friend class SimulatorSetjmpBuffer;
202 DISALLOW_COPY_AND_ASSIGN(Simulator); 205 DISALLOW_COPY_AND_ASSIGN(Simulator);
203 }; 206 };
204 207
205 } // namespace dart 208 } // namespace dart
206 209
207 #endif // VM_SIMULATOR_MIPS_H_ 210 #endif // VM_SIMULATOR_MIPS_H_
OLDNEW
« no previous file with comments | « runtime/vm/runtime_entry_mips.cc ('k') | runtime/vm/simulator_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698