| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // 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 // V8 calls into generated code by using the GeneratedCode class, | 8 // V8 calls into generated code by using the GeneratedCode class, |
| 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 206 bad_lr = -1, | 206 bad_lr = -1, |
| 207 // A pc value used to signal the simulator to stop execution. Generally | 207 // A pc value used to signal the simulator to stop execution. Generally |
| 208 // the lr is set to this value on transition from native C code to | 208 // the lr is set to this value on transition from native C code to |
| 209 // simulated execution, so that the simulator can "return" to the native | 209 // simulated execution, so that the simulator can "return" to the native |
| 210 // C code. | 210 // C code. |
| 211 end_sim_pc = -2 | 211 end_sim_pc = -2 |
| 212 }; | 212 }; |
| 213 | 213 |
| 214 V8_EXPORT_PRIVATE intptr_t CallImpl(byte* entry, int argument_count, | 214 V8_EXPORT_PRIVATE intptr_t CallImpl(byte* entry, int argument_count, |
| 215 const intptr_t* arguments); | 215 const intptr_t* arguments); |
| 216 intptr_t CallFPImpl(byte* entry, double d0, double d1); | 216 int32_t CallFPImpl(byte* entry, double d0, double d1); |
|
sergei
2018/04/09 09:48:10
Compare
https://chromium.googlesource.com/v8/v8.gi
hub
2018/04/11 01:55:14
In master https://chromium.googlesource.com/v8/v8.
sergei
2018/04/11 09:34:44
Done, perhaps it's better. When I was changing it
| |
| 217 | 217 |
| 218 // Unsupported instructions use Format to print an error and stop execution. | 218 // Unsupported instructions use Format to print an error and stop execution. |
| 219 void Format(Instruction* instr, const char* format); | 219 void Format(Instruction* instr, const char* format); |
| 220 | 220 |
| 221 // Checks if the current instruction should be executed based on its | 221 // Checks if the current instruction should be executed based on its |
| 222 // condition bits. | 222 // condition bits. |
| 223 inline bool ConditionallyExecute(Instruction* instr); | 223 inline bool ConditionallyExecute(Instruction* instr); |
| 224 | 224 |
| 225 // Helper functions to set the conditional flags in the architecture state. | 225 // Helper functions to set the conditional flags in the architecture state. |
| 226 void SetNZFlags(int32_t val); | 226 void SetNZFlags(int32_t val); |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 494 LocalMonitor local_monitor_; | 494 LocalMonitor local_monitor_; |
| 495 GlobalMonitor::Processor global_monitor_processor_; | 495 GlobalMonitor::Processor global_monitor_processor_; |
| 496 static base::LazyInstance<GlobalMonitor>::type global_monitor_; | 496 static base::LazyInstance<GlobalMonitor>::type global_monitor_; |
| 497 }; | 497 }; |
| 498 | 498 |
| 499 } // namespace internal | 499 } // namespace internal |
| 500 } // namespace v8 | 500 } // namespace v8 |
| 501 | 501 |
| 502 #endif // defined(USE_SIMULATOR) | 502 #endif // defined(USE_SIMULATOR) |
| 503 #endif // V8_ARM_SIMULATOR_ARM_H_ | 503 #endif // V8_ARM_SIMULATOR_ARM_H_ |
| OLD | NEW |