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

Side by Side Diff: runtime/vm/simulator_arm.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/exceptions.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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 }; 125 };
126 static uword RedirectExternalReference(uword function, 126 static uword RedirectExternalReference(uword function,
127 CallKind call_kind, 127 CallKind call_kind,
128 int argument_count); 128 int argument_count);
129 129
130 static uword FunctionForRedirect(uword redirect); 130 static uword FunctionForRedirect(uword redirect);
131 131
132 void Longjmp(uword pc, 132 void Longjmp(uword pc,
133 uword sp, 133 uword sp,
134 uword fp, 134 uword fp,
135 uword pp,
136 RawObject* raw_exception, 135 RawObject* raw_exception,
137 RawObject* raw_stacktrace, 136 RawObject* raw_stacktrace,
138 Thread* thread); 137 Thread* thread);
139 138
140 private: 139 private:
141 // Known bad pc value to ensure that the simulator does not execute 140 // Known bad pc value to ensure that the simulator does not execute
142 // without being properly setup. 141 // without being properly setup.
143 static const uword kBadLR = -1; 142 static const uword kBadLR = -1;
144 // A pc value used to signal the simulator to stop execution. Generally 143 // A pc value used to signal the simulator to stop execution. Generally
145 // the lr is set to this value on transition from native C code to 144 // the lr is set to this value on transition from native C code to
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 } 281 }
283 282
284 friend class SimulatorDebugger; 283 friend class SimulatorDebugger;
285 friend class SimulatorSetjmpBuffer; 284 friend class SimulatorSetjmpBuffer;
286 DISALLOW_COPY_AND_ASSIGN(Simulator); 285 DISALLOW_COPY_AND_ASSIGN(Simulator);
287 }; 286 };
288 287
289 } // namespace dart 288 } // namespace dart
290 289
291 #endif // VM_SIMULATOR_ARM_H_ 290 #endif // VM_SIMULATOR_ARM_H_
OLDNEW
« no previous file with comments | « runtime/vm/exceptions.cc ('k') | runtime/vm/simulator_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698