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

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

Issue 2374173002: Revert "Pass new pool pointer to the JumpToException stub instead of reloading in through the frame… (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « runtime/vm/simulator_dbc.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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 }; 139 };
140 static uword RedirectExternalReference(uword function, 140 static uword RedirectExternalReference(uword function,
141 CallKind call_kind, 141 CallKind call_kind,
142 int argument_count); 142 int argument_count);
143 143
144 static uword FunctionForRedirect(uword redirect); 144 static uword FunctionForRedirect(uword redirect);
145 145
146 void Longjmp(uword pc, 146 void Longjmp(uword pc,
147 uword sp, 147 uword sp,
148 uword fp, 148 uword fp,
149 uword pp,
150 RawObject* raw_exception, 149 RawObject* raw_exception,
151 RawObject* raw_stacktrace, 150 RawObject* raw_stacktrace,
152 Thread* thread); 151 Thread* thread);
153 152
154 private: 153 private:
155 // A pc value used to signal the simulator to stop execution. Generally 154 // A pc value used to signal the simulator to stop execution. Generally
156 // the ra is set to this value on transition from native C code to 155 // the ra is set to this value on transition from native C code to
157 // simulated execution, so that the simulator can "return" to the native 156 // simulated execution, so that the simulator can "return" to the native
158 // C code. 157 // C code.
159 static const uword kEndSimulatingPC = -1; 158 static const uword kEndSimulatingPC = -1;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 } 261 }
263 262
264 friend class SimulatorDebugger; 263 friend class SimulatorDebugger;
265 friend class SimulatorSetjmpBuffer; 264 friend class SimulatorSetjmpBuffer;
266 DISALLOW_COPY_AND_ASSIGN(Simulator); 265 DISALLOW_COPY_AND_ASSIGN(Simulator);
267 }; 266 };
268 267
269 } // namespace dart 268 } // namespace dart
270 269
271 #endif // VM_SIMULATOR_MIPS_H_ 270 #endif // VM_SIMULATOR_MIPS_H_
OLDNEW
« no previous file with comments | « runtime/vm/simulator_dbc.cc ('k') | runtime/vm/simulator_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698