summaryrefslogtreecommitdiff
path: root/src/runtime/sys_wasm.go
diff options
context:
space:
mode:
authorGaret Halliday <me@garet.holiday>2022-10-21 22:22:12 -0500
committerGopher Robot <gobot@golang.org>2022-10-27 10:37:01 +0000
commit50557edf10161b1aedd3654d84a94b49bae05c43 (patch)
tree51451dde59cf75623e8e9261545cfa0b0801c48d /src/runtime/sys_wasm.go
parent599a1e40c6dc4d02e2d0ae5a22659b49dc327e40 (diff)
downloadgo-git-50557edf10161b1aedd3654d84a94b49bae05c43.tar.gz
runtime: add wasm bulk memory operations
The existing implementation uses loops to implement bulk memory operations such as memcpy and memclr. Now that bulk memory operations have been standardized and are implemented in all major browsers and engines (see https://webassembly.org/roadmap/), we should use them to improve performance. Updates #28360 Change-Id: I28df0e0350287d5e7e1d1c09a4064ea1054e7575 Reviewed-on: https://go-review.googlesource.com/c/go/+/444935 Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Keith Randall <khr@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Richard Musiol <neelance@gmail.com> Reviewed-by: David Chase <drchase@google.com> Auto-Submit: Richard Musiol <neelance@gmail.com> Reviewed-by: Richard Musiol <neelance@gmail.com>
Diffstat (limited to 'src/runtime/sys_wasm.go')
-rw-r--r--src/runtime/sys_wasm.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/runtime/sys_wasm.go b/src/runtime/sys_wasm.go
index e6e7f471ee..bf5756984a 100644
--- a/src/runtime/sys_wasm.go
+++ b/src/runtime/sys_wasm.go
@@ -16,10 +16,6 @@ type m0Stack struct {
var wasmStack m0Stack
-func wasmMove()
-
-func wasmZero()
-
func wasmDiv()
func wasmTruncS()