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

wasm2c: simplify handling of exception tags #1961

Merged
merged 2 commits into from
Aug 15, 2022

Conversation

keithw
Copy link
Member

@keithw keithw commented Aug 15, 2022

Previously, the wasm2c generated code used an array to store the tag for each index, and looked up tags by index in the array at runtime. This PR changes the handling of tags to match everything else (one named symbol per tag). This is a stepping-stone on the way to #1814.

Copy link
Member

@sbc100 sbc100 left a comment

Choose a reason for hiding this comment

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

lgtm, with couple of comments.

Looks at this change makes me think it would be nice if we had more tests showed the wasm2c output itself .. so the patch could what effect it has on the generated code.

@keithw keithw enabled auto-merge (squash) August 15, 2022 18:49
@keithw keithw merged commit 7f51b5a into WebAssembly:main Aug 15, 2022
@keithw keithw deleted the simplify-wasm2c-tags branch August 15, 2022 21:42
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