• Matthew Dempsky's avatar
    cmd/compile: drop legacy code for generating iface wrappers · 6703adde
    Matthew Dempsky authored
    Originally, scalar values were directly stored within interface values
    as long as they fit into a pointer-sized slot of memory. And since
    interface method calls always pass the full pointer-sized value as the
    receiver argument, value-narrowing wrappers were necessary to adapt to
    the calling convention for methods with smaller receiver types.
    
    However, for precise garbage collection, we now only store actual
    pointers within interface values, so these wrappers are no longer
    necessary.
    
    Passes toolstash-check.
    
    Change-Id: I5303bfeb8d0f11db619b5a5d06b37ac898588670
    Reviewed-on: https://go-review.googlesource.com/104875
    Run-TryBot: Matthew Dempsky <mdempsky@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
    Reviewed-by: default avatarAustin Clements <austin@google.com>
    6703adde
dcl.go 28.9 KB