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

Update wasmparser to 0.77 #2277

Merged
merged 4 commits into from
Apr 29, 2021
Merged

Update wasmparser to 0.77 #2277

merged 4 commits into from
Apr 29, 2021

Conversation

MarkMcCaskey
Copy link
Contributor

@MarkMcCaskey MarkMcCaskey commented Apr 29, 2021

Resolves multiple failures in #2268

Primarily this is just supporting the new SIMD ops. I also snuck in a change to our WAST test runner to fix another issue...

When updating the C API, I chose to namespace all the wasmparser Operators we're using because without that, the error messages are really quite bad. SomeStringOfCharacters in a match statement will match anything (it's bound as a variable name) if there's no enum variant that matches. :: is not valid in variable names so namespacing it makes it unambiguous that we're trying to match a specific thing, not bind a variable and the error messages we get are much clearer.

@MarkMcCaskey MarkMcCaskey requested a review from jubianchi as a code owner April 29, 2021 16:43
@MarkMcCaskey
Copy link
Contributor Author

bors try

bors bot added a commit that referenced this pull request Apr 29, 2021
@bors
Copy link
Contributor

bors bot commented Apr 29, 2021

try

Build failed:

@@ -508,510 +520,522 @@ pub enum wasmer_parser_operator_t {

impl<'a> From<&Operator<'a>> for wasmer_parser_operator_t {
fn from(operator: &Operator<'a>) -> Self {
use Operator::*;
use Operator as O;
Copy link
Member

Choose a reason for hiding this comment

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

I like this!

Copy link
Member

@syrusakbary syrusakbary left a comment

Choose a reason for hiding this comment

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

Looks great!

@syrusakbary
Copy link
Member

We should be ready to go once #2276 lands!

@MarkMcCaskey
Copy link
Contributor Author

bors r+

@bors
Copy link
Contributor

bors bot commented Apr 29, 2021

@bors bors bot merged commit 70c8dd6 into master Apr 29, 2021
@bors bors bot deleted the feature/update-wasmparser-to-0.77 branch April 29, 2021 21:29
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