OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 <setjmp.h> | 5 #include <setjmp.h> // NOLINT |
6 #include <stdlib.h> | 6 #include <stdlib.h> |
7 | 7 |
8 #include "vm/globals.h" | 8 #include "vm/globals.h" |
9 #if defined(TARGET_ARCH_ARM) | 9 #if defined(TARGET_ARCH_ARM) |
10 | 10 |
11 // Only build the simulator if not compiling for real ARM hardware. | 11 // Only build the simulator if not compiling for real ARM hardware. |
12 #if !defined(HOST_ARCH_ARM) | 12 #if !defined(HOST_ARCH_ARM) |
13 | 13 |
14 #include "vm/simulator.h" | 14 #include "vm/simulator.h" |
15 | 15 |
16 #include "vm/assembler.h" | 16 #include "vm/assembler.h" |
17 #include "vm/constants_arm.h" | 17 #include "vm/constants_arm.h" |
18 #include "vm/cpu.h" | 18 #include "vm/cpu.h" |
19 #include "vm/disassembler.h" | 19 #include "vm/disassembler.h" |
20 #include "vm/lockers.h" | 20 #include "vm/lockers.h" |
21 #include "vm/native_arguments.h" | 21 #include "vm/native_arguments.h" |
22 #include "vm/stack_frame.h" | 22 #include "vm/stack_frame.h" |
23 #include "vm/thread.h" | 23 #include "vm/os_thread.h" |
24 | 24 |
25 namespace dart { | 25 namespace dart { |
26 | 26 |
27 DEFINE_FLAG(int, trace_sim_after, -1, | 27 DEFINE_FLAG(int, trace_sim_after, -1, |
28 "Trace simulator execution after instruction count reached."); | 28 "Trace simulator execution after instruction count reached."); |
29 DEFINE_FLAG(int, stop_sim_at, -1, | 29 DEFINE_FLAG(int, stop_sim_at, -1, |
30 "Instruction address or instruction count to stop simulator at."); | 30 "Instruction address or instruction count to stop simulator at."); |
31 | 31 |
32 | 32 |
33 // This macro provides a platform independent use of sscanf. The reason for | 33 // This macro provides a platform independent use of sscanf. The reason for |
(...skipping 3838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3872 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); | 3872 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); |
3873 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); | 3873 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); |
3874 buf->Longjmp(); | 3874 buf->Longjmp(); |
3875 } | 3875 } |
3876 | 3876 |
3877 } // namespace dart | 3877 } // namespace dart |
3878 | 3878 |
3879 #endif // !defined(HOST_ARCH_ARM) | 3879 #endif // !defined(HOST_ARCH_ARM) |
3880 | 3880 |
3881 #endif // defined TARGET_ARCH_ARM | 3881 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |