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 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1440 if (reinterpret_cast<uword>(SP) >= thread->stack_limit()) { | 1440 if (reinterpret_cast<uword>(SP) >= thread->stack_limit()) { |
1441 Exit(thread, FP, SP + 1, pc); | 1441 Exit(thread, FP, SP + 1, pc); |
1442 NativeArguments args(thread, 0, NULL, NULL); | 1442 NativeArguments args(thread, 0, NULL, NULL); |
1443 INVOKE_RUNTIME(DRT_StackOverflow, args); | 1443 INVOKE_RUNTIME(DRT_StackOverflow, args); |
1444 } | 1444 } |
1445 } | 1445 } |
1446 DISPATCH(); | 1446 DISPATCH(); |
1447 } | 1447 } |
1448 | 1448 |
1449 { | 1449 { |
| 1450 BYTECODE(CheckStackAlwaysExit, A); |
| 1451 { |
| 1452 Exit(thread, FP, SP + 1, pc); |
| 1453 NativeArguments args(thread, 0, NULL, NULL); |
| 1454 INVOKE_RUNTIME(DRT_StackOverflow, args); |
| 1455 } |
| 1456 DISPATCH(); |
| 1457 } |
| 1458 |
| 1459 { |
1450 BYTECODE(DebugStep, A); | 1460 BYTECODE(DebugStep, A); |
1451 if (thread->isolate()->single_step()) { | 1461 if (thread->isolate()->single_step()) { |
1452 Exit(thread, FP, SP + 1, pc); | 1462 Exit(thread, FP, SP + 1, pc); |
1453 NativeArguments args(thread, 0, NULL, NULL); | 1463 NativeArguments args(thread, 0, NULL, NULL); |
1454 INVOKE_RUNTIME(DRT_SingleStepHandler, args); | 1464 INVOKE_RUNTIME(DRT_SingleStepHandler, args); |
1455 } | 1465 } |
1456 DISPATCH(); | 1466 DISPATCH(); |
1457 } | 1467 } |
1458 | 1468 |
1459 { | 1469 { |
(...skipping 2280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3740 pc_ = pc; | 3750 pc_ = pc; |
3741 } | 3751 } |
3742 | 3752 |
3743 buf->Longjmp(); | 3753 buf->Longjmp(); |
3744 UNREACHABLE(); | 3754 UNREACHABLE(); |
3745 } | 3755 } |
3746 | 3756 |
3747 } // namespace dart | 3757 } // namespace dart |
3748 | 3758 |
3749 #endif // defined TARGET_ARCH_DBC | 3759 #endif // defined TARGET_ARCH_DBC |
OLD | NEW |