aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCherry Mui <cherryyz@google.com>2024-08-30 17:24:27 -0400
committerCherry Mui <cherryyz@google.com>2025-07-16 07:15:29 -0700
commit9782dcfd16bcf10f576504bacf67eb41a6cef88f (patch)
treeec167931ca6a99f0eb5b497b3c9f910a64bb341b
parentc876bf9346f1afb5471947a65fb1e105caeff433 (diff)
downloadgo-9782dcfd16bcf10f576504bacf67eb41a6cef88f.tar.xz
runtime: use 32-bit function index on Wasm
Following CL 567896, this is one more place we used only 16 bits for the function index. Change it to load 32 bits. For #64856. Change-Id: I66a78c086e67165604053313751c097a70c50ba9 Reviewed-on: https://go-review.googlesource.com/c/go/+/609118 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Knyszek <mknyszek@google.com>
-rw-r--r--src/runtime/asm_wasm.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/asm_wasm.s b/src/runtime/asm_wasm.s
index 751bf0aec7..85aa52e0f7 100644
--- a/src/runtime/asm_wasm.s
+++ b/src/runtime/asm_wasm.s
@@ -532,7 +532,7 @@ TEXT wasm_pc_f_loop(SB),NOSPLIT,$0
Get SP
I32Const $8
I32Sub
- I32Load16U $2 // PC_F
+ I32Load $2 // PC_F
CallIndirect $0
Drop
@@ -568,7 +568,7 @@ outer:
Get SP
I32Const $8
I32Sub
- I32Load16U $2 // PC_F
+ I32Load $2 // PC_F
Tee R2
Get R0