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

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

Issue 264753002: Adds Simulator Longjmp and enables many tests for arm64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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/service_test.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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 kNativeCall 81 kNativeCall
82 }; 82 };
83 static uword RedirectExternalReference(uword function, 83 static uword RedirectExternalReference(uword function,
84 CallKind call_kind, 84 CallKind call_kind,
85 int argument_count); 85 int argument_count);
86 86
87 void Longjmp(uword pc, 87 void Longjmp(uword pc,
88 uword sp, 88 uword sp,
89 uword fp, 89 uword fp,
90 RawObject* raw_exception, 90 RawObject* raw_exception,
91 RawObject* raw_stacktrace) { 91 RawObject* raw_stacktrace);
92 UNIMPLEMENTED();
93 }
94 92
95 private: 93 private:
96 // Known bad pc value to ensure that the simulator does not execute 94 // Known bad pc value to ensure that the simulator does not execute
97 // without being properly setup. 95 // without being properly setup.
98 static const uword kBadLR = -1; 96 static const uword kBadLR = -1;
99 // A pc value used to signal the simulator to stop execution. Generally 97 // A pc value used to signal the simulator to stop execution. Generally
100 // the lr is set to this value on transition from native C code to 98 // the lr is set to this value on transition from native C code to
101 // simulated execution, so that the simulator can "return" to the native 99 // simulated execution, so that the simulator can "return" to the native
102 // C code. 100 // C code.
103 static const uword kEndSimulatingPC = -2; 101 static const uword kEndSimulatingPC = -2;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 } 202 }
205 203
206 friend class SimulatorDebugger; 204 friend class SimulatorDebugger;
207 friend class SimulatorSetjmpBuffer; 205 friend class SimulatorSetjmpBuffer;
208 DISALLOW_COPY_AND_ASSIGN(Simulator); 206 DISALLOW_COPY_AND_ASSIGN(Simulator);
209 }; 207 };
210 208
211 } // namespace dart 209 } // namespace dart
212 210
213 #endif // VM_SIMULATOR_ARM64_H_ 211 #endif // VM_SIMULATOR_ARM64_H_
OLDNEW
« no previous file with comments | « runtime/vm/service_test.cc ('k') | runtime/vm/simulator_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698