Skip to content

Commit a4f5c9c

Browse files
committed
runtime: fix vet complaints for js/wasm
Change-Id: Ifc8a731a2efd94fdc4fc6f26ca6e16f0c0292211 Reviewed-on: https://go-review.googlesource.com/c/go/+/176178 Reviewed-by: Austin Clements <[email protected]>
1 parent 56c1cf3 commit a4f5c9c

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

src/cmd/vet/all/whitelist/wasm.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/runtime/asm_wasm.s

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include "funcdata.h"
88
#include "textflag.h"
99

10-
TEXT runtime·rt0_go(SB), NOSPLIT, $0
10+
TEXT runtime·rt0_go(SB), NOSPLIT|NOFRAME, $0
1111
// save m->g0 = g0
1212
MOVD $runtime·g0(SB), runtime·m0+m_g0(SB)
1313
// save m0 to g0->m
@@ -258,6 +258,7 @@ TEXT runtime·morestack(SB), NOSPLIT, $0-0
258258

259259
// Called from f.
260260
// Set m->morebuf to f's caller.
261+
NOP SP // tell vet SP changed - stop checking offsets
261262
MOVD 8(SP), m_morebuf+gobuf_pc(R1)
262263
MOVD $16(SP), m_morebuf+gobuf_sp(R1) // f's caller's SP
263264
MOVD g, m_morebuf+gobuf_g(R1)

0 commit comments

Comments
 (0)