Change-Id: Ifc8a731a2efd94fdc4fc6f26ca6e16f0c0292211
Reviewed-on: https://go-review.googlesource.com/c/go/+/176178
Reviewed-by: Austin Clements <austin@google.com>
+++ /dev/null
-// wasm-specific vet whitelist. See readme.txt for details.
-
-// False positives.
-
-// morestack intentionally omits arg size.
-runtime/asm_wasm.s: [wasm] morestack: use of 8(SP) points beyond argument frame
-runtime/asm_wasm.s: [wasm] morestack: use of 16(SP) points beyond argument frame
-runtime/asm_wasm.s: [wasm] morestack: use of 8(SP) points beyond argument frame
-
-// rt0_go does not allocate a stack frame.
-runtime/asm_wasm.s: [wasm] rt0_go: use of 8(SP) points beyond argument frame
#include "funcdata.h"
#include "textflag.h"
-TEXT runtime·rt0_go(SB), NOSPLIT, $0
+TEXT runtime·rt0_go(SB), NOSPLIT|NOFRAME, $0
// save m->g0 = g0
MOVD $runtime·g0(SB), runtime·m0+m_g0(SB)
// save m0 to g0->m
// Called from f.
// Set m->morebuf to f's caller.
+ NOP SP // tell vet SP changed - stop checking offsets
MOVD 8(SP), m_morebuf+gobuf_pc(R1)
MOVD $16(SP), m_morebuf+gobuf_sp(R1) // f's caller's SP
MOVD g, m_morebuf+gobuf_g(R1)