• Josh Bleecher Snyder's avatar
    cmd/compile: encapsulate OSLICE* representation · f12bd8a5
    Josh Bleecher Snyder authored
    As a nice side-effect, this allows us to
    unify several code paths.
    
    The terminology (low, high, max, simple slice expr,
    full slice expr) is taken from the spec and
    the examples in the spec.
    
    This is a trial run. The plan, probably for Go 1.8,
    is to change slice expressions to use Node.List
    instead of OKEY, and to do some similar
    tree structure changes for other ops.
    
    Passes toolstash -cmp. No performance change.
    all.bash passes with GO_GCFLAGS=-newexport.
    
    Updates #15350
    
    Change-Id: Ic1efdc36e79cdb95ae1636e9817a3ac8f83ab1ac
    Reviewed-on: https://go-review.googlesource.com/22425Reviewed-by: 's avatarMatthew Dempsky <mdempsky@google.com>
    f12bd8a5
sinit.go 29 KB