gcc/libgo/go
Ian Lance Taylor 5e87c2806f compiler,runtime: do more direct interfaces
A direct interface is an interface whose data word contains the
    actual data value, instead of a pointer to it. The gc toolchain
    creates a direct interface if the value is pointer shaped, that
    includes pointers (including unsafe.Pointer), functions, channels,
    maps, and structs and arrays containing a single pointer-shaped
    field. In gccgo, we only do this for pointers. This CL unifies
    direct interface types with gc. This reduces allocations when
    converting such types to interfaces.
    
    Our method functions used to always take pointer receivers, to
    make interface calls easy. Now for direct interface types, their
    value methods will take value receivers. For a pointer to those
    types, when converted to interface, the interface data contains
    the pointer. For that interface to call a value method, it will
    need a wrapper method that dereference the pointer and invokes
    the value method. The wrapper method, instead of the actual one,
    is put into the itable of the pointer type.
    
    In the runtime, adjust funcPC for the new layout of interfaces of
    functions.
    
    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/168409

From-SVN: r270779
2019-05-01 21:34:16 +00:00
..
archive libgo: fix build on AIX 2019-03-19 14:00:59 +00:00
bufio libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
builtin libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
bytes libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
cmd libgo: update to Go 1.12.2 2019-04-08 18:36:25 +00:00
compress libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
container libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
context libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
crypto libgo: update to Go 1.12 release 2019-02-26 15:38:12 +00:00
database/sql libgo: update to Go 1.12 release 2019-02-26 15:38:12 +00:00
debug libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
encoding libgo: update to Go1.12rc1 2019-02-26 01:00:39 +00:00
errors
expvar libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
flag libgo: update to Go1.12rc1 2019-02-26 01:00:39 +00:00
fmt libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
go re PR go/89406 (Go testing leaves many temporary directories in /tmp around) 2019-03-02 00:50:30 +00:00
golang.org/x/tools golang.org/x/tools/go/analysis: pass "gccgo" to types.SizesFor 2019-01-22 15:43:40 +00:00
hash libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
html libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
image libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
index/suffixarray libgo: update to Go 1.11 2018-09-24 21:46:21 +00:00
internal libgo: update to Go 1.12.2 2019-04-08 18:36:25 +00:00
io libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
log libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
math libgo: update to Go1.12rc1 2019-02-26 01:00:39 +00:00
mime libgo: add hurd build tags 2019-02-01 21:57:36 +00:00
net libgo: update to Go 1.12.2 2019-04-08 18:36:25 +00:00
os libgo: update to Go 1.12.2 2019-04-08 18:36:25 +00:00
path libgo: update to Go 1.12.1 2019-03-18 20:27:59 +00:00
plugin libgo: add hurd build tags 2019-02-01 21:57:36 +00:00
reflect compiler,runtime: do more direct interfaces 2019-05-01 21:34:16 +00:00
regexp libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
runtime compiler,runtime: do more direct interfaces 2019-05-01 21:34:16 +00:00
sort libgo: update to Go1.12rc1 2019-02-26 01:00:39 +00:00
strconv libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
strings libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
sync libgo: update to Go1.12rc1 2019-02-26 01:00:39 +00:00
syscall libgo/go/syscall: add SockAddrDatalink on AIX 2019-04-19 14:20:16 +00:00
testdata libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
testing libgo: update to Go1.12rc1 2019-02-26 01:00:39 +00:00
text libgo: update to Go 1.12.1 2019-03-18 20:27:59 +00:00
time libgo: add hurd build tags 2019-02-01 21:57:36 +00:00
unicode libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00