Skip to content

Commit 9782dcf

Browse files
committed
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 <[email protected]> Reviewed-by: Michael Knyszek <[email protected]>
1 parent c876bf9 commit 9782dcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/asm_wasm.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ TEXT wasm_pc_f_loop(SB),NOSPLIT,$0
532532
Get SP
533533
I32Const $8
534534
I32Sub
535-
I32Load16U $2 // PC_F
535+
I32Load $2 // PC_F
536536

537537
CallIndirect $0
538538
Drop
@@ -568,7 +568,7 @@ outer:
568568
Get SP
569569
I32Const $8
570570
I32Sub
571-
I32Load16U $2 // PC_F
571+
I32Load $2 // PC_F
572572
Tee R2
573573

574574
Get R0

0 commit comments

Comments
 (0)