1. 10 Sep, 2017 4 commits
  2. 09 Sep, 2017 20 commits
  3. 08 Sep, 2017 14 commits
  4. 07 Sep, 2017 2 commits
    • isharipo's avatar
      cmd/asm: restrict x86 shift ops to 8bit args · 5b043abe
      isharipo authored
      Change "yshl" and "yshb" immediate oclass from Yi32 to Yu8.
      This forbids:
      - negative shift counts
      - shift counts that not fit into 8bit
      
      Affects:
        RCL{B,L,Q,W}
        RCR{B,L,Q,W}
        ROL{B,L,Q,W}
        ROR{B,L,Q,W}
        SAL{B,L,Q,W}
        SAR{B,L,Q,W}
        SHL{B,L,Q,W}
        SHR{B,L,Q,W}
      
      Issue #21528 has some additional context about this change.
      
      Change-Id: I60884cb2b41a860820889fcd878ca6f564006b4a
      Reviewed-on: https://go-review.googlesource.com/62190
      Run-TryBot: Iskander Sharipov <iskander.sharipov@intel.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarRuss Cox <rsc@golang.org>
      5b043abe
    • Daniel Martí's avatar
      text/template: fix pos info when trimming newlines · 9b8964bf
      Daniel Martí authored
      The lexer keeps the byte offset and the line for the rune it's currently
      on. This was simple enough up until whitespace trimming was introduced.
      
      With whitespace trimming, we might skip over newlines. In that case, the
      lexer wasn't properly updating the line counter. Fix it.
      
      Also, TestPos now checks that the line is correct too, which it was
      ignoring before. This was necessary to test this scenario in the lexer.
      
      Fixes #21778.
      
      Change-Id: I3880f3adf02662eac8f818d5caa6935cca9cb33b
      Reviewed-on: https://go-review.googlesource.com/61870
      Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
      Reviewed-by: default avatarRob Pike <r@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      9b8964bf