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

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

Issue 14309004: Implement long jump in ARM and MIPS simulators. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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/object_test.cc ('k') | runtime/vm/simulator_arm.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 ARM instructions if we are not generating a native 5 // Declares a Simulator for ARM instructions if we are not generating a native
6 // ARM binary. This Simulator allows us to run and debug ARM code generation on 6 // ARM binary. This Simulator allows us to run and debug ARM code generation on
7 // regular desktop machines. 7 // 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 ARM HW platform. 10 // on a ARM HW platform.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 uword new_value); 79 uword new_value);
80 80
81 // Runtime and native call support. 81 // Runtime and native call support.
82 enum CallKind { 82 enum CallKind {
83 kRuntimeCall, 83 kRuntimeCall,
84 kLeafRuntimeCall, 84 kLeafRuntimeCall,
85 kNativeCall 85 kNativeCall
86 }; 86 };
87 static uword RedirectExternalReference(uword function, CallKind call_kind); 87 static uword RedirectExternalReference(uword function, CallKind call_kind);
88 88
89 void Longjmp(int32_t pc, int32_t sp, int32_t fp, const Instance& object); 89 void Longjmp(uword pc,
90 uword sp,
91 uword fp,
92 RawObject* raw_exception,
93 RawObject* raw_stacktrace);
90 94
91 private: 95 private:
92 // Known bad pc value to ensure that the simulator does not execute 96 // Known bad pc value to ensure that the simulator does not execute
93 // without being properly setup. 97 // without being properly setup.
94 static const uword kBadLR = -1; 98 static const uword kBadLR = -1;
95 // A pc value used to signal the simulator to stop execution. Generally 99 // A pc value used to signal the simulator to stop execution. Generally
96 // the lr is set to this value on transition from native C code to 100 // the lr is set to this value on transition from native C code to
97 // simulated execution, so that the simulator can "return" to the native 101 // simulated execution, so that the simulator can "return" to the native
98 // C code. 102 // C code.
99 static const uword kEndSimulatingPC = -2; 103 static const uword kEndSimulatingPC = -2;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 } 238 }
235 239
236 friend class SimulatorDebugger; 240 friend class SimulatorDebugger;
237 friend class SimulatorSetjmpBuffer; 241 friend class SimulatorSetjmpBuffer;
238 DISALLOW_COPY_AND_ASSIGN(Simulator); 242 DISALLOW_COPY_AND_ASSIGN(Simulator);
239 }; 243 };
240 244
241 } // namespace dart 245 } // namespace dart
242 246
243 #endif // VM_SIMULATOR_ARM_H_ 247 #endif // VM_SIMULATOR_ARM_H_
OLDNEW
« no previous file with comments | « runtime/vm/object_test.cc ('k') | runtime/vm/simulator_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698