1. 13 Oct, 2009 1 commit
    • Robert Griesemer's avatar
      - improved comment intersperse heuristic: · df7efaf9
      Robert Griesemer authored
        comments should now be indented properly in corner cases
        (at the end of statement lists, for instance)
      
      - changed import decl. formatting as suggested by Russ (no "global"
        indentation of imports if there are renames present)
      
      - better field list handling
      
      - better documentation
      
      R=rsc
      DELTA=534  (324 added, 35 deleted, 175 changed)
      OCL=35557
      CL=35630
      df7efaf9
  2. 12 Oct, 2009 14 commits
    • Ian Lance Taylor's avatar
      Review and update. No major changes, lots of minor tweaks. · e2854875
      Ian Lance Taylor authored
      R=go-dev
      DELTA=176  (39 added, 9 deleted, 128 changed)
      OCL=35612
      CL=35623
      e2854875
    • Rob Pike's avatar
      printing and maps · 9dfe4044
      Rob Pike authored
      R=rsc,gri
      DELTA=228  (223 added, 1 deleted, 4 changed)
      OCL=35617
      CL=35619
      9dfe4044
    • Kai Backman's avatar
      changed 5c 64 bit word ordering to little endian so it matches · 101f7cbd
      Kai Backman authored
      5g. fixes to 64 bit code gen. added (finally) function to do
      shifts properly.
      
      go/test: passes 83% (287/342)
      
      R=rsc
      APPROVED=rsc
      DELTA=156  (50 added, 53 deleted, 53 changed)
      OCL=35589
      CL=35616
      101f7cbd
    • Russ Cox's avatar
      sort errors by line number · 23724081
      Russ Cox authored
      turn off testdclstack and "not used" errors
      when there are syntax errors.
      
      BUG=2181825
      R=ken
      OCL=35606
      CL=35608
      23724081
    • Russ Cox's avatar
      stack overflow debugging and fix. · add89dd1
      Russ Cox authored
        * in 6l, -K already meant check for stack underflow.
          add -KK to mean double-check stack overflows
          even in nosplit functions.
      
        * comment out print locks; they deadlock too easily
           but are still useful to put back for special occasions.
      
        * let runcgo assembly switch to scheduler stack
          without involving scheduler directly.  because runcgo
          gets called from matchmg, it is too hard to keep it
          from being called on other stacks.
      
      R=r
      DELTA=94  (65 added, 18 deleted, 11 changed)
      OCL=35591
      CL=35604
      add89dd1
    • Russ Cox's avatar
      new builtin.c.boot from arm. · fd76b4f3
      Russ Cox authored
      node printing fixes.
      silence incorrect redeclaration error.
      
      R=ken
      OCL=35602
      CL=35602
      fd76b4f3
    • Russ Cox's avatar
      fix comment on strings.LastIndex. · 10c7d19e
      Russ Cox authored
      add bytes.LastIndex.
      add strings.Reader.
      
      R=r
      DELTA=59  (56 added, 0 deleted, 3 changed)
      OCL=35585
      CL=35601
      10c7d19e
    • Russ Cox's avatar
      introduce non-strict mode in xml parser, · d0aac0ac
      Russ Cox authored
      good enough to parse some html.
      
      in reader, add "comment" tag to collect
      comment text.
      
      do not allocate during Unmarshal unless pointer is nil.
      
      R=r
      DELTA=441  (416 added, 1 deleted, 24 changed)
      OCL=35586
      CL=35594
      d0aac0ac
    • Russ Cox's avatar
      correct a design flaw: Atoi etc should not guess the base. · fcdba72d
      Russ Cox authored
      leave that for Btoi with base == 0.
      
      R=r
      DELTA=146  (101 added, 29 deleted, 16 changed)
      OCL=35584
      CL=35593
      fcdba72d
    • Russ Cox's avatar
      fix build · 867e10f2
      Russ Cox authored
      TBR=r
      OCL=35592
      CL=35592
      867e10f2
    • Kai Backman's avatar
      64bit and float code generation. fmt compiles but · 6d0983ae
      Kai Backman authored
      reflect is broken so fmt doesn't work.
      
      go/test: passes 83% (285/342)
      
      R=rsc
      APPROVED=rsc
      DELTA=415  (240 added, 29 deleted, 146 changed)
      OCL=35576
      CL=35588
      6d0983ae
    • Nigel Tao's avatar
      PNG encoder now filters. · 64145109
      Nigel Tao authored
      R=r,rsc
      APPROVED=r
      DELTA=122  (102 added, 0 deleted, 20 changed)
      OCL=35573
      CL=35587
      64145109
    • Rob Pike's avatar
      better code for allocation through indirection · c0e0f82e
      Rob Pike authored
      R=rsc
      DELTA=11  (3 added, 5 deleted, 3 changed)
      OCL=35583
      CL=35583
      c0e0f82e
    • Rob Pike's avatar
      fix bugs in gob. · 330ab5fd
      Rob Pike authored
      1) didn't handle attempts to encode non-structs properly.
      2) if there were multiple indirections involving allocation, didn't allocate the
      intermediate cells.
      tests added.
      
      R=rsc
      DELTA=82  (65 added, 5 deleted, 12 changed)
      OCL=35582
      CL=35582
      330ab5fd
  3. 11 Oct, 2009 3 commits
    • Russ Cox's avatar
      interpreter checkpoint. · e9841229
      Russ Cox authored
        * generate different versions of binary operators
          for each size of int and float, so that proper
          truncating happens after each operation to
          simulate the various sized ops.
        * add slice expressions
        * publish World.CompileStmtList, CompileDeclList, CompileExpr
        * handle type-less expressions in CompileExpr
      
      R=austin
      DELTA=1459  (1327 added, 11 deleted, 121 changed)
      OCL=34382
      CL=35581
      e9841229
    • Kai Backman's avatar
      fix float <-> int64 conversions · 1620023d
      Kai Backman authored
      R=rsc
      APPROVED=rsc
      DELTA=25  (25 added, 0 deleted, 0 changed)
      OCL=35566
      CL=35574
      1620023d
    • Rob Pike's avatar
      change Title to ToTitle for consistency. (the doc comment was already right) · 5743fb59
      Rob Pike authored
      R=rsc
      DELTA=1  (0 added, 0 deleted, 1 changed)
      OCL=35572
      CL=35572
      5743fb59
  4. 10 Oct, 2009 2 commits
  5. 09 Oct, 2009 13 commits
  6. 08 Oct, 2009 6 commits
  7. 07 Oct, 2009 1 commit
    • Russ Cox's avatar
      better handling of mistaken top-level variable · d5150635
      Russ Cox authored
      references during the parsing of :=.  the base
      problem is that when reading
      
      	a,b,c,d
      
      the parser makes those refer to existing variables,
      which might create a few stub top-level ones
      for undefined names, but then if a := is the next
      token, we need to undo those stubs.
      
      this was causing problems in multifile packages
      in which one file used a := variable named rpc
      and the other imported a package named rpc.
      
      R=ken
      OCL=35446
      CL=35446
      d5150635