| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #include <stdlib.h> | 5 #include <stdlib.h> |
| 6 #include <cmath> | 6 #include <cmath> |
| 7 #include <cstdarg> | 7 #include <cstdarg> |
| 8 #include "src/v8.h" | 8 #include "src/v8.h" |
| 9 | 9 |
| 10 #if V8_TARGET_ARCH_ARM64 | 10 #if V8_TARGET_ARCH_ARM64 |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 } | 406 } |
| 407 for (unsigned i = 0; i < kNumberOfFPRegisters; i++) { | 407 for (unsigned i = 0; i < kNumberOfFPRegisters; i++) { |
| 408 // Set FP registers to a value that is NaN in both 32-bit and 64-bit FP. | 408 // Set FP registers to a value that is NaN in both 32-bit and 64-bit FP. |
| 409 set_dreg_bits(i, 0x7ff000007f800001UL); | 409 set_dreg_bits(i, 0x7ff000007f800001UL); |
| 410 } | 410 } |
| 411 // Returning to address 0 exits the Simulator. | 411 // Returning to address 0 exits the Simulator. |
| 412 set_lr(kEndOfSimAddress); | 412 set_lr(kEndOfSimAddress); |
| 413 | 413 |
| 414 // Reset debug helpers. | 414 // Reset debug helpers. |
| 415 breakpoints_.empty(); | 415 breakpoints_.empty(); |
| 416 break_on_next_= false; | 416 break_on_next_ = false; |
| 417 } | 417 } |
| 418 | 418 |
| 419 | 419 |
| 420 Simulator::~Simulator() { | 420 Simulator::~Simulator() { |
| 421 delete[] reinterpret_cast<byte*>(stack_); | 421 delete[] reinterpret_cast<byte*>(stack_); |
| 422 if (FLAG_log_instruction_stats) { | 422 if (FLAG_log_instruction_stats) { |
| 423 delete instrument_; | 423 delete instrument_; |
| 424 } | 424 } |
| 425 delete disassembler_decoder_; | 425 delete disassembler_decoder_; |
| 426 delete print_disasm_; | 426 delete print_disasm_; |
| (...skipping 3403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3830 | 3830 |
| 3831 delete[] format; | 3831 delete[] format; |
| 3832 } | 3832 } |
| 3833 | 3833 |
| 3834 | 3834 |
| 3835 #endif // USE_SIMULATOR | 3835 #endif // USE_SIMULATOR |
| 3836 | 3836 |
| 3837 } } // namespace v8::internal | 3837 } } // namespace v8::internal |
| 3838 | 3838 |
| 3839 #endif // V8_TARGET_ARCH_ARM64 | 3839 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |