go/src/reflect
Nevkontakte 146e8d4994 reflect: use Value.Len instead of conversion to slice header
This change is functionally equivalent, but reduces reliance on unsafe
features. This would allow GopherJS to avoid an additional patch to the
standard library we'd have to maintain in order to remain compatible
with Go 1.17+.

Change-Id: I4f113db0c572ec0b81ebfecf5a137145f6c8c41d
GitHub-Last-Rev: 94ebb393ba
GitHub-Pull-Request: golang/go#48346
Reviewed-on: https://go-review.googlesource.com/c/go/+/349469
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
2021-09-14 00:16:36 +00:00
..
internal reflect: fix stack overflow panic when using haveIdenticalUnderlyingType 2021-04-20 20:14:14 +00:00
abi.go reflect: add hooks for dealing with narrow width floats 2021-09-09 16:48:19 +00:00
abi_test.go reflect: add test for passing float32 signaling NaNs 2021-09-07 23:10:23 +00:00
all_test.go reflect: add a floating point section to DeepEqual tests 2021-09-13 20:17:35 +00:00
asm_386.s reflect: add register ABI support for makeFuncStub and methodValueCall 2021-04-02 16:53:18 +00:00
asm_amd64.s [dev.typeparams] reflect: call ABI0 spill/unspill functions on AMD64 2021-06-01 22:33:29 +00:00
asm_arm.s reflect: add register ABI support for makeFuncStub and methodValueCall 2021-04-02 16:53:18 +00:00
asm_arm64.s [dev.typeparams] reflect: implement register ABI for MakeFunc etc. on ARM64 2021-06-02 16:50:22 +00:00
asm_mips64x.s all: add //go:build lines to assembly files 2021-05-13 09:12:17 +00:00
asm_mipsx.s all: add //go:build lines to assembly files 2021-05-13 09:12:17 +00:00
asm_ppc64x.s all: add //go:build lines to assembly files 2021-05-13 09:12:17 +00:00
asm_riscv64.s reflect: add register ABI support for makeFuncStub and methodValueCall 2021-04-02 16:53:18 +00:00
asm_s390x.s reflect: add register ABI support for makeFuncStub and methodValueCall 2021-04-02 16:53:18 +00:00
asm_wasm.s reflect: add register ABI support for makeFuncStub and methodValueCall 2021-04-02 16:53:18 +00:00
deepequal.go reflect: add fast paths for common, simple Kinds to DeepEqual 2021-09-13 20:17:24 +00:00
example_test.go reflect: add example for FieldByIndex 2021-08-22 13:14:19 +00:00
export_test.go [dev.typeparams] reflect: delete unused ptrSize and PtrSize 2021-06-17 21:29:28 +00:00
float32reg_generic.go reflect: add hooks for dealing with narrow width floats 2021-09-09 16:48:19 +00:00
makefunc.go [dev.typeparams] reflect: use internal/abi.FuncPCABI0 to take address of assembly functions 2021-05-24 21:05:34 +00:00
set_test.go
swapper.go [dev.typeparams] reflect: use goarch.PtrSize instead of the duplicated ptrSize [generated] 2021-06-17 21:29:22 +00:00
tostring_test.go
type.go reflect: correct typoo in comment 2021-09-08 00:02:45 +00:00
value.go reflect: use Value.Len instead of conversion to slice header 2021-09-14 00:16:36 +00:00
visiblefields.go reflect: add missing copyright header 2021-07-21 20:29:18 +00:00
visiblefields_test.go reflect: add missing copyright header 2021-07-21 20:29:18 +00:00