1. 08 May, 2009 12 commits
  2. 07 May, 2009 10 commits
    • David Symonds's avatar
      Define Len() for JSON Map. · abdf4853
      David Symonds authored
      R=rsc
      APPROVED=rsc
      DELTA=6  (5 added, 0 deleted, 1 changed)
      OCL=28398
      CL=28430
      abdf4853
    • Russ Cox's avatar
      test of struct with embedded interface. · 9ab8129e
      Russ Cox authored
      also tests method calls on ptr to interface value.
      
      R=r
      DELTA=74  (74 added, 0 deleted, 0 changed)
      OCL=28419
      CL=28424
      9ab8129e
    • Russ Cox's avatar
      if a struct s contains an anonymous interface value · 401a95aa
      Russ Cox authored
      with method m, s.m() is ok and m now shows up
      in s's method set for interface runtime.
      
      see http://cl/28419-p2 for new test interface10.go.
      
      R=ken
      OCL=28420
      CL=28423
      401a95aa
    • Russ Cox's avatar
      next step for 6.out on Borg: fix and test · 0d339928
      Russ Cox authored
      net code on IPv4-only machines.
      
      R=r
      DELTA=27  (25 added, 0 deleted, 2 changed)
      OCL=28404
      CL=28411
      0d339928
    • Russ Cox's avatar
      6g: error messages · 88a1aa8e
      Russ Cox authored
      part 2; missing files
      
      R=ken
      OCL=28408
      CL=28410
      88a1aa8e
    • Russ Cox's avatar
      6g: error messages · b5e212ff
      Russ Cox authored
      replace "shape error across CALL" with more information.
      
      x.go:7: not enough arguments to CALL
      	a int, b int
      	int
      x.go:10: assignment count mismatch: 3 = 2
      x.go:12: too many arguments to RETURN
      	[no arguments expected]
      	int, int, int
      
      also leave type alone after conversion failure,
      for later errors:
      
      bug049.go:6: cannot convert nil constant to string
      bug049.go:6: illegal types for operand: EQ
      	string
      	nil		# this used to be blank
      
      R=ken
      OCL=28405
      CL=28407
      b5e212ff
    • Russ Cox's avatar
      6g: simplify trampoline by postponing load. · 5a67ea38
      Russ Cox authored
      	TEXT tramp
      		MOVQ 8(SP), AX
      		ADDQ $40, AX
      		MOVQ AX, 8(SP)
      		JMP oldfunc
      
      	is now
      
      	TEXT tramp
      		ADDQ $40, 8(SP)
      		JMP oldfunc
      
      	and if s/40/0/, then it simplifies to
      
      	TEXT tramp
      		JMP oldfunc
      
      	(the tramp is still needed to satisfy
      	symbol references from other object files)
      
      R=ken
      OCL=28377
      CL=28381
      5a67ea38
    • Russ Cox's avatar
      interface method tests · e508c557
      Russ Cox authored
      R=r
      DELTA=134  (134 added, 0 deleted, 0 changed)
      OCL=28373
      CL=28380
      e508c557
    • Russ Cox's avatar
      fix a few type errors, make ErrorString a value · 3071f8c8
      Russ Cox authored
      will submit with fixed compiler
      
      R=r
      DELTA=2  (0 added, 0 deleted, 2 changed)
      OCL=28371
      CL=28379
      3071f8c8
    • Russ Cox's avatar
      6g: new interface rules (code got simpler!) · a6ba5ec5
      Russ Cox authored
      R=ken
      OCL=28374
      CL=28378
      a6ba5ec5
  3. 06 May, 2009 12 commits
  4. 05 May, 2009 6 commits
    • Russ Cox's avatar
      6g tweaks · f821e3c7
      Russ Cox authored
      	* byteastring is no longer used
      	* do not generate ODCL, OAS for globals
      	  (wasn't generating any code but might
      	  save one or two init functions)
      	* do not call self from Init function
      
      R=ken
      OCL=28309
      CL=28309
      f821e3c7
    • Russ Cox's avatar
      bug117 is fixed in 6g; now an errchk · b8dd218e
      Russ Cox authored
      R=r
      DELTA=42  (20 added, 22 deleted, 0 changed)
      OCL=28295
      CL=28295
      b8dd218e
    • Russ Cox's avatar
      6l: eliminate dead code, not just the symbols · 9cba9c88
      Russ Cox authored
      editing the firstp list was ineffective,
      because follow rebuilds it from the textp list.
      
      the symbols for dead code were being dropped
      from the binary but the code was all still there.
      
      text for fmt.Printf("hello, world\n") drops
      from 143945 to 128650.
      
      R=r,ken
      DELTA=22  (20 added, 0 deleted, 2 changed)
      OCL=28255
      CL=28290
      9cba9c88
    • Robert Griesemer's avatar
      better io.ByteBuffer implementation: · eea33fc6
      Robert Griesemer authored
      - more light-weight
      - better buffer management
      - added test cases
      
      R=r
      DELTA=227  (167 added, 35 deleted, 25 changed)
      OCL=28252
      CL=28289
      eea33fc6
    • Russ Cox's avatar
      fmt: dead code and data · 747e2616
      Russ Cox authored
      R=r
      DELTA=10  (0 added, 10 deleted, 0 changed)
      OCL=28258
      CL=28287
      747e2616
    • Russ Cox's avatar
      update convlit.go to current spec · 21c9f82f
      Russ Cox authored
      R=r
      DELTA=17  (2 added, 9 deleted, 6 changed)
      OCL=28286
      CL=28286
      21c9f82f