1. 01 Feb, 2017 1 commit
  2. 31 Jan, 2017 3 commits
    • Russ Cox's avatar
      all: merge dev.typealias into master · c47df7ae
      Russ Cox authored
      For #18130.
      
      f8b41236 [dev.typealias] spec: use term 'embedded field' rather than 'anonymous field'
      9ecc3ee2 [dev.typealias] cmd/compile: avoid false positive cycles from type aliases
      49b7af8a [dev.typealias] reflect: add test for type aliases
      9bbb07dd [dev.typealias] cmd/compile, reflect: fix struct field names for embedded byte, rune
      43c70943 [dev.typealias] reflect: fix StructOf use of StructField to match StructField docs
      9657e0b0 [dev.typealias] cmd/doc: update for type alias
      de2e5459 [dev.typealias] cmd/compile: declare methods after resolving receiver type
      9259f307 [dev.typealias] test: match gccgo error messages on alias2.go
      5d929167 [dev.typealias] cmd/compile: change Func.Shortname to *Sym
      a7c884ef [dev.typealias] go/internal/gccgoimporter: support for type aliases
      5802cfd9 [dev.typealias] cmd/compile: export/import test cases for type aliases
      d7cabd40 [dev.typealias] go/types: clarified doc string
      cc2dcce3 [dev.typealias] cmd/compile: a few better comments related to alias types
      5c160b28 [dev.typealias] cmd/compile: improved error message for cyles involving type aliases
      b2386dff [dev.typealias] cmd/compile: type-check type alias declarations
      ac8421f9 [dev.typealias] cmd/compile: various minor cleanups
      f011e0c6 [dev.typealias] cmd/compile, go/types, go/importer: various alias related fixes
      49de5f03 [dev.typealias] cmd/compile, go/importer: define export format and implement importing of type aliases
      5ceec42d [dev.typealias] go/types: export TypeName.IsAlias so clients can use it
      aa1f0681 [dev.typealias] go/types: improved Object printing
      c80748e3 [dev.typealias] go/types: remove some more vestiges of prior alias implementation
      80d8b69e [dev.typealias] go/types: implement type aliases
      a917097b [dev.typealias] go/build: add go1.9 build tag
      3e119404 [dev.typealias] cmd/compile: recognize type aliases but complain for now (not yet supported)
      e0a05c27 [dev.typealias] cmd/gofmt: added test cases for alias type declarations
      2e5116bd [dev.typealias] go/ast, go/parser, go/printer, go/types: initial type alias support
      
      Change-Id: Ia65f2e011fd7195f18e1dce67d4d49b80a261203
      c47df7ae
    • Alberto Donizetti's avatar
      testing: stop timeout-timer after running tests · 7d8bfdde
      Alberto Donizetti authored
      Fixes #18845
      
      Change-Id: Icdc3e2067807781e42f2ffc94d1824aed94d3713
      Reviewed-on: https://go-review.googlesource.com/35956
      Run-TryBot: Alberto Donizetti <alb.donizetti@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
      7d8bfdde
    • Robert Griesemer's avatar
      [dev.typealias] spec: use term 'embedded field' rather than 'anonymous field' · f8b41236
      Robert Griesemer authored
      First steps towards defining type aliases in the spec.
      This is a nomenclature clarification, not a language change.
      
      The spec used all three terms 'embedded type', 'anonymous field',
      and 'embedded field'. Users where using the terms inconsistently.
      
      The notion of an 'anonymous' field was always misleading since they
      always had a de-facto name. With type aliases that name becomes even
      more important because we may have different names for the same type.
      
      Use the term 'embedded field' consistently and remove competing
      terminology.
      
      For #18130.
      
      Change-Id: I2083bbc85788cab0b2e2cb1ff58b2f979491f001
      Reviewed-on: https://go-review.googlesource.com/35108Reviewed-by: 's avatarAlan Donovan <adonovan@google.com>
      Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
      Reviewed-by: 's avatarRob Pike <r@golang.org>
      f8b41236
  3. 30 Jan, 2017 2 commits
  4. 29 Jan, 2017 2 commits
  5. 28 Jan, 2017 1 commit
  6. 27 Jan, 2017 1 commit
  7. 26 Jan, 2017 5 commits
  8. 25 Jan, 2017 7 commits
  9. 24 Jan, 2017 9 commits
  10. 23 Jan, 2017 1 commit
    • Keith Randall's avatar
      runtime: amd64, use 4-byte ops for memmove of 4 bytes · a96e117a
      Keith Randall authored
      memmove used to use 2 2-byte load/store pairs to move 4 bytes.
      When the result is loaded with a single 4-byte load, it caused
      a store to load fowarding stall.  To avoid the stall,
      special case memmove to use 4 byte ops for the 4 byte copy case.
      
      We already have a special case for 8-byte copies.
      386 already specializes 4-byte copies.
      I'll do 2-byte copies also, but not for 1.8.
      
      benchmark                 old ns/op     new ns/op     delta
      BenchmarkIssue18740-8     7567          4799          -36.58%
      
      3-byte copies get a bit slower.  Other copies are unchanged.
      name         old time/op   new time/op   delta
      Memmove/3-8   4.76ns ± 5%   5.26ns ± 3%  +10.50%  (p=0.000 n=10+10)
      
      Fixes #18740
      
      Change-Id: Iec82cbac0ecfee80fa3c8fc83828f9a1819c3c74
      Reviewed-on: https://go-review.googlesource.com/35567
      Run-TryBot: Keith Randall <khr@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarDavid Chase <drchase@google.com>
      a96e117a
  11. 21 Jan, 2017 1 commit
  12. 20 Jan, 2017 6 commits
  13. 19 Jan, 2017 1 commit