-
Notifications
You must be signed in to change notification settings - Fork 747
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
[Parser] Parse throw_ref #6238
[Parser] Parse throw_ref #6238
Conversation
Current dependencies on/for this PR: This stack of pull requests is managed by Graphite. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM % comments
src/parser/contexts.h
Outdated
@@ -1406,7 +1407,9 @@ struct ParseDefsCtx : TypeParserCtx<ParseDefsCtx> { | |||
irBuilder.makeTry(label ? *label : Name{}, type.getSignature().results)); | |||
} | |||
|
|||
Result<> makeTryTable(Index pos, std::optional<Name> label, HeapType type, | |||
Result<> makeTryTable(Index pos, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks try_table
related code has several formatting changes here in this PR. Were they meant to be in #6237 instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, yep
src/wasm.h
Outdated
@@ -1522,6 +1522,7 @@ class Rethrow : public SpecificExpression<Expression::RethrowId> { | |||
// 'throw_ref' from the new EH proposal | |||
class ThrowRef : public SpecificExpression<Expression::ThrowRefId> { | |||
public: | |||
ThrowRef() {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ThrowRef() {} | |
ThrowRef() = default; |
Nit: It looks other classes in this file use this
f32159b
to
0f2afb7
Compare
0f2afb7
to
ce1908e
Compare
No description provided.