1. 22 Feb, 2016 2 commits
  2. 21 Feb, 2016 23 commits
  3. 20 Feb, 2016 12 commits
  4. 19 Feb, 2016 3 commits
    • Martin Möhrmann's avatar
      fmt: remove math package dependency and avoid float operations · 5a9c128a
      Martin Möhrmann authored
      Remove floating point comparisons and rely only on the information
      directly provided by appendFloat.
      Make restoring the zero padding flag explicit instead of using a defer.
      Rearrange some case distinctions to remove duplicated code.
      Add more test cases for zero padded floating point numbers with sign.
      
      benchmark                   old ns/op     new ns/op     delta
      BenchmarkSprintfFloat-4     187           180           -3.74%
      
      Change-Id: Ifa2ae85257909f40b1b18118c92b516933271729
      Reviewed-on: https://go-review.googlesource.com/19721Reviewed-by: 's avatarRob Pike <r@golang.org>
      5a9c128a
    • Matthew Dempsky's avatar
      cmd/compile: refactor import statement parsing · 113c4d25
      Matthew Dempsky authored
      Combine parser's import_stmt and import_here methods as a single new
      importdcl method, and cleanup conditional logic slightly to make the
      code easier to follow.
      
      Also, eliminate importfile's unused line parameter, and get rid of all
      of its duplicate type assertions.
      
      Change-Id: Ic37ae8490afedc533f98ead9feef383e3599bc01
      Reviewed-on: https://go-review.googlesource.com/19629Reviewed-by: 's avatarRobert Griesemer <gri@golang.org>
      Run-TryBot: Matthew Dempsky <mdempsky@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      113c4d25
    • Matthew Dempsky's avatar
      cmd/compile: make -A and -newexport compatible · d930d69f
      Matthew Dempsky authored
      Packages compiled with -A may reference the builtin "any" type, so it
      needs to be included in the list of predeclared types for binary
      import/export.
      
      Also, when -A is used, mark all symbols as SymExport instead of
      SymPackage in importsym.  This parallels the logic in autoexport and
      is necessary to prevent a "export/package mismatch" errors in
      exportsym during dumpexport's verifyExport pass.
      
      Change-Id: Iff5ec5fbfe2219525ec9d1a975307fa8936af9b9
      Reviewed-on: https://go-review.googlesource.com/19627Reviewed-by: 's avatarRobert Griesemer <gri@golang.org>
      Run-TryBot: Matthew Dempsky <mdempsky@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      d930d69f