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

Side by Side Diff: runtime/vm/simulator_arm64.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_arm.cc ('k') | runtime/vm/simulator_arm64.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 ARM64 instructions if we are not generating a native 5 // Declares a Simulator for ARM64 instructions if we are not generating a native
6 // ARM64 binary. This Simulator allows us to run and debug ARM64 code generation 6 // ARM64 binary. This Simulator allows us to run and debug ARM64 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 ARM64 HW platform. 10 // on a ARM64 HW platform.
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 static uword FunctionForRedirect(uword redirect); 125 static uword FunctionForRedirect(uword redirect);
126 126
127 void Longjmp(uword pc, 127 void Longjmp(uword pc,
128 uword sp, 128 uword sp,
129 uword fp, 129 uword fp,
130 uword pp,
131 RawObject* raw_exception, 130 RawObject* raw_exception,
132 RawObject* raw_stacktrace, 131 RawObject* raw_stacktrace,
133 Thread* thread); 132 Thread* thread);
134 133
135 private: 134 private:
136 // Known bad pc value to ensure that the simulator does not execute 135 // Known bad pc value to ensure that the simulator does not execute
137 // without being properly setup. 136 // without being properly setup.
138 static const uword kBadLR = -1; 137 static const uword kBadLR = -1;
139 // A pc value used to signal the simulator to stop execution. Generally 138 // A pc value used to signal the simulator to stop execution. Generally
140 // the lr is set to this value on transition from native C code to 139 // 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
277 } 276 }
278 277
279 friend class SimulatorDebugger; 278 friend class SimulatorDebugger;
280 friend class SimulatorSetjmpBuffer; 279 friend class SimulatorSetjmpBuffer;
281 DISALLOW_COPY_AND_ASSIGN(Simulator); 280 DISALLOW_COPY_AND_ASSIGN(Simulator);
282 }; 281 };
283 282
284 } // namespace dart 283 } // namespace dart
285 284
286 #endif // VM_SIMULATOR_ARM64_H_ 285 #endif // VM_SIMULATOR_ARM64_H_
OLDNEW
« no previous file with comments | « runtime/vm/simulator_arm.cc ('k') | runtime/vm/simulator_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698