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

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

Issue 2503623003: Revert "JumpToFrame refactor" (Closed)
Patch Set: Created 4 years, 1 month 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 kLeafFloatRuntimeCall, 132 kLeafFloatRuntimeCall,
133 kBootstrapNativeCall, 133 kBootstrapNativeCall,
134 kNativeCall 134 kNativeCall
135 }; 135 };
136 static uword RedirectExternalReference(uword function, 136 static uword RedirectExternalReference(uword function,
137 CallKind call_kind, 137 CallKind call_kind,
138 int argument_count); 138 int argument_count);
139 139
140 static uword FunctionForRedirect(uword redirect); 140 static uword FunctionForRedirect(uword redirect);
141 141
142 void JumpToFrame(uword pc, uword sp, uword fp, Thread* thread); 142 void Longjmp(uword pc,
143 uword sp,
144 uword fp,
145 RawObject* raw_exception,
146 RawObject* raw_stacktrace,
147 Thread* thread);
143 148
144 private: 149 private:
145 // A pc value used to signal the simulator to stop execution. Generally 150 // A pc value used to signal the simulator to stop execution. Generally
146 // the ra is set to this value on transition from native C code to 151 // the ra is set to this value on transition from native C code to
147 // simulated execution, so that the simulator can "return" to the native 152 // simulated execution, so that the simulator can "return" to the native
148 // C code. 153 // C code.
149 static const uword kEndSimulatingPC = -1; 154 static const uword kEndSimulatingPC = -1;
150 155
151 // Special registers for the results of div, divu. 156 // Special registers for the results of div, divu.
152 int32_t hi_reg_; 157 int32_t hi_reg_;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 } 253 }
249 254
250 friend class SimulatorDebugger; 255 friend class SimulatorDebugger;
251 friend class SimulatorSetjmpBuffer; 256 friend class SimulatorSetjmpBuffer;
252 DISALLOW_COPY_AND_ASSIGN(Simulator); 257 DISALLOW_COPY_AND_ASSIGN(Simulator);
253 }; 258 };
254 259
255 } // namespace dart 260 } // namespace dart
256 261
257 #endif // RUNTIME_VM_SIMULATOR_MIPS_H_ 262 #endif // RUNTIME_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