aboutsummaryrefslogtreecommitdiff
path: root/src/internal/bytealg
diff options
context:
space:
mode:
authorRichard Musiol <mail@richard-musiol.de>2018-06-08 18:12:57 +0200
committerBrad Fitzpatrick <bradfitz@golang.org>2018-06-15 00:05:22 +0000
commitc12399fffb6ff9fb947a10e445fdfdc62c697e2c (patch)
tree448d1ff26634d0afa5781cf4ea9bca102443f82c /src/internal/bytealg
parentadf72bbc9a11fa14de80b1e68fd58f0e4a0248a8 (diff)
downloadgo-c12399fffb6ff9fb947a10e445fdfdc62c697e2c.tar.xz
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 <bradfitz@golang.org>
Diffstat (limited to 'src/internal/bytealg')
-rw-r--r--src/internal/bytealg/compare_wasm.s24
-rw-r--r--src/internal/bytealg/indexbyte_wasm.s20
2 files changed, 22 insertions, 22 deletions
diff --git a/src/internal/bytealg/compare_wasm.s b/src/internal/bytealg/compare_wasm.s
index 39bc0fc37a..b412649e04 100644
--- a/src/internal/bytealg/compare_wasm.s
+++ b/src/internal/bytealg/compare_wasm.s
@@ -7,30 +7,30 @@
TEXT ·Compare(SB), NOSPLIT, $0-56
Get SP
- I64Load s1_base+0(FP)
- I64Load s1_len+8(FP)
- I64Load s2_base+24(FP)
- I64Load s2_len+32(FP)
+ I64Load a_base+0(FP)
+ I64Load a_len+8(FP)
+ I64Load b_base+24(FP)
+ I64Load b_len+32(FP)
Call cmpbody<>(SB)
I64Store ret+48(FP)
RET
TEXT bytes·Compare(SB), NOSPLIT, $0-56
Get SP
- I64Load s1_base+0(FP)
- I64Load s1_len+8(FP)
- I64Load s2_base+24(FP)
- I64Load s2_len+32(FP)
+ I64Load a_base+0(FP)
+ I64Load a_len+8(FP)
+ I64Load b_base+24(FP)
+ I64Load b_len+32(FP)
Call cmpbody<>(SB)
I64Store ret+48(FP)
RET
TEXT runtime·cmpstring(SB), NOSPLIT, $0-40
Get SP
- I64Load s1_base+0(FP)
- I64Load s1_len+8(FP)
- I64Load s2_base+16(FP)
- I64Load s2_len+24(FP)
+ I64Load a_base+0(FP)
+ I64Load a_len+8(FP)
+ I64Load b_base+16(FP)
+ I64Load b_len+24(FP)
Call cmpbody<>(SB)
I64Store ret+32(FP)
RET
diff --git a/src/internal/bytealg/indexbyte_wasm.s b/src/internal/bytealg/indexbyte_wasm.s
index 113c7a0a6f..f9f8e65002 100644
--- a/src/internal/bytealg/indexbyte_wasm.s
+++ b/src/internal/bytealg/indexbyte_wasm.s
@@ -6,10 +6,10 @@
#include "textflag.h"
TEXT ·IndexByte(SB), NOSPLIT, $0-40
- I64Load s+0(FP)
+ I64Load b_base+0(FP)
I32WrapI64
I32Load8U c+24(FP)
- I64Load s_len+8(FP)
+ I64Load b_len+8(FP)
I32WrapI64
Call memchr<>(SB)
I64ExtendSI32
@@ -18,7 +18,7 @@ TEXT ·IndexByte(SB), NOSPLIT, $0-40
Get SP
I64Const $-1
Get R0
- I64Load s+0(FP)
+ I64Load b_base+0(FP)
I64Sub
Get R0
I64Eqz $0
@@ -29,7 +29,7 @@ TEXT ·IndexByte(SB), NOSPLIT, $0-40
TEXT ·IndexByteString(SB), NOSPLIT, $0-32
Get SP
- I64Load s+0(FP)
+ I64Load s_base+0(FP)
I32WrapI64
I32Load8U c+16(FP)
I64Load s_len+8(FP)
@@ -40,7 +40,7 @@ TEXT ·IndexByteString(SB), NOSPLIT, $0-32
I64Const $-1
Get R0
- I64Load s+0(FP)
+ I64Load s_base+0(FP)
I64Sub
Get R0
I64Eqz $0
@@ -51,10 +51,10 @@ TEXT ·IndexByteString(SB), NOSPLIT, $0-32
TEXT bytes·IndexByte(SB), NOSPLIT, $0-40
Get SP
- I64Load s+0(FP)
+ I64Load b_base+0(FP)
I32WrapI64
I32Load8U c+24(FP)
- I64Load s_len+8(FP)
+ I64Load b_len+8(FP)
I32WrapI64
Call memchr<>(SB)
I64ExtendSI32
@@ -62,7 +62,7 @@ TEXT bytes·IndexByte(SB), NOSPLIT, $0-40
I64Const $-1
Get R0
- I64Load s+0(FP)
+ I64Load b_base+0(FP)
I64Sub
Get R0
I64Eqz $0
@@ -73,7 +73,7 @@ TEXT bytes·IndexByte(SB), NOSPLIT, $0-40
TEXT strings·IndexByte(SB), NOSPLIT, $0-32
Get SP
- I64Load s+0(FP)
+ I64Load s_base+0(FP)
I32WrapI64
I32Load8U c+16(FP)
I64Load s_len+8(FP)
@@ -84,7 +84,7 @@ TEXT strings·IndexByte(SB), NOSPLIT, $0-32
I64Const $-1
Get R0
- I64Load s+0(FP)
+ I64Load s_base+0(FP)
I64Sub
Get R0
I64Eqz $0