Skip to content
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.

Update implementation of reference types #213

Merged

Conversation

alexcrichton
Copy link
Member

Update the implementation given WebAssembly/reference-types#87 which has
a number of changes to the reference types implementation:

  • Subtyping is removed
  • nullref as a type was removed
  • anyref was renamed to externref
  • ref.null and ref.is_null take immediate type arguments as to what
    kind of null they're producing.

The spec testsuite repo has not yet updated with this change yet, so the
tests are temporarily vendored here in the tests/wast directory.

Update the implementation given WebAssembly/reference-types#87 which has
a number of changes to the reference types implementation:

* Subtyping is removed
* `nullref` as a type was removed
* `anyref` was renamed to `externref`
* `ref.null` and `ref.is_null` take immediate type arguments as to what
  kind of `null` they're producing.

The spec testsuite repo has not yet updated with this change yet, so the
tests are temporarily vendored here in the `tests/wast` directory.
self.func_state.change_frame_after_select(ty)?;
}
Operator::TypedSelect { ty } => {
self.check_operands_3(Type::I32, ty, ty)?;
self.check_operands_3(ty, ty, Type::I32)?;
Copy link
Collaborator

@yurydelendik yurydelendik May 12, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just noticed how wrong Operator::TypedSelect is for dead code, we need to match the check_select logic here (later?)
nvm, it's fine since we don't have to infer type here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I went ahead and updated this so they use the same code path for consistency anyway.

Copy link
Collaborator

@yurydelendik yurydelendik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the patch

@yurydelendik yurydelendik merged commit afc8ffa into bytecodealliance:master May 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants