| OLD | NEW |
| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 kRuntimeCall, | 103 kRuntimeCall, |
| 104 kLeafRuntimeCall, | 104 kLeafRuntimeCall, |
| 105 kLeafFloatRuntimeCall, | 105 kLeafFloatRuntimeCall, |
| 106 kBootstrapNativeCall, | 106 kBootstrapNativeCall, |
| 107 kNativeCall | 107 kNativeCall |
| 108 }; | 108 }; |
| 109 static uword RedirectExternalReference(uword function, | 109 static uword RedirectExternalReference(uword function, |
| 110 CallKind call_kind, | 110 CallKind call_kind, |
| 111 int argument_count); | 111 int argument_count); |
| 112 | 112 |
| 113 static uword FunctionForRedirect(uword redirect); |
| 114 |
| 113 void Longjmp(uword pc, | 115 void Longjmp(uword pc, |
| 114 uword sp, | 116 uword sp, |
| 115 uword fp, | 117 uword fp, |
| 116 RawObject* raw_exception, | 118 RawObject* raw_exception, |
| 117 RawObject* raw_stacktrace, | 119 RawObject* raw_stacktrace, |
| 118 Isolate* isolate); | 120 Isolate* isolate); |
| 119 | 121 |
| 120 private: | 122 private: |
| 121 // Known bad pc value to ensure that the simulator does not execute | 123 // Known bad pc value to ensure that the simulator does not execute |
| 122 // without being properly setup. | 124 // without being properly setup. |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 } | 262 } |
| 261 | 263 |
| 262 friend class SimulatorDebugger; | 264 friend class SimulatorDebugger; |
| 263 friend class SimulatorSetjmpBuffer; | 265 friend class SimulatorSetjmpBuffer; |
| 264 DISALLOW_COPY_AND_ASSIGN(Simulator); | 266 DISALLOW_COPY_AND_ASSIGN(Simulator); |
| 265 }; | 267 }; |
| 266 | 268 |
| 267 } // namespace dart | 269 } // namespace dart |
| 268 | 270 |
| 269 #endif // VM_SIMULATOR_ARM64_H_ | 271 #endif // VM_SIMULATOR_ARM64_H_ |
| OLD | NEW |