Skip to content

Update call_indirect text syntax to match spec update#1281

Merged
dschuff merged 3 commits intomasterfrom
callind_syntax
Nov 13, 2017
Merged

Update call_indirect text syntax to match spec update#1281
dschuff merged 3 commits intomasterfrom
callind_syntax

Conversation

@dschuff
Copy link
Member

@dschuff dschuff commented Nov 11, 2017

Function type gets its own element rather than being a part of the call_indirect
(see WebAssembly/spec#599)

Function type gets its own element rather than being a part of the call_indirect
(see WebAssembly/spec#599)
@kripken
Copy link
Member

kripken commented Nov 11, 2017

lgtm but looks like the spec tests we run need to be updated too.

@binji
Copy link
Member

binji commented Nov 11, 2017

This doesn't seem to support the inline format: (call_indirect (param i32) (result i32) ...) etc.

@dschuff
Copy link
Member Author

dschuff commented Nov 11, 2017 via email

@dschuff
Copy link
Member Author

dschuff commented Nov 13, 2017

@kripken Have our spec tests really not been updated since 2016? I was going to try to update them here but if it's been that long then it probably makes more sense to do that in a separate change because there will certainly be a lot of unrelated stuff. The script I ran to update the tests for this PR also updated our copy of the spec tests, so I could check that in for now to get the tools all compatible again. But we should probably do another pull from the spec repo to get all the new tests (and also of course we've made changes to the IR since then so it's probably worth revisiting anyway).

@kripken
Copy link
Member

kripken commented Nov 13, 2017

@dschuff: Well, we sort of gave up on updating them since wasm became a stack machine and things diverged. We definitely can't support a bunch of things in the upstream tests. And we don't claim to support the upstream text format at this point.

But the spec tests have been updated with various specific changes, current commit looks like it's from August 27 2017. So we might want to do that for this change.

Alternatively, do we need to update this, since we still won't be able to support the full upstream text format anyhow?

@dschuff
Copy link
Member Author

dschuff commented Nov 13, 2017

Since we do support a subset of the upstream text format, I think it makes sense to make this change, so that we continue to support the same subset (instead of just an outdated subset). And probably also to make the change that @binji mentioned, since that's probably a small change too. So I updated the spec tests to their new-format equivalent.

@dschuff dschuff merged commit ca09203 into master Nov 13, 2017
@kripken kripken deleted the callind_syntax branch November 14, 2017 00:14
spoonincode pushed a commit to EOSIO/binaryen that referenced this pull request May 4, 2018
)

Function type gets its own element rather than being a part of the call_indirect
(see WebAssembly/spec#599)

EOSIO note: Only cherry-pick the .cpp changes for this. Trying to pull up the tests is not feasible. We don't use the tests anyways.
spoonincode added a commit to EOSIO/binaryen that referenced this pull request May 4, 2018
 Update call_indirect text syntax to match spec update (WebAssembly#1281)
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.

3 participants