Commit f6d887e
authored
[Stack Switching] Implement the simple case of cont.bind (#7793)
In the simple case, all parameters are bound. This is common in the
spec test, and will unblock a bunch of stuff there.
To do this, add full support for resuming without a resume expression,
that is, without a Suspend that we need to unwind back to. Specifically,
when we resume a bound continuation, the only thing we need to do
when resuming is to apply the bound arguments, and then
continue execution normally.1 parent 6986a9b commit f6d887e
4 files changed
Lines changed: 88 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3499 | 3499 | | |
3500 | 3500 | | |
3501 | 3501 | | |
3502 | | - | |
3503 | | - | |
3504 | | - | |
| 3502 | + | |
| 3503 | + | |
| 3504 | + | |
| 3505 | + | |
3505 | 3506 | | |
3506 | 3507 | | |
3507 | 3508 | | |
| |||
4709 | 4710 | | |
4710 | 4711 | | |
4711 | 4712 | | |
4712 | | - | |
| 4713 | + | |
| 4714 | + | |
| 4715 | + | |
| 4716 | + | |
| 4717 | + | |
| 4718 | + | |
| 4719 | + | |
| 4720 | + | |
| 4721 | + | |
| 4722 | + | |
| 4723 | + | |
| 4724 | + | |
| 4725 | + | |
| 4726 | + | |
| 4727 | + | |
| 4728 | + | |
| 4729 | + | |
| 4730 | + | |
| 4731 | + | |
| 4732 | + | |
| 4733 | + | |
| 4734 | + | |
| 4735 | + | |
4713 | 4736 | | |
4714 | 4737 | | |
4715 | 4738 | | |
| |||
4771 | 4794 | | |
4772 | 4795 | | |
4773 | 4796 | | |
4774 | | - | |
| 4797 | + | |
| 4798 | + | |
| 4799 | + | |
| 4800 | + | |
| 4801 | + | |
| 4802 | + | |
4775 | 4803 | | |
4776 | 4804 | | |
4777 | | - | |
4778 | | - | |
4779 | | - | |
4780 | | - | |
4781 | | - | |
4782 | | - | |
| 4805 | + | |
4783 | 4806 | | |
4784 | 4807 | | |
4785 | 4808 | | |
| |||
4897 | 4920 | | |
4898 | 4921 | | |
4899 | 4922 | | |
| 4923 | + | |
| 4924 | + | |
| 4925 | + | |
| 4926 | + | |
| 4927 | + | |
| 4928 | + | |
| 4929 | + | |
| 4930 | + | |
| 4931 | + | |
| 4932 | + | |
| 4933 | + | |
| 4934 | + | |
| 4935 | + | |
4900 | 4936 | | |
4901 | 4937 | | |
4902 | 4938 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
740 | 740 | | |
741 | 741 | | |
742 | 742 | | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
743 | 746 | | |
744 | 747 | | |
745 | 748 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
807 | 807 | | |
808 | 808 | | |
809 | 809 | | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
810 | 847 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
0 commit comments