Skip to content

Add anyref feature and type #4

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

Open
wants to merge 4 commits into
base: gc-xref
Choose a base branch
from
Open

Add anyref feature and type #4

wants to merge 4 commits into from

Conversation

dcodeIO
Copy link
Owner

@dcodeIO dcodeIO commented Sep 8, 2020

Adds a custom --enable-anyref feature that allows us to test subtyping relationship of externref, funcref and exnref without having to enable the full set of GC features.

@dcodeIO
Copy link
Owner Author

dcodeIO commented Sep 8, 2020

Reminds me that those error diffs are, well, not so useful :)

Copy link

@tlively tlively left a comment

Choose a reason for hiding this comment

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

Looks good! Let's go ahead and merge the previous PR and this one shortly thereafter.

@@ -315,7 +315,21 @@ class TranslateToFuzzReader {
}
SmallVector<Type, 2> options;
options.push_back(type); // includes itself
// TODO (GC): subtyping
if (wasm.features.hasReferenceTypes()) {
Copy link

Choose a reason for hiding this comment

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

Let's push this if down inside of the anyref case of the switch so the switch can be at the top level.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Addressed in the rebased PR :)

Comment on lines +1 to +3
(module
(global $g (mut anyref) (ref.null any))
)
Copy link

Choose a reason for hiding this comment

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

I don't think this file needs to be checked in.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Removed this file in the rebased PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants