| 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 #include <math.h> // for isnan. | 5 #include <math.h> // for isnan. |
| 6 #include <setjmp.h> | 6 #include <setjmp.h> |
| 7 #include <stdlib.h> | 7 #include <stdlib.h> |
| 8 | 8 |
| 9 #include "vm/globals.h" | 9 #include "vm/globals.h" |
| 10 #if defined(TARGET_ARCH_ARM64) | 10 #if defined(TARGET_ARCH_ARM64) |
| (...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 dbg.Stop(instr, buffer); | 603 dbg.Stop(instr, buffer); |
| 604 // The debugger will not be able to single step past this instruction, but | 604 // The debugger will not be able to single step past this instruction, but |
| 605 // it will be possible to disassemble the code and inspect registers. | 605 // it will be possible to disassemble the code and inspect registers. |
| 606 FATAL("Cannot continue execution after unaligned access."); | 606 FATAL("Cannot continue execution after unaligned access."); |
| 607 } | 607 } |
| 608 | 608 |
| 609 | 609 |
| 610 void Simulator::UnimplementedInstruction(Instr* instr) { | 610 void Simulator::UnimplementedInstruction(Instr* instr) { |
| 611 char buffer[128]; | 611 char buffer[128]; |
| 612 snprintf(buffer, sizeof(buffer), | 612 snprintf(buffer, sizeof(buffer), |
| 613 "Unimplemented instruction: at %p, last_pc=0x%"Px"\n", | 613 "Unimplemented instruction: at %p, last_pc=0x%" Px64 "\n", |
| 614 instr, get_last_pc()); | 614 instr, get_last_pc()); |
| 615 SimulatorDebugger dbg(this); | 615 SimulatorDebugger dbg(this); |
| 616 dbg.Stop(instr, buffer); | 616 dbg.Stop(instr, buffer); |
| 617 FATAL("Cannot continue execution after unimplemented instruction."); | 617 FATAL("Cannot continue execution after unimplemented instruction."); |
| 618 } | 618 } |
| 619 | 619 |
| 620 | 620 |
| 621 // Returns the top of the stack area to enable checking for stack pointer | 621 // Returns the top of the stack area to enable checking for stack pointer |
| 622 // validity. | 622 // validity. |
| 623 uword Simulator::StackTop() const { | 623 uword Simulator::StackTop() const { |
| (...skipping 1423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2047 int64_t return_value; | 2047 int64_t return_value; |
| 2048 return_value = get_register(R0); | 2048 return_value = get_register(R0); |
| 2049 return return_value; | 2049 return return_value; |
| 2050 } | 2050 } |
| 2051 | 2051 |
| 2052 } // namespace dart | 2052 } // namespace dart |
| 2053 | 2053 |
| 2054 #endif // !defined(HOST_ARCH_ARM64) | 2054 #endif // !defined(HOST_ARCH_ARM64) |
| 2055 | 2055 |
| 2056 #endif // defined TARGET_ARCH_ARM64 | 2056 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |