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 ++-- src/runtime/rt0_js_wasm.s | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/runtime') 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) diff --git a/src/runtime/rt0_js_wasm.s b/src/runtime/rt0_js_wasm.s index e20f623610..c494b0a34a 100644 --- a/src/runtime/rt0_js_wasm.s +++ b/src/runtime/rt0_js_wasm.s @@ -74,7 +74,7 @@ TEXT runtime·pause(SB), NOSPLIT, $0 Set RUN RETUNWIND -TEXT runtime·exit(SB), NOSPLIT, $0-8 +TEXT runtime·exit(SB), NOSPLIT, $0-4 Call runtime·wasmExit(SB) Drop I32Const $RUN_EXITED -- cgit v1.3