aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/rt0_js_wasm.s
diff options
context:
space:
mode:
authorRichard Musiol <mail@richard-musiol.de>2018-12-12 13:04:44 +0100
committerRichard Musiol <neelance@gmail.com>2019-03-03 21:10:01 +0000
commitc0d82bb0eca81aa13c2e605b4a25655f61a159aa (patch)
tree1bfc2d2d4433a185997329c625b9164d82415032 /src/runtime/rt0_js_wasm.s
parent159b2de4428d47e422ffd696e0f0c62353c4bb79 (diff)
downloadgo-c0d82bb0eca81aa13c2e605b4a25655f61a159aa.tar.gz
go-c0d82bb0eca81aa13c2e605b4a25655f61a159aa.zip
all: rename WebAssembly instructions according to spec changes
The names of some instructions have been updated in the WebAssembly specification to be more consistent, see https://github.com/WebAssembly/spec/commit/994591e51c9df9e7ef980b04d660709b79982f75. This change to the spec is possible because it is still in a draft state. Go's support for WebAssembly is still experimental and thus excempt from the compatibility promise. Being consistent with the spec should warrant this breaking change to the assembly instruction names. Change-Id: Iafb8b18ee7f55dd0e23c6c7824aa1fad43117ef1 Reviewed-on: https://go-review.googlesource.com/c/153797 Run-TryBot: Richard Musiol <neelance@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/runtime/rt0_js_wasm.s')
-rw-r--r--src/runtime/rt0_js_wasm.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/rt0_js_wasm.s b/src/runtime/rt0_js_wasm.s
index 50adbe2225..c4efd9637c 100644
--- a/src/runtime/rt0_js_wasm.s
+++ b/src/runtime/rt0_js_wasm.s
@@ -23,12 +23,12 @@ TEXT wasm_export_run(SB),NOSPLIT,$0
Get SP
Get R0 // argc
- I64ExtendUI32
+ I64ExtendI32U
I64Store $0
Get SP
Get R1 // argv
- I64ExtendUI32
+ I64ExtendI32U
I64Store $8
I32Const $runtime·rt0_go(SB)