From c12399fffb6ff9fb947a10e445fdfdc62c697e2c Mon Sep 17 00:00:00 2001 From: Richard Musiol Date: Fri, 8 Jun 2018 18:12:57 +0200 Subject: all: enable vet/all for js/wasm and fix vet issues This commit enables vet/all for the js/wasm architecture. It got skipped initially because the codebase did not fully compile yet for js/wasm, which made vet/all fail. startTimer and stopTimer are not needed in the syscall package. Removed their assembly code since their Go stubs were already gone. Change-Id: Icaeb6d903876e51ceb1edff7631f715a98c28696 Reviewed-on: https://go-review.googlesource.com/118657 Reviewed-by: Brad Fitzpatrick --- src/runtime/asm_wasm.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/runtime/asm_wasm.s') diff --git a/src/runtime/asm_wasm.s b/src/runtime/asm_wasm.s index 67d7bf17dd..baf840d0cf 100644 --- a/src/runtime/asm_wasm.s +++ b/src/runtime/asm_wasm.s @@ -186,7 +186,7 @@ TEXT runtime·return0(SB), NOSPLIT, $0-0 RET TEXT runtime·jmpdefer(SB), NOSPLIT, $0-16 - MOVD fn+0(FP), CTXT + MOVD fv+0(FP), CTXT Get CTXT I64Eqz @@ -297,7 +297,7 @@ TEXT reflect·call(SB), NOSPLIT, $0-0 JMP ·reflectcall(SB) TEXT ·reflectcall(SB), NOSPLIT, $0-32 - I64Load f+8(FP) + I64Load fn+8(FP) I64Eqz If CALLNORESUME runtime·sigpanic(SB) -- cgit v1.3