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

Merge with upstream/wasm-3.0+exn #32

Merged
merged 56 commits into from
Apr 29, 2024
Merged

Merge with upstream/wasm-3.0+exn #32

merged 56 commits into from
Apr 29, 2024

Commits on Feb 14, 2024

  1. [js-api][test] Refine DefaultValue for new reference types

    DefaultValue will return undefined for externref as before, but
    for other nullable reference types will return null.
    
    For non-nullable reference types, operations like grow and set
    should error if the value to set is missing.
    
    Also adds WPT tests for the error cases. This requires some
    updates to wasm-module-builder.js as well.
    
    Fixes issue WebAssembly#501
    takikawa committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    663c8d5 View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2024

  1. [spec] Throw consistent exns in "read the imports"

    Instead of allowing ToWebAssemblyValue to throw a TypeError, explicitly catch
    any exceptions and throw a WebAssembly.LinkError.
    takikawa committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    d9302a8 View commit details
    Browse the repository at this point in the history
  2. [js-api] Throw consistent exns in "read the imports"

    Instead of allowing ToWebAssemblyValue to throw a TypeError, explicitly catch
    any exceptions and throw a WebAssembly.LinkError.
    takikawa committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    e1b39d5 View commit details
    Browse the repository at this point in the history
  3. Update document/core/appendix/embedding.rst

    Co-authored-by: Andreas Rossberg <rossberg@mpi-sws.org>
    takikawa and rossberg authored Feb 15, 2024
    Configuration menu
    Copy the full SHA
    f8410fb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    dc24262 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    cae2341 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    094a902 View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2024

  1. Configuration menu
    Copy the full SHA
    d5a49d2 View commit details
    Browse the repository at this point in the history
  2. Merge pull request WebAssembly#522 from takikawa/default_value

    [js-api][test] Refine DefaultValue for new reference types
    rossberg authored Feb 16, 2024
    Configuration menu
    Copy the full SHA
    322e948 View commit details
    Browse the repository at this point in the history
  3. Merge pull request WebAssembly#523 from takikawa/link-error

    [js-api] Throw consistent exns in "read the imports"
    rossberg authored Feb 16, 2024
    Configuration menu
    Copy the full SHA
    6f8e7bc View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2024

  1. typo

    zapashcanon committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    f09b033 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0ba84fb View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2024

  1. [test] Test call_indirect subtyping more thoroughly

    Test that validation allows `call_indirect` to have a type immediate that is a
    supertype of or unrelated to the table element type and that the runtime
    behavior is correct in these cases.
    tlively committed Feb 22, 2024
    Configuration menu
    Copy the full SHA
    16041aa View commit details
    Browse the repository at this point in the history

Commits on Feb 25, 2024

  1. Fix an example code for ref.cast in MVP.md

    The first operand for `ref.cast` should be a reference type.
    However, the code example in `MVP.md` seems to have a heaptype
    which is invalid.
    (Assuming the `$C` is defined as follows based on the context)
    
    ```
    (module
      (type $A (sub (struct)))
      (type $B (sub $A (struct (field i32))))
      (type $C (sub $B (struct (field i32 i32))))
      (func $castBtoC (param $x (ref $B)) (result (ref $C))
        (ref.cast $C (local.get $x))
      )
    )
    ```
    
    ```
    $ wasm -d test.wat
    test.wat:6.15-6.17: syntax error: unexpected token
    ```
    
    (Where `wasm` is a reference interpreter built from
    WebAssembly/gc@0ba84fb)
    tanishiking committed Feb 25, 2024
    Configuration menu
    Copy the full SHA
    c2e70ce View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2024

  1. Merge pull request WebAssembly#527 from tanishiking/fix-ref-cast-mvp

    Fix an example code for ref.cast in MVP.md
    rossberg authored Feb 26, 2024
    Configuration menu
    Copy the full SHA
    60edc79 View commit details
    Browse the repository at this point in the history
  2. Merge pull request WebAssembly#526 from WebAssembly/call_indirect-test

    [test] Test `call_indirect` subtyping more thoroughly
    rossberg authored Feb 26, 2024
    Configuration menu
    Copy the full SHA
    b506385 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2024

  1. Typos

    rossberg committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    b03e351 View commit details
    Browse the repository at this point in the history
  2. More typos

    rossberg committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    7c26de3 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2024

  1. Fix typing of ref.i31 in the appendix

    It produces a non-null `(ref i31)` not an `i31ref` aka `(ref null i31)`.
    fitzgen authored Mar 6, 2024
    Configuration menu
    Copy the full SHA
    1705935 View commit details
    Browse the repository at this point in the history
  2. Merge pull request WebAssembly#530 from fitzgen/patch-2

    Fix typing of `ref.i31` in the appendix
    rossberg authored Mar 6, 2024
    Configuration menu
    Copy the full SHA
    aaa6718 View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2024

  1. Backport value subsumption

    rossberg committed Mar 17, 2024
    Configuration menu
    Copy the full SHA
    606931a View commit details
    Browse the repository at this point in the history
  2. Merge branch 'funcref'

    rossberg committed Mar 17, 2024
    Configuration menu
    Copy the full SHA
    ad25ca8 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2024

  1. Fix typo

    rossberg committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    b172ec0 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2024

  1. Add additional i31ref spec tests

    I noticed that Wasmtime was passing the spec tests despite having bits that were
    known to be unimplemented. This should help the tests exercise those corners of
    the spec.
    
    Notably:
    
    * Setting `i31ref` globals.
    
    * Initializing tables and globals with `(ref.i31 (global.get $g))`.
    
    * Table operations on `i31ref` tables.
    
    * Accessing `anyref` globals and tables that are actually `i31ref`s. This is
      interesting to exercise outside of general subtyping because we have different
      paths in our inline GC barriers for `anyref`s that are actually `i31ref`s.
    fitzgen committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    33f15e6 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2024

  1. Switch to nested operators

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

Commits on Apr 9, 2024

  1. Merge pull request WebAssembly#534 from fitzgen/more-i31ref-spec-tests

    Add additional `i31ref` spec tests
    rossberg authored Apr 9, 2024
    Configuration menu
    Copy the full SHA
    e19c032 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2024

  1. Configuration menu
    Copy the full SHA
    5b85658 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    24ab598 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2024

  1. [Spec] Fix bounds check prose for array.fill and array.copy

    The prose incorrectly used "larger than or equal to" when it should have used
    just "larger than." The formalism was already correct.
    
    Fixes WebAssembly#536.
    tlively committed Apr 14, 2024
    Configuration menu
    Copy the full SHA
    c84a3c6 View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2024

  1. Merge pull request WebAssembly#537 from WebAssembly/fix-array-fill-co…

    …py-bounds
    
    [Spec] Fix bounds check prose for array.fill and array.copy
    rossberg authored Apr 15, 2024
    Configuration menu
    Copy the full SHA
    e5af649 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2024

  1. Fix wrong type expansion

    rossberg committed Apr 21, 2024
    Configuration menu
    Copy the full SHA
    be51b19 View commit details
    Browse the repository at this point in the history
  2. Merge pull request WebAssembly#113 from WebAssembly/fix.538

    Fix wrong type expansion
    rossberg authored Apr 21, 2024
    Configuration menu
    Copy the full SHA
    52ebaa9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7514d9a View commit details
    Browse the repository at this point in the history
  4. Fix wrong type expansion

    rossberg committed Apr 21, 2024
    Configuration menu
    Copy the full SHA
    9ce923e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8c51e58 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d510f84 View commit details
    Browse the repository at this point in the history
  7. Fix typo

    rossberg committed Apr 21, 2024
    Configuration menu
    Copy the full SHA
    cd543fa View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8dc80be View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b7a7d76 View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2024

  1. Configuration menu
    Copy the full SHA
    6871e54 View commit details
    Browse the repository at this point in the history
  2. Update test/core/elem.wast

    Co-authored-by: Manos Koukoutos <manoskouk@google.com>
    rossberg and manoskouk authored Apr 23, 2024
    Configuration menu
    Copy the full SHA
    70ddb4b View commit details
    Browse the repository at this point in the history
  3. Merge pull request WebAssembly#114 from WebAssembly/fix.538.2

    More fixes and tests around element segments
    rossberg authored Apr 23, 2024
    Configuration menu
    Copy the full SHA
    fa6ff17 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'funcref'

    rossberg committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    273c2ac View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7b731c8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f981a51 View commit details
    Browse the repository at this point in the history
  7. Fix JS type test wrappers

    rossberg committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    354c2cb View commit details
    Browse the repository at this point in the history
  8. Fix JS type test wrappers

    rossberg committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    f8190d1 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    dc444e3 View commit details
    Browse the repository at this point in the history
  10. Fix i31.wast default table element assertions (WebAssembly#541)

    Copy-paste bug. Don't repeatedly assert the first element's value, but each element in the table.
    fitzgen authored Apr 23, 2024
    Configuration menu
    Copy the full SHA
    cd8b5c5 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2024

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

Commits on Apr 28, 2024

  1. Configuration menu
    Copy the full SHA
    2428473 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'upstream'

    rossberg committed Apr 28, 2024
    Configuration menu
    Copy the full SHA
    ec004f6 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'funcref'

    rossberg committed Apr 28, 2024
    Configuration menu
    Copy the full SHA
    9d2d677 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d96da54 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b16745e View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2024

  1. Merge with upstream

    dhil committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    dda380b View commit details
    Browse the repository at this point in the history