Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stack switching proposal support #7041

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open

Commits on Nov 4, 2024

  1. Stack switching proposal support

    This patch implements text and binary encoding/decoding support for
    the stack switching proposal. It does so by adapting the previous
    typed-continunations implementation. Particular changes:
    
    * Support for new `resume` encoding.
    * Added support for `resume_throw` and `switch`.
    * Feature flag `typed-continuations` has been renamed to `stack-switching`.
    
    A small unfortunate implementation detail is that the internal name
    `Switch` was already taken by the `br_table` instruction, so I opted
    to give the `switch` instruction the internal name `StackSwitch`.
    
    A minor detail is that I have reordered the declarations/definitions
    of the stack switching instructions such that they appear in ascending
    order according to their opcode value (this is the same order that the
    stack-switching explainer document present them in).
    dhil committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    14af574 View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2024

  1. Configuration menu
    Copy the full SHA
    edbc438 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c0d8648 View commit details
    Browse the repository at this point in the history
  3. Use inherited the 'type' member to track the continuation type in

    'ContNew' and 'ContBind'
    dhil committed Nov 5, 2024
    Configuration menu
    Copy the full SHA
    98f6314 View commit details
    Browse the repository at this point in the history
  4. Format

    dhil committed Nov 5, 2024
    Configuration menu
    Copy the full SHA
    c407262 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2024

  1. Configuration menu
    Copy the full SHA
    15fcbc6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d1866bc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2b06c76 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3b339f9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0886451 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2024

  1. Configuration menu
    Copy the full SHA
    d76f260 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1c2ed8a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c8bf255 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2024

  1. Configuration menu
    Copy the full SHA
    9e16e47 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2024

  1. WIP

    dhil committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    157552a View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2024

  1. Configuration menu
    Copy the full SHA
    480843d View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2024

  1. Configuration menu
    Copy the full SHA
    c8d345a View commit details
    Browse the repository at this point in the history
  2. Add switch lit test

    dhil committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    0110dd5 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2024

  1. Fix unreachable type printing

    dhil committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    f418774 View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2024

  1. Merge

    dhil committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    3bedcb5 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2024

  1. Read sentTypes off label types.

    dhil committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    b1d65ce View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2024

  1. [WIP] Eliminate type immediate members.

    This commit is a partial solution to removing the type immediate
    members from `cont.new,cont.bind,resume,resume_throw,switch`. However,
    when I fully remove the type immediates then I observe a crash in
    `child-ir.h` on
    `visitContBind,visitResume,visitResumeThrow,visitStackSwitch`. It seems that `curr->cont->type` is sometimes not a continuation type...
    dhil committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    c549cd7 View commit details
    Browse the repository at this point in the history
  2. Merge with upstream

    dhil committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    6a20680 View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2024

  1. Fix lint

    dhil committed Dec 2, 2024
    Configuration menu
    Copy the full SHA
    2a3fabe View commit details
    Browse the repository at this point in the history