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

[interpreter] Fix flat call_indirect #738

Merged
merged 2 commits into from Mar 3, 2018
Merged

Conversation

rossberg
Copy link
Member

@rossberg rossberg commented Mar 2, 2018

Addresses #737.

@@ -80,6 +80,38 @@
))
)

(func
Copy link
Member

Choose a reason for hiding this comment

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

Are we still trying to keep stacky/flat stuff in stack.wast (e.g. for Binaryen)? If not, I'd rather keep it 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.

Good point, moved to stack.wast

(then i32.const 0 call_indirect)
(else i32.const 0 call_indirect)
)
(block i32.const 0 i32.const 0 call_indirect (param i32))
Copy link
Member

Choose a reason for hiding this comment

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

Might be good to test some with results too.

Copy link
Member Author

Choose a reason for hiding this comment

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

Added more tests, including (type $t) and multiple fields.

@rossberg rossberg merged commit 1526f4f into master Mar 3, 2018
@rossberg rossberg deleted the interpreter.call_indirect branch March 3, 2018 07:23
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.

None yet

2 participants