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

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

Issue 390223003: Revert r38216 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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_arm64.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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 kNativeCall 119 kNativeCall
120 }; 120 };
121 static uword RedirectExternalReference(uword function, 121 static uword RedirectExternalReference(uword function,
122 CallKind call_kind, 122 CallKind call_kind,
123 int argument_count); 123 int argument_count);
124 124
125 void Longjmp(uword pc, 125 void Longjmp(uword pc,
126 uword sp, 126 uword sp,
127 uword fp, 127 uword fp,
128 RawObject* raw_exception, 128 RawObject* raw_exception,
129 RawObject* raw_stacktrace, 129 RawObject* raw_stacktrace);
130 Isolate* isolate);
131 130
132 private: 131 private:
133 // A pc value used to signal the simulator to stop execution. Generally 132 // A pc value used to signal the simulator to stop execution. Generally
134 // the ra is set to this value on transition from native C code to 133 // the ra is set to this value on transition from native C code to
135 // simulated execution, so that the simulator can "return" to the native 134 // simulated execution, so that the simulator can "return" to the native
136 // C code. 135 // C code.
137 static const uword kEndSimulatingPC = -1; 136 static const uword kEndSimulatingPC = -1;
138 137
139 // Special registers for the results of div, divu. 138 // Special registers for the results of div, divu.
140 int32_t hi_reg_; 139 int32_t hi_reg_;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 } 210 }
212 211
213 friend class SimulatorDebugger; 212 friend class SimulatorDebugger;
214 friend class SimulatorSetjmpBuffer; 213 friend class SimulatorSetjmpBuffer;
215 DISALLOW_COPY_AND_ASSIGN(Simulator); 214 DISALLOW_COPY_AND_ASSIGN(Simulator);
216 }; 215 };
217 216
218 } // namespace dart 217 } // namespace dart
219 218
220 #endif // VM_SIMULATOR_MIPS_H_ 219 #endif // VM_SIMULATOR_MIPS_H_
OLDNEW
« no previous file with comments | « runtime/vm/simulator_arm64.cc ('k') | runtime/vm/simulator_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698