-
Notifications
You must be signed in to change notification settings - Fork 451
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
Rename opcodes to match AST semantics #33
Conversation
@@ -175,7 +174,7 @@ expr: | |||
( break ) ;; = (break 0) | |||
( switch.<type> <expr> <case>* <expr> ) | |||
( call <var> <expr>* ) | |||
( dispatch <var> <expr> <expr>* ) | |||
( callindirect <var> <expr> <expr>* ) |
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.
call_indirect
Looks like a step in the right direction. I think the semantics of float-to-int conversion still needs more work to match. |
Reversed opcode order and use snake_names everywhere. Also, made memory ops match AST semantics. I tentatively used "/" to separate opcode index parameters, since using "[]" there does not fit the S-expression format all too well. Let me know what you think. |
@lukewagner, @kg, do you think this part is good to land? The float truncation semantics should probably be addressed elsewhere (Dan has a WIP patch). |
For brackets vs. slash: ideally, the opcode names in the SExpr format would exactly match those in AstSemantics.md. Since we're not actually trying to feed our SExpr language to a real LISP, is it ok if we bend the SExpr rules a bit and allow |
+1 to exact match -1 to some of the names currently in AstSemantics And there went my karma for today On Wed, Sep 2, 2015 at 6:54 PM, Luke Wagner notifications@github.com
|
Add min and max operators.
…into rename-opcodes Conflicts: ml-proto/src/lexer.mll ml-proto/test/multivalue.wasm ml-proto/test/unsigned.wasm
Using I'll be off the grid soon, so I hope it's okay if I land the current patch as is and leave the final bikeshedding for later. Should be trivial to tweak separately. I'll also leave further changes to memory access ops to a future patch, since we are still discussing the best approach. Up to signedness, this patch remains close to what's currently in AstSemantics. |
Rename opcodes to match AST semantics
That makes sense; this patch already puts us a lot closer. |
[spec] Reinstantiate lost functype in soundness
Initial draft of the layer 1.
Merge with upstream
@lukewagner, @kg, PTAL. Does not reverse S-expr opcode order yet.