compiler, runtime: change type hash/equal to Go funcs
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 29 Oct 2015 17:14:51 +0000 (17:14 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 29 Oct 2015 17:14:51 +0000 (17:14 +0000)
commit730f6d14253f7c8f44eff8c03beb5984e2f4c6cf
tree51c7bcf037fe05935e1479b498e56d84212089b1
parent285b1f01acaf962e7a668aed7bab4d609a19fc3b
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

From-SVN: r229541
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