]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: place OIDATA next to OITAB
authorJosh Bleecher Snyder <josharian@gmail.com>
Tue, 25 Oct 2016 13:46:51 +0000 (06:46 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 25 Oct 2016 14:27:56 +0000 (14:27 +0000)
Change-Id: Ia499125714e272af87562de5e5d23e68a112df58
Reviewed-on: https://go-review.googlesource.com/31938
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/syntax.go

index ef5b66ab0c29e6ca1ff6b4ed2ad2bc09d8426291..5c48fb7459a3a2aa8aa9149636baccfc36a50fe7 100644 (file)
@@ -386,7 +386,6 @@ const (
        OINDEXMAP  // Left[Right] (index of map)
        OKEY       // Left:Right (key:value in struct/array/map literal, or slice index pair)
        OSTRUCTKEY // Sym:Left (key:value in struct literal, after type checking)
-       OIDATA     // data word of an interface value in Left; TODO: move next to OITAB once it is easier to regenerate the binary blob in builtin.go (issues 15835, 15839)
        OLEN       // len(Left)
        OMAKE      // make(List) (before type checking converts to one of the following)
        OMAKECHAN  // make(Type, Left) (type is chan)
@@ -463,6 +462,7 @@ const (
        OINLCALL    // intermediary representation of an inlined call.
        OEFACE      // itable and data words of an empty-interface value.
        OITAB       // itable word of an interface value.
+       OIDATA      // data word of an interface value in Left
        OSPTR       // base pointer of a slice or string.
        OCLOSUREVAR // variable reference at beginning of closure function
        OCFUNC      // reference to c function pointer (not go func value)