| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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_ARM64) | 9 #if defined(TARGET_ARCH_ARM64) |
| 10 | 10 |
| (...skipping 3510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3521 // in the previous C++ frames. | 3521 // in the previous C++ frames. |
| 3522 Isolate* isolate = thread->isolate(); | 3522 Isolate* isolate = thread->isolate(); |
| 3523 StackResource::Unwind(thread); | 3523 StackResource::Unwind(thread); |
| 3524 | 3524 |
| 3525 // Unwind the C++ stack and continue simulation in the target frame. | 3525 // Unwind the C++ stack and continue simulation in the target frame. |
| 3526 set_pc(static_cast<int64_t>(pc)); | 3526 set_pc(static_cast<int64_t>(pc)); |
| 3527 set_register(NULL, SP, static_cast<int64_t>(sp)); | 3527 set_register(NULL, SP, static_cast<int64_t>(sp)); |
| 3528 set_register(NULL, FP, static_cast<int64_t>(fp)); | 3528 set_register(NULL, FP, static_cast<int64_t>(fp)); |
| 3529 set_register(NULL, THR, reinterpret_cast<int64_t>(thread)); | 3529 set_register(NULL, THR, reinterpret_cast<int64_t>(thread)); |
| 3530 // Set the tag. | 3530 // Set the tag. |
| 3531 isolate->set_vm_tag(VMTag::kDartTagId); | 3531 thread->set_vm_tag(VMTag::kDartTagId); |
| 3532 // Clear top exit frame. | 3532 // Clear top exit frame. |
| 3533 isolate->set_top_exit_frame_info(0); | 3533 isolate->set_top_exit_frame_info(0); |
| 3534 | 3534 |
| 3535 ASSERT(raw_exception != Object::null()); | 3535 ASSERT(raw_exception != Object::null()); |
| 3536 set_register(NULL, kExceptionObjectReg, bit_cast<int64_t>(raw_exception)); | 3536 set_register(NULL, kExceptionObjectReg, bit_cast<int64_t>(raw_exception)); |
| 3537 set_register(NULL, kStackTraceObjectReg, bit_cast<int64_t>(raw_stacktrace)); | 3537 set_register(NULL, kStackTraceObjectReg, bit_cast<int64_t>(raw_stacktrace)); |
| 3538 buf->Longjmp(); | 3538 buf->Longjmp(); |
| 3539 } | 3539 } |
| 3540 | 3540 |
| 3541 } // namespace dart | 3541 } // namespace dart |
| 3542 | 3542 |
| 3543 #endif // !defined(USING_SIMULATOR) | 3543 #endif // !defined(USING_SIMULATOR) |
| 3544 | 3544 |
| 3545 #endif // defined TARGET_ARCH_ARM64 | 3545 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |