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 <setjmp.h> // NOLINT | 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_ARM64) | 9 #if defined(TARGET_ARCH_ARM64) |
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_ARM64) | 12 #if defined(USING_SIMULATOR) |
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_arm64.h" | 17 #include "vm/constants_arm64.h" |
18 #include "vm/disassembler.h" | 18 #include "vm/disassembler.h" |
19 #include "vm/lockers.h" | 19 #include "vm/lockers.h" |
20 #include "vm/native_arguments.h" | 20 #include "vm/native_arguments.h" |
21 #include "vm/stack_frame.h" | 21 #include "vm/stack_frame.h" |
22 #include "vm/os_thread.h" | 22 #include "vm/os_thread.h" |
(...skipping 3509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3532 isolate->set_top_exit_frame_info(0); | 3532 isolate->set_top_exit_frame_info(0); |
3533 | 3533 |
3534 ASSERT(raw_exception != Object::null()); | 3534 ASSERT(raw_exception != Object::null()); |
3535 set_register(NULL, kExceptionObjectReg, bit_cast<int64_t>(raw_exception)); | 3535 set_register(NULL, kExceptionObjectReg, bit_cast<int64_t>(raw_exception)); |
3536 set_register(NULL, kStackTraceObjectReg, bit_cast<int64_t>(raw_stacktrace)); | 3536 set_register(NULL, kStackTraceObjectReg, bit_cast<int64_t>(raw_stacktrace)); |
3537 buf->Longjmp(); | 3537 buf->Longjmp(); |
3538 } | 3538 } |
3539 | 3539 |
3540 } // namespace dart | 3540 } // namespace dart |
3541 | 3541 |
3542 #endif // !defined(HOST_ARCH_ARM64) | 3542 #endif // !defined(USING_SIMULATOR) |
3543 | 3543 |
3544 #endif // defined TARGET_ARCH_ARM64 | 3544 #endif // defined TARGET_ARCH_ARM64 |
OLD | NEW |