1. 21 Nov, 2018 3 commits
    • haormj's avatar
      net/http: fix spelling mistake in a comment · 4a8ce14a
      haormj authored
      Fixes #28904
      
      Change-Id: I8d416c47479a266735a39c926fd2f0f2bb25d57b
      GitHub-Last-Rev: 3a7865a5be27937833cf4f65c242c639e51665c4
      GitHub-Pull-Request: golang/go#28907
      Reviewed-on: https://go-review.googlesource.com/c/150737Reviewed-by: 's avatarDaniel Martí <mvdan@mvdan.cc>
      Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      4a8ce14a
    • Yury Smolsky's avatar
      cmd/compile: add control flow graphs to ssa.html · 3068fcfa
      Yury Smolsky authored
      This CL adds CFGs to ssa.html.
      It execs dot to generate SVG,
      which then gets inlined into the html.
      Some standard naming and javascript hacks
      enable integration with the rest of ssa.html.
      Clicking on blocks highlights the relevant
      part of the CFG, and vice versa.
      
      Sample output and screenshots can be seen in #28177.
      
      CFGs can be turned on with the suffix mask:
      :*            - dump CFG for every phase
      :lower        - just the lower phase
      :lower-layout - lower through layout
      :w,x-y        - phases w and x through y
      
      Calling dot after every pass is noticeably slow,
      instead use the range of phases.
      
      Dead blocks are not displayed on CFG.
      
      User can zoom and pan individual CFG
      when the automatic adjustment has failed.
      
      Dot-related errors are reported
      without bringing down the process.
      
      Fixes #28177
      
      Change-Id: Id52c42d86c4559ca737288aa10561b67a119c63d
      Reviewed-on: https://go-review.googlesource.com/c/142517
      Run-TryBot: Yury Smolsky <yury@smolsky.by>
      Reviewed-by: 's avatarDavid Chase <drchase@google.com>
      3068fcfa
    • Cherry Zhang's avatar
      runtime: add arg maps for sync/atomic functions in ARM64 race mode · c6e698d5
      Cherry Zhang authored
      In race mode, these functions are defined and declared in
      different packages, which therefore don't have implicit arg maps.
      When they are defer'd, and the stack needs to move, the runtime
      fails with missing stack maps. This CL adds arg maps (FUNCDATA)
      to them.
      
      Updates #28848
      
      Change-Id: I0271563b7e78e7797ce2990c303dced957efaa86
      Reviewed-on: https://go-review.googlesource.com/c/150457
      Run-TryBot: Cherry Zhang <cherryyz@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      c6e698d5
  2. 20 Nov, 2018 12 commits
  3. 19 Nov, 2018 8 commits
    • Santhosh Kumar Tekuri's avatar
      encoding/pem: test getLine does not include trailing whitespace · 552d7b91
      Santhosh Kumar Tekuri authored
      Change-Id: I7a1046f5e0aedbbdd1106a616de410fe4e0cb7d8
      Reviewed-on: https://go-review.googlesource.com/c/92295
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
      552d7b91
    • Vladimir Kovpak's avatar
      regexp: add matching and finding examples · 10841494
      Vladimir Kovpak authored
      This commit adds examples for Match, Find,
      FindAllSubmatch, FindSubmatch and Match functions.
      
      Change-Id: I2bdf8c3cee6e89d618109397378c1fc91aaf1dfb
      GitHub-Last-Rev: 33f34b7adca2911a4fff9638c93e846fb0021465
      GitHub-Pull-Request: golang/go#28837
      Reviewed-on: https://go-review.googlesource.com/c/150020
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
      10841494
    • Xia Bin's avatar
      cmd/link: directly get max pc value in findfunctab · 3d72ca99
      Xia Bin authored
      Change-Id: I70afd2f7b6783926174c4e66565b711cffeb97c5
      Reviewed-on: https://go-review.googlesource.com/c/150141
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
      3d72ca99
    • Michael Ellis's avatar
      cmd/go: parse dot-separated identifiers in build metadata · dcb1363a
      Michael Ellis authored
      Per https://semver.org/#spec-item-10, build metadata may include
      a series of dot separated identifiers.
      
      Fixes #28647
      
      Change-Id: I98655c62584a822953df71fba32b4a2cafe7a04b
      Reviewed-on: https://go-review.googlesource.com/c/148835Reviewed-by: 's avatarBryan C. Mills <bcmills@google.com>
      dcb1363a
    • Alan Donovan's avatar
      cmd/vendor: eliminate vet-lite · 8bb3ae18
      Alan Donovan authored
      cmd/vet, now simplified to a single function call is now authoritative,
      not a copy of vet-lite.
      
      The update-xtools.sh script now uses the imports of cmd/vet as the
      roots for vendoring.
      
      Change-Id: I4faef3fcf3db10b3a3930726e8d0720a3c8395da
      Reviewed-on: https://go-review.googlesource.com/c/150297
      Run-TryBot: Alan Donovan <adonovan@google.com>
      Reviewed-by: 's avatarDaniel Martí <mvdan@mvdan.cc>
      8bb3ae18
    • Alan Donovan's avatar
      cmd/go: improve go vet documentation · 42b46585
      Alan Donovan authored
      - restore and rework cmd/vet/doc.go, which was clobbered during the vet-lite switch.
      - document go vet -vettool=prog flag and how to run an alternative checker.
      - make 'go vet -help' show how to list vet tool's flags.  Example:
      
      	$ go vet -help
      	usage: go vet [-n] [-x] [-vettool prog] [build flags] [vet flags] [packages]
      	Run 'go help vet' for details.
      	Run 'go tool vet help' for the vet tool's flags.
      
      	$ go vet -vettool=~/bin/myvet -help
      	usage: go vet [-n] [-x] [-vettool prog] [build flags] [vet flags] [packages]
      	Run 'go help vet' for details.
      	Run '~/bin/myvet help' for the vet tool's flags.
      
      Updates #28840
      
      Change-Id: Ieb79dfe29e1df074f865bc9a9d47b44199675d7d
      Reviewed-on: https://go-review.googlesource.com/c/147018Reviewed-by: 's avatarDaniel Martí <mvdan@mvdan.cc>
      Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      42b46585
    • Daniel Martí's avatar
      cmd/vendor: update to golang.org/x/tools@139d099f · 3c92bdc7
      Daniel Martí authored
      Mainly to pull the fix for the regression in #28792.
      
      Change-Id: If71ae783fd9a9e3935186b49fdf501ba098235a2
      Reviewed-on: https://go-review.googlesource.com/c/150161
      Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarAlan Donovan <adonovan@google.com>
      3c92bdc7
    • Josh Bleecher Snyder's avatar
      cmd/compile: bulk rename · bc438895
      Josh Bleecher Snyder authored
      This change does a bulk rename of several identifiers in the compiler.
      See #27167 and https://docs.google.com/document/d/19_ExiylD9MRfeAjKIfEsMU1_RGhuxB9sA0b5Zv7byVI/
      for context and for discussion of these particular renames.
      
      Commands run to generate this change:
      
      gorename -from '"cmd/compile/internal/gc".OPROC' -to OGO
      gorename -from '"cmd/compile/internal/gc".OCOM' -to OBITNOT
      gorename -from '"cmd/compile/internal/gc".OMINUS' -to ONEG
      gorename -from '"cmd/compile/internal/gc".OIND' -to ODEREF
      gorename -from '"cmd/compile/internal/gc".OARRAYBYTESTR' -to OBYTES2STR
      gorename -from '"cmd/compile/internal/gc".OARRAYBYTESTRTMP' -to OBYTES2STRTMP
      gorename -from '"cmd/compile/internal/gc".OARRAYRUNESTR' -to ORUNES2STR
      gorename -from '"cmd/compile/internal/gc".OSTRARRAYBYTE' -to OSTR2BYTES
      gorename -from '"cmd/compile/internal/gc".OSTRARRAYBYTETMP' -to OSTR2BYTESTMP
      gorename -from '"cmd/compile/internal/gc".OSTRARRAYRUNE' -to OSTR2RUNES
      
      gorename -from '"cmd/compile/internal/gc".Etop' -to ctxStmt
      gorename -from '"cmd/compile/internal/gc".Erv' -to ctxExpr
      gorename -from '"cmd/compile/internal/gc".Ecall' -to ctxCallee
      gorename -from '"cmd/compile/internal/gc".Efnstruct' -to ctxMultiOK
      gorename -from '"cmd/compile/internal/gc".Easgn' -to ctxAssign
      gorename -from '"cmd/compile/internal/gc".Ecomplit' -to ctxCompLit
      
      Not altered: parameters and local variables (mostly in typecheck.go) named top,
      which should probably now be called ctx (and which should probably have a named type).
      Also not altered: Field called Top in gc.Func.
      
      gorename -from '"cmd/compile/internal/gc".Node.Isddd' -to IsDDD
      gorename -from '"cmd/compile/internal/gc".Node.SetIsddd' -to SetIsDDD
      gorename -from '"cmd/compile/internal/gc".nodeIsddd' -to nodeIsDDD
      gorename -from '"cmd/compile/internal/types".Field.Isddd' -to IsDDD
      gorename -from '"cmd/compile/internal/types".Field.SetIsddd' -to SetIsDDD
      gorename -from '"cmd/compile/internal/types".fieldIsddd' -to fieldIsDDD
      
      Not altered: function gc.hasddd, params and local variables called isddd
      Also not altered: fmt.go prints nodes using "isddd(%v)".
      
      cd cmd/compile/internal/gc; go generate
      
      I then manually found impacted comments using exact string match
      and fixed them up by hand. The comment changes were trivial.
      
      Passes toolstash-check.
      
      Fixes #27167. If this experiment is deemed a success,
      we will open a new tracking issue for renames to do
      at the end of the 1.13 cycles.
      
      Change-Id: I2dc541533d2ab0d06cb3d31d65df205ecfb151e8
      Reviewed-on: https://go-review.googlesource.com/c/150140
      Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
      Reviewed-by: 's avatarMatthew Dempsky <mdempsky@google.com>
      bc438895
  4. 18 Nov, 2018 2 commits
  5. 17 Nov, 2018 3 commits
  6. 16 Nov, 2018 12 commits