compiler, runtime: change type hash/equal to Go funcs
commit09e5769840d85ea7a5b64f1804b7104d6abb4c9d
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Oct 2015 17:14:51 +0000 (29 17:14 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Oct 2015 17:14:51 +0000 (29 17:14 +0000)
tree51c7bcf037fe05935e1479b498e56d84212089b1
parent758c9897fe1980843ed7f0dfa033bb335110d5e0
compiler, runtime: change type hash/equal to Go funcs

    Change the type descriptor hash and equal functions from C code pointers
    to Go func values.  This permits them to be set to a Go function
    closure.  This is in preparation for the Go 1.5, so that we can use a
    closure for the hash/equal functions returned by the new reflect.ArrayOf
    function.

    Reviewed-on: https://go-review.googlesource.com/16485

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229541 138bc75d-0d04-0410-961f-82ee72b054a4
22 files changed:
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/types.cc
libgo/go/reflect/type.go
libgo/runtime/go-eface-compare.c
libgo/runtime/go-eface-val-compare.c
libgo/runtime/go-interface-compare.c
libgo/runtime/go-interface-eface-compare.c
libgo/runtime/go-interface-val-compare.c
libgo/runtime/go-map-delete.c
libgo/runtime/go-map-index.c
libgo/runtime/go-reflect-map.c
libgo/runtime/go-type-complex.c
libgo/runtime/go-type-eface.c
libgo/runtime/go-type-error.c
libgo/runtime/go-type-float.c
libgo/runtime/go-type-identity.c
libgo/runtime/go-type-interface.c
libgo/runtime/go-type-string.c
libgo/runtime/go-type.h
libgo/runtime/go-unsafe-pointer.c
libgo/runtime/proc.c