-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
pulley: Get strings.wast test passing #9801
Conversation
Note that this is currently based on #9797 |
@@ -26,7 +26,7 @@ macro_rules! define_opcode { | |||
|
|||
impl Opcode { | |||
/// The value of the maximum defined opcode. | |||
pub const MAX: u8 = define_opcode!( @max $( $name )* ) + 1; | |||
pub const MAX: u8 = Opcode::ExtendedOp as u8; |
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.
This change was needed because otherwise we overran the recursion limit and rustc asked for a #![recursion_limit = "bigger"]
value which I wanted to avoid so I switch this to using the final enum here 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.
Might be an off by one here? Does this need a + 1
?
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.
Double-checked, but this doesn't have the +1
for now. (it's at least the same as before)
Needed the `imul` CLIF instruction to get implemented so 32/64-bit multiplication have now been added. cc bytecodealliance#9783
2487140
to
b9c3c67
Compare
Needed the
imul
CLIF instruction to get implemented so 32/64-bitmultiplication have now been added.
cc #9783