Skip to content

Commit

Permalink
Add implementation comment
Browse files Browse the repository at this point in the history
  • Loading branch information
remko committed Nov 1, 2023
1 parent eeb2b9b commit 84e36b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/emuwasm.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,8 @@ const instructions = [
],
[
"LDZ2",
// Used to be (#T2^! (i32.load16_u (local.get $t))).
// Since LDZ2 does not wrap, this was ok, but performance is the same (and this is more consistent with LDZ)
`
(local.set $t (#T))
(#set 1 1)
Expand All @@ -437,6 +439,8 @@ const instructions = [
],
[
"STZ2",
// Used to be (i32.store16 (local.get $t) (local.get $n))
// Since STZ2 does not wrap, this was ok, but peformance is actually worse.
`
(local.set $t (#T))
(local.set $n (#N))
Expand Down

0 comments on commit 84e36b5

Please sign in to comment.