| 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. | 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_ARM) | 10 #if defined(TARGET_ARCH_ARM) |
| (...skipping 3055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3066 Isolate* isolate = Isolate::Current(); | 3066 Isolate* isolate = Isolate::Current(); |
| 3067 while (isolate->top_resource() != NULL && | 3067 while (isolate->top_resource() != NULL && |
| 3068 (reinterpret_cast<uword>(isolate->top_resource()) < native_sp)) { | 3068 (reinterpret_cast<uword>(isolate->top_resource()) < native_sp)) { |
| 3069 isolate->top_resource()->~StackResource(); | 3069 isolate->top_resource()->~StackResource(); |
| 3070 } | 3070 } |
| 3071 | 3071 |
| 3072 // Unwind the C++ stack and continue simulation in the target frame. | 3072 // Unwind the C++ stack and continue simulation in the target frame. |
| 3073 set_register(PC, static_cast<int32_t>(pc)); | 3073 set_register(PC, static_cast<int32_t>(pc)); |
| 3074 set_register(SP, static_cast<int32_t>(sp)); | 3074 set_register(SP, static_cast<int32_t>(sp)); |
| 3075 set_register(FP, static_cast<int32_t>(fp)); | 3075 set_register(FP, static_cast<int32_t>(fp)); |
| 3076 ASSERT(raw_exception != NULL); | 3076 |
| 3077 ASSERT(raw_exception != Object::null()); |
| 3077 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); | 3078 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); |
| 3078 if (raw_stacktrace != NULL) { | 3079 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); |
| 3079 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); | |
| 3080 } | |
| 3081 buf->Longjmp(); | 3080 buf->Longjmp(); |
| 3082 } | 3081 } |
| 3083 | 3082 |
| 3084 } // namespace dart | 3083 } // namespace dart |
| 3085 | 3084 |
| 3086 #endif // !defined(HOST_ARCH_ARM) | 3085 #endif // !defined(HOST_ARCH_ARM) |
| 3087 | 3086 |
| 3088 #endif // defined TARGET_ARCH_ARM | 3087 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |