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

Implement the struct.* GC instructions #9275

Merged
merged 4 commits into from
Sep 18, 2024

Commits on Sep 18, 2024

  1. Implement the struct.* GC instructions

    This commit implements the `struct.*` instructions for the GC proposal.  These
    instructions allow allocating new structs and getting and setting their
    fields.
    
    The implemented instructions are:
    
    * `struct.new`
    * `struct.new_default`
    * `struct.get`
    * `struct.get_s`
    * `struct.get_u`
    * `struct.set`
    
    The `struct.new*` instructions are also allowed in constant expressions, but
    support for that is not yet implemented.
    
    Co-Authored-By: Trevor Elliott <[email protected]>
    fitzgen and elliottt committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    57ae451 View commit details
    Browse the repository at this point in the history
  2. Fill in TODO doc comment

    fitzgen committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    865b604 View commit details
    Browse the repository at this point in the history
  3. Dedupe gc-disabled messages

    fitzgen committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    8f1b937 View commit details
    Browse the repository at this point in the history
  4. Fix warnings in no-gc builds

    fitzgen committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    c154058 View commit details
    Browse the repository at this point in the history