| 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_MIPS) | 10 #if defined(TARGET_ARCH_MIPS) |
| (...skipping 2175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2186 Isolate* isolate = Isolate::Current(); | 2186 Isolate* isolate = Isolate::Current(); |
| 2187 while (isolate->top_resource() != NULL && | 2187 while (isolate->top_resource() != NULL && |
| 2188 (reinterpret_cast<uword>(isolate->top_resource()) < native_sp)) { | 2188 (reinterpret_cast<uword>(isolate->top_resource()) < native_sp)) { |
| 2189 isolate->top_resource()->~StackResource(); | 2189 isolate->top_resource()->~StackResource(); |
| 2190 } | 2190 } |
| 2191 | 2191 |
| 2192 // Unwind the C++ stack and continue simulation in the target frame. | 2192 // Unwind the C++ stack and continue simulation in the target frame. |
| 2193 set_pc(static_cast<int32_t>(pc)); | 2193 set_pc(static_cast<int32_t>(pc)); |
| 2194 set_register(SP, static_cast<int32_t>(sp)); | 2194 set_register(SP, static_cast<int32_t>(sp)); |
| 2195 set_register(FP, static_cast<int32_t>(fp)); | 2195 set_register(FP, static_cast<int32_t>(fp)); |
| 2196 ASSERT(raw_exception != NULL); | 2196 |
| 2197 ASSERT(raw_exception != Object::null()); |
| 2197 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); | 2198 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); |
| 2198 if (raw_stacktrace != NULL) { | 2199 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); |
| 2199 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); | |
| 2200 } | |
| 2201 buf->Longjmp(); | 2200 buf->Longjmp(); |
| 2202 } | 2201 } |
| 2203 | 2202 |
| 2204 } // namespace dart | 2203 } // namespace dart |
| 2205 | 2204 |
| 2206 #endif // !defined(HOST_ARCH_MIPS) | 2205 #endif // !defined(HOST_ARCH_MIPS) |
| 2207 | 2206 |
| 2208 #endif // defined TARGET_ARCH_MIPS | 2207 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |