1. 08 May, 2009 17 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 1 commit
    • 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