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_MIPS) | 9 #if defined(TARGET_ARCH_MIPS) |
11 | 10 |
12 // Only build the simulator if not compiling for real MIPS hardware. | 11 // Only build the simulator if not compiling for real MIPS hardware. |
13 #if !defined(HOST_ARCH_MIPS) | 12 #if !defined(HOST_ARCH_MIPS) |
14 | 13 |
15 #include "vm/simulator.h" | 14 #include "vm/simulator.h" |
(...skipping 2229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2245 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); | 2244 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); |
2246 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); | 2245 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); |
2247 buf->Longjmp(); | 2246 buf->Longjmp(); |
2248 } | 2247 } |
2249 | 2248 |
2250 } // namespace dart | 2249 } // namespace dart |
2251 | 2250 |
2252 #endif // !defined(HOST_ARCH_MIPS) | 2251 #endif // !defined(HOST_ARCH_MIPS) |
2253 | 2252 |
2254 #endif // defined TARGET_ARCH_MIPS | 2253 #endif // defined TARGET_ARCH_MIPS |
OLD | NEW |