OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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_DBC) | 9 #if defined(TARGET_ARCH_DBC) |
10 | 10 |
(...skipping 3416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3427 } | 3427 } |
3428 | 3428 |
3429 UNREACHABLE(); | 3429 UNREACHABLE(); |
3430 return 0; | 3430 return 0; |
3431 } | 3431 } |
3432 | 3432 |
3433 | 3433 |
3434 void Simulator::Longjmp(uword pc, | 3434 void Simulator::Longjmp(uword pc, |
3435 uword sp, | 3435 uword sp, |
3436 uword fp, | 3436 uword fp, |
| 3437 uword ignored_pp, |
3437 RawObject* raw_exception, | 3438 RawObject* raw_exception, |
3438 RawObject* raw_stacktrace, | 3439 RawObject* raw_stacktrace, |
3439 Thread* thread) { | 3440 Thread* thread) { |
3440 // Walk over all setjmp buffers (simulated --> C++ transitions) | 3441 // Walk over all setjmp buffers (simulated --> C++ transitions) |
3441 // and try to find the setjmp associated with the simulated stack pointer. | 3442 // and try to find the setjmp associated with the simulated stack pointer. |
3442 SimulatorSetjmpBuffer* buf = last_setjmp_buffer(); | 3443 SimulatorSetjmpBuffer* buf = last_setjmp_buffer(); |
3443 while ((buf->link() != NULL) && (buf->link()->fp() > fp)) { | 3444 while ((buf->link() != NULL) && (buf->link()->fp() > fp)) { |
3444 buf = buf->link(); | 3445 buf = buf->link(); |
3445 } | 3446 } |
3446 ASSERT(buf != NULL); | 3447 ASSERT(buf != NULL); |
(...skipping 15 matching lines...) Expand all Loading... |
3462 pc_ = pc; | 3463 pc_ = pc; |
3463 special_[kExceptionSpecialIndex] = raw_exception; | 3464 special_[kExceptionSpecialIndex] = raw_exception; |
3464 special_[kStacktraceSpecialIndex] = raw_stacktrace; | 3465 special_[kStacktraceSpecialIndex] = raw_stacktrace; |
3465 buf->Longjmp(); | 3466 buf->Longjmp(); |
3466 UNREACHABLE(); | 3467 UNREACHABLE(); |
3467 } | 3468 } |
3468 | 3469 |
3469 } // namespace dart | 3470 } // namespace dart |
3470 | 3471 |
3471 #endif // defined TARGET_ARCH_DBC | 3472 #endif // defined TARGET_ARCH_DBC |
OLD | NEW |