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 <math.h> // for isnan. | |
6 #include <setjmp.h> | 5 #include <setjmp.h> |
7 #include <stdlib.h> | 6 #include <stdlib.h> |
8 | 7 |
9 #include "vm/globals.h" | 8 #include "vm/globals.h" |
10 #if defined(TARGET_ARCH_ARM) | 9 #if defined(TARGET_ARCH_ARM) |
11 | 10 |
12 // Only build the simulator if not compiling for real ARM hardware. | 11 // Only build the simulator if not compiling for real ARM hardware. |
13 #if !defined(HOST_ARCH_ARM) | 12 #if !defined(HOST_ARCH_ARM) |
14 | 13 |
15 #include "vm/simulator.h" | 14 #include "vm/simulator.h" |
(...skipping 3703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3719 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); | 3718 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); |
3720 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); | 3719 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); |
3721 buf->Longjmp(); | 3720 buf->Longjmp(); |
3722 } | 3721 } |
3723 | 3722 |
3724 } // namespace dart | 3723 } // namespace dart |
3725 | 3724 |
3726 #endif // !defined(HOST_ARCH_ARM) | 3725 #endif // !defined(HOST_ARCH_ARM) |
3727 | 3726 |
3728 #endif // defined TARGET_ARCH_ARM | 3727 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |