-
Notifications
You must be signed in to change notification settings - Fork 27
[interpreter] Use small-step semantics #115
Conversation
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 with nits.
interpreter/exec/eval.ml
Outdated
{ty = I32Type; align = 0; offset = 0l; sz = Some Memory.Pack8}); | ||
] | ||
|
||
| MemoryCopy, I32 n :: I32 s :: I32 d :: vs' when s >= d -> |
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.
Nit: The text spec says dst<=src
. you could change the order of the comparison here to make the implementation here match the text spec better.
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.
Done.
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.
Thanks for all the reviews!
Are you planning to make the same change for |
@AndrewScheidecker, yeah, there were todos for redoing the table instructions, but fixing the outdated tests seems more urgent, so see #120 . |
Implement bulk memory operations in small-step semantics, as in spec.
Minor fixes:
Baseline is #114. See last commit for new changes.