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

Singlepass nopanic #2966

Merged
merged 1 commit into from
Jun 22, 2022
Merged

Singlepass nopanic #2966

merged 1 commit into from
Jun 22, 2022

Conversation

ptitSeb
Copy link
Contributor

@ptitSeb ptitSeb commented Jun 22, 2022

Description

Removed all panic from singlepass compiler, and implemented Result for error handling.
The compiler will now return a CompileError instead of a panic when an opcode is missing or more generalt when something goes wrong in the compiler.
This partly address ticket #2959

Also, tested the compiler performances with the method expalined here: https://wasmer.io/posts/wasmer-2.2 and found no speed change (good job rustc compiler)

@ptitSeb ptitSeb requested a review from epilys June 22, 2022 08:17
@ptitSeb
Copy link
Contributor Author

ptitSeb commented Jun 22, 2022

bors r+

@bors
Copy link
Contributor

bors bot commented Jun 22, 2022

Build succeeded:

@bors bors bot merged commit 06a8833 into master Jun 22, 2022
@bors bors bot deleted the singlepass_nopanic branch June 22, 2022 10:49
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