| 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 Shift shift_type, | 153 Shift shift_type, |
| 154 uint8_t amount); | 154 uint8_t amount); |
| 155 | 155 |
| 156 int64_t ExtendOperand(uint8_t reg_size, | 156 int64_t ExtendOperand(uint8_t reg_size, |
| 157 int64_t value, | 157 int64_t value, |
| 158 Extend extend_type, | 158 Extend extend_type, |
| 159 uint8_t amount); | 159 uint8_t amount); |
| 160 | 160 |
| 161 int64_t DecodeShiftExtendOperand(Instr* instr); | 161 int64_t DecodeShiftExtendOperand(Instr* instr); |
| 162 | 162 |
| 163 bool ConditionallyExecute(Instr* instr); |
| 164 |
| 163 // Decode instructions. | 165 // Decode instructions. |
| 164 void InstructionDecode(Instr* instr); | 166 void InstructionDecode(Instr* instr); |
| 165 #define DECODE_OP(op) \ | 167 #define DECODE_OP(op) \ |
| 166 void Decode##op(Instr* instr); | 168 void Decode##op(Instr* instr); |
| 167 APPLY_OP_LIST(DECODE_OP) | 169 APPLY_OP_LIST(DECODE_OP) |
| 168 #undef DECODE_OP | 170 #undef DECODE_OP |
| 169 | 171 |
| 170 // Executes ARM64 instructions until the PC reaches kEndSimulatingPC. | 172 // Executes ARM64 instructions until the PC reaches kEndSimulatingPC. |
| 171 void Execute(); | 173 void Execute(); |
| 172 | 174 |
| 173 DISALLOW_COPY_AND_ASSIGN(Simulator); | 175 DISALLOW_COPY_AND_ASSIGN(Simulator); |
| 174 }; | 176 }; |
| 175 | 177 |
| 176 } // namespace dart | 178 } // namespace dart |
| 177 | 179 |
| 178 #endif // VM_SIMULATOR_ARM64_H_ | 180 #endif // VM_SIMULATOR_ARM64_H_ |
| OLD | NEW |