]> Cypherpunks repositories - gostls13.git/log
gostls13.git
15 years agoBug involving ... initializers and interface values.
Austin Clements [Wed, 12 Aug 2009 20:57:05 +0000 (13:57 -0700)]
Bug involving ... initializers and interface values.

R=rsc
APPROVED=rsc
DELTA=22  (22 added, 0 deleted, 0 changed)
OCL=33053
CL=33104

15 years agofix linux build for whole package compilation
Rob Pike [Wed, 12 Aug 2009 20:51:02 +0000 (13:51 -0700)]
fix linux build for whole package compilation

R=rsc
OCL=33103
CL=33103

15 years agoconvert gob to whole-package compilation.
Russ Cox [Wed, 12 Aug 2009 20:19:27 +0000 (13:19 -0700)]
convert gob to whole-package compilation.
had to reorder some init code.

R=r
DELTA=136  (15 added, 110 deleted, 11 changed)
OCL=33071
CL=33102

15 years agoconvert non-low-level non-google pkg code
Russ Cox [Wed, 12 Aug 2009 20:19:17 +0000 (13:19 -0700)]
convert non-low-level non-google pkg code
to whole-package compilation.

R=r
OCL=33070
CL=33101

15 years agoconvert non-pkg go files to whole-package compilation.
Russ Cox [Wed, 12 Aug 2009 20:18:54 +0000 (13:18 -0700)]
convert non-pkg go files to whole-package compilation.
mostly removing forward declarations.

R=r
DELTA=138  (2 added, 127 deleted, 9 changed)
OCL=33068
CL=33099

15 years agonew included Make.pkg for handwritten package makefiles.
Russ Cox [Wed, 12 Aug 2009 20:18:46 +0000 (13:18 -0700)]
new included Make.pkg for handwritten package makefiles.
gobuild is obsolete; don't build it (will delete eventually).

revised gotest for whole-package compilation.

R=r
DELTA=102  (68 added, 6 deleted, 28 changed)
OCL=33067
CL=33098

15 years agoconvert low-level (used by testing) packages to
Russ Cox [Wed, 12 Aug 2009 20:18:37 +0000 (13:18 -0700)]
convert low-level (used by testing) packages to
whole-package compilation.  new Makefiles,
tests now in separate package

bytes
flag
fmt
io
math
once
os
reflect
strconv
sync
time
utf8

delete import "xxx" in package xxx.

inside package xxx, xxx is not declared
anymore so s/xxx.//g

delete file and package level forward declarations.

note the new internal_test.go and sync
and strconv to provide public access to
internals during testing.  the installed version
of the package omits that file and thus does
not open the internals to all clients.

R=r
OCL=33065
CL=33097

15 years ago6g: save all 64 bits of AX/DX
Russ Cox [Wed, 12 Aug 2009 20:18:27 +0000 (13:18 -0700)]
6g: save all 64 bits of AX/DX

8g: save AX/DX around div

R=ken
OCL=33094
CL=33096

15 years agowhole-package compilation
Russ Cox [Wed, 12 Aug 2009 20:18:19 +0000 (13:18 -0700)]
whole-package compilation

R=ken
OCL=33063
CL=33095

15 years agobug186 - f(iota)
Russ Cox [Wed, 12 Aug 2009 00:05:22 +0000 (17:05 -0700)]
bug186 - f(iota)

R=ken
OCL=33051
CL=33051

15 years agomake a simpler regexp implementation with fewer dependencies and put it inside testing.
Rob Pike [Tue, 11 Aug 2009 20:54:47 +0000 (13:54 -0700)]
make a simpler regexp implementation with fewer dependencies and put it inside testing.
remove "regexp." from regexp tests.

R=rsc
DELTA=1173  (1152 added, 1 deleted, 20 changed)
OCL=33028
CL=33037

15 years agocommentary about extern register
Rob Pike [Tue, 11 Aug 2009 20:30:35 +0000 (13:30 -0700)]
commentary about extern register

R=rsc
DELTA=16  (12 added, 0 deleted, 4 changed)
OCL=33030
CL=33035

15 years agorenamed fast.arith.s to include $GOARCH
Robert Griesemer [Tue, 11 Aug 2009 18:23:05 +0000 (11:23 -0700)]
renamed fast.arith.s to include $GOARCH

R=rsc
DELTA=80  (40 added, 40 deleted, 0 changed)
OCL=33024
CL=33027

15 years agoremove unnecessary pkg. references
Russ Cox [Tue, 11 Aug 2009 05:02:51 +0000 (22:02 -0700)]
remove unnecessary pkg. references

R=r
DELTA=95  (0 added, 0 deleted, 95 changed)
OCL=33012
CL=33012

15 years agofix indirect error
Russ Cox [Tue, 11 Aug 2009 01:19:32 +0000 (18:19 -0700)]
fix indirect error
x.go:3: invalid indirect of X (type int)

was
x.go:3: invalid indirect of nil

R=ken
OCL=33008
CL=33008

15 years ago- use in-place bignum operations where available
Robert Griesemer [Tue, 11 Aug 2009 00:44:46 +0000 (17:44 -0700)]
- use in-place bignum operations where available
- runs approx. 30% faster

R=r
DELTA=24  (10 added, 2 deleted, 12 changed)
OCL=32984
CL=33005

15 years ago- factored out 128-bit muladd and div into arith.go
Robert Griesemer [Tue, 11 Aug 2009 00:29:55 +0000 (17:29 -0700)]
- factored out 128-bit muladd and div into arith.go
- wrote corresponding fast versions in fast.arith.s
- implemented in-place operations for some routines
- updated existing code to be compatible with in-place
  routines

These changes allow the pidigits benchmark to run
approx. 30% faster. Enabling the assembly routines
in fast.arith.s will give another approx. 3%.

R=r
DELTA=486  (252 added, 68 deleted, 166 changed)
OCL=32980
CL=33003

15 years agonew timing data after compiler updates (fp regs, integer div and mod)
Rob Pike [Tue, 11 Aug 2009 00:04:59 +0000 (17:04 -0700)]
new timing data after compiler updates (fp regs, integer div and mod)

R=rsc
DELTA=90  (90 added, 0 deleted, 0 changed)
OCL=32993
CL=33001

15 years agoImplement switch statement. Can now extract effects from
Austin Clements [Mon, 10 Aug 2009 23:27:54 +0000 (16:27 -0700)]
Implement switch statement.  Can now extract effects from
non-addressable expressions.

R=rsc
APPROVED=rsc
DELTA=241  (202 added, 15 deleted, 24 changed)
OCL=32790
CL=32995

15 years ago8-bit div and mod
Russ Cox [Mon, 10 Aug 2009 19:46:23 +0000 (12:46 -0700)]
8-bit div and mod

R=ken
OCL=32975
CL=32975

15 years agobug in int8 mod
Ken Thompson [Mon, 10 Aug 2009 18:20:33 +0000 (11:20 -0700)]
bug in int8 mod

R=rsc
OCL=32971
CL=32971

15 years agoAdd methods AllMatches, AllMatchesString, AllMatchesIter,
Stephen Ma [Mon, 10 Aug 2009 02:30:47 +0000 (19:30 -0700)]
Add methods AllMatches, AllMatchesString, AllMatchesIter,
AllMatchesStringIter, based on sawn and sawzall functions in sawzall.

APPROVED=rsc
DELTA=218  (218 added, 0 deleted, 0 changed)
OCL=32408
CL=32949

15 years agoPartially fix build: don't assume . is in PATH.
David Symonds [Mon, 10 Aug 2009 02:18:40 +0000 (19:18 -0700)]
Partially fix build: don't assume . is in PATH.

APPROVED=rsc
DELTA=1  (1 added, 0 deleted, 0 changed)
OCL=32948
CL=32948

15 years agoincrease from 3 to 11 floating registers
Ken Thompson [Sun, 9 Aug 2009 23:42:21 +0000 (16:42 -0700)]
increase from 3 to 11 floating registers

R=rsc
OCL=32947
CL=32947

15 years ago1. integer division by a constant done.
Ken Thompson [Sun, 9 Aug 2009 22:16:06 +0000 (15:16 -0700)]
1. integer division by a constant done.
2. moved functions from 6g to gc
for portability to other families.
3. added rotate-carry instructions to
peek and reg.

R=rsc
OCL=32946
CL=32946

15 years agoRegenerate v7.tar with a real V7 tar.
David Symonds [Sun, 9 Aug 2009 22:03:30 +0000 (15:03 -0700)]
Regenerate v7.tar with a real V7 tar.
Fix octal parsing that it unearthed.

R=rsc
APPROVED=rsc
DELTA=11  (5 added, 0 deleted, 6 changed)
OCL=32924
CL=32945

15 years agorun benchmarks in a relatively fast test mode, as part of run.bash/all.bash
Rob Pike [Sun, 9 Aug 2009 21:31:05 +0000 (14:31 -0700)]
run benchmarks in a relatively fast test mode, as part of run.bash/all.bash

R=rsc
DELTA=293  (224 added, 0 deleted, 69 changed)
OCL=32917
CL=32944

15 years agoanother plateau - almost done
Ken Thompson [Sat, 8 Aug 2009 23:53:21 +0000 (16:53 -0700)]
another plateau - almost done
only need to fix up certain
denominators

R=rsc
OCL=32928
CL=32928

15 years agoplateau in divide by a constant
Ken Thompson [Sat, 8 Aug 2009 22:26:09 +0000 (15:26 -0700)]
plateau in divide by a constant
still to do - overflow, mod

R=rsc
OCL=32927
CL=32927

15 years agomore work on divide by constant.
Ken Thompson [Sat, 8 Aug 2009 03:21:04 +0000 (20:21 -0700)]
more work on divide by constant.
no real change -- disabled because of bugs

R=rsc
OCL=32923
CL=32923

15 years ago- clarified section on return statements
Robert Griesemer [Sat, 8 Aug 2009 00:05:41 +0000 (17:05 -0700)]
- clarified section on return statements
- added some TODOs

DELTA=46  (15 added, 4 deleted, 27 changed)
OCL=32901
CL=32918

15 years agobug159
Russ Cox [Fri, 7 Aug 2009 23:47:54 +0000 (16:47 -0700)]
bug159

R=ken
OCL=32902
CL=32914

15 years agochameneos
Rob Pike [Fri, 7 Aug 2009 22:28:46 +0000 (15:28 -0700)]
chameneos

R=rsc
DELTA=514  (513 added, 0 deleted, 1 changed)
OCL=32898
CL=32910

15 years agoremove 8.out before creating it.
Russ Cox [Fri, 7 Aug 2009 22:22:09 +0000 (15:22 -0700)]
remove 8.out before creating it.
hope this will work around Mac NFS bug
where writing to an 8.out that has crashed
recently sometimes wedges NFS.

R=r
DELTA=3  (3 added, 0 deleted, 0 changed)
OCL=32906
CL=32908

15 years agobug185 - return b,a from func() (a,b int)
Russ Cox [Fri, 7 Aug 2009 21:38:31 +0000 (14:38 -0700)]
bug185 - return b,a from func() (a,b int)

R=ken
OCL=32900
CL=32900

15 years agoannotations
Russ Cox [Fri, 7 Aug 2009 21:18:30 +0000 (14:18 -0700)]
annotations

TBR=r
OCL=32896
CL=32896

15 years agobug184 - assignment compatibility in unpacked multireturn
Russ Cox [Fri, 7 Aug 2009 21:00:18 +0000 (14:00 -0700)]
bug184 - assignment compatibility in unpacked multireturn

R=ken
OCL=32890
CL=32894

15 years agosimplify threadring slightly; slight speed improvement
Rob Pike [Fri, 7 Aug 2009 20:30:20 +0000 (13:30 -0700)]
simplify threadring slightly; slight speed improvement

R=rsc
DELTA=7  (3 added, 3 deleted, 1 changed)
OCL=32885
CL=32889

15 years agobug183 - embedded vs non-embedded struct field in eqtype
Russ Cox [Fri, 7 Aug 2009 20:23:09 +0000 (13:23 -0700)]
bug183 - embedded vs non-embedded struct field in eqtype

R=ken
OCL=32888
CL=32888

15 years agobug182 - compiler crash
Russ Cox [Fri, 7 Aug 2009 20:17:28 +0000 (13:17 -0700)]
bug182 - compiler crash

R=ken
OCL=32887
CL=32887

15 years agobug181 - type T *struct { T } is an invalid embedded type
Russ Cox [Fri, 7 Aug 2009 20:14:01 +0000 (13:14 -0700)]
bug181 - type T *struct { T } is an invalid embedded type

R=ken
OCL=32886
CL=32886

15 years agoclean up a few error messages;
Russ Cox [Fri, 7 Aug 2009 20:00:20 +0000 (13:00 -0700)]
clean up a few error messages;
disable func redeclaration mismatch test;
fix golden.out

R=ken
OCL=32883
CL=32883

15 years ago8 shift bug
Russ Cox [Fri, 7 Aug 2009 19:57:44 +0000 (12:57 -0700)]
8 shift bug

R=ken
OCL=32882
CL=32882

15 years agothreadring
Rob Pike [Fri, 7 Aug 2009 19:53:51 +0000 (12:53 -0700)]
threadring
more interesting than most

R=rsc
DELTA=132  (131 added, 0 deleted, 1 changed)
OCL=32876
CL=32881

15 years agoforward declarations not necessary.
Russ Cox [Fri, 7 Aug 2009 19:50:26 +0000 (12:50 -0700)]
forward declarations not necessary.
still to do:
* initializer cycle detection
* nicer error for type checking cycles

R=ken
OCL=32855
CL=32880

15 years agotiming updates after 6g change for efficient division by powers of two
Rob Pike [Fri, 7 Aug 2009 17:39:45 +0000 (10:39 -0700)]
timing updates after 6g change for efficient division by powers of two

R=rsc
DELTA=25  (23 added, 0 deleted, 2 changed)
OCL=32873
CL=32875

15 years agodivide by a constant power of 2
Ken Thompson [Fri, 7 Aug 2009 05:33:12 +0000 (22:33 -0700)]
divide by a constant power of 2

R=rsc
OCL=32858
CL=32858

15 years agotimings for pidigits
Rob Pike [Fri, 7 Aug 2009 01:27:15 +0000 (18:27 -0700)]
timings for pidigits

TBR=rsc
OCL=32857
CL=32857

15 years ago- initial version of pidigits.go benchmark
Robert Griesemer [Fri, 7 Aug 2009 01:16:51 +0000 (18:16 -0700)]
- initial version of pidigits.go benchmark
- extra bignum.go functionality for pidigits.go
- tuned bignum multiplication

R=r
DELTA=193  (186 added, 0 deleted, 7 changed)
OCL=32852
CL=32856

15 years agometeor-contest
Rob Pike [Fri, 7 Aug 2009 01:04:48 +0000 (18:04 -0700)]
meteor-contest

R=rsc
DELTA=1276  (1275 added, 0 deleted, 1 changed)
OCL=32851
CL=32854

15 years ago- allow more general type switch syntax
Robert Griesemer [Fri, 7 Aug 2009 00:44:56 +0000 (17:44 -0700)]
- allow more general type switch syntax
- support for reverse printing of AST
  (for compiler testing)
- added -reverse flag to gofmt

R=rsc
DELTA=163  (125 added, 11 deleted, 27 changed)
OCL=32808
CL=32853

15 years agomandelbrot
Rob Pike [Thu, 6 Aug 2009 21:21:21 +0000 (14:21 -0700)]
mandelbrot

R=rsc
DELTA=147  (145 added, 0 deleted, 2 changed)
OCL=32840
CL=32845

15 years agoMake ptrace_linux compile with recent changes to switch type
Austin Clements [Thu, 6 Aug 2009 20:54:13 +0000 (13:54 -0700)]
Make ptrace_linux compile with recent changes to switch type
checking.

R=rsc
APPROVED=rsc
DELTA=11  (0 added, 0 deleted, 11 changed)
OCL=32839
CL=32841

15 years agoadd runtime.GOMAXPROCS, allowing a program to, in effect, set $GOMAXPROCS
Rob Pike [Thu, 6 Aug 2009 20:07:05 +0000 (13:07 -0700)]
add runtime.GOMAXPROCS, allowing a program to, in effect, set $GOMAXPROCS

R=rsc
DELTA=29  (28 added, 1 deleted, 0 changed)
OCL=32829
CL=32837

15 years agok-nucleotide
Rob Pike [Thu, 6 Aug 2009 20:00:26 +0000 (13:00 -0700)]
k-nucleotide

R=rsc
DELTA=367  (366 added, 0 deleted, 1 changed)
OCL=32832
CL=32836

15 years ago- bufio.ReadRune fix for empty reads w/o errors
Robert Griesemer [Thu, 6 Aug 2009 19:05:16 +0000 (12:05 -0700)]
- bufio.ReadRune fix for empty reads w/o errors
- added testcases

R=rsc
DELTA=61  (56 added, 2 deleted, 3 changed)
OCL=32831
CL=32834

15 years agominor fix
Robert Griesemer [Thu, 6 Aug 2009 17:53:29 +0000 (10:53 -0700)]
minor fix

R=rsc
DELTA=2  (1 added, 1 deleted, 0 changed)
OCL=32828
CL=32830

15 years agoparallel spectral-norm
Rob Pike [Thu, 6 Aug 2009 01:44:49 +0000 (18:44 -0700)]
parallel spectral-norm

R=rsc
DELTA=85  (84 added, 1 deleted, 0 changed)
OCL=32810
CL=32810

15 years agospectral-norm
Rob Pike [Thu, 6 Aug 2009 00:25:38 +0000 (17:25 -0700)]
spectral-norm
make regexp-dna use bytes not strings (no significant timing change)

R=rsc
DELTA=149  (138 added, 1 deleted, 10 changed)
OCL=32804
CL=32807

15 years ago- FieldByName lookup through anonymous fields
Robert Griesemer [Wed, 5 Aug 2009 22:56:44 +0000 (15:56 -0700)]
- FieldByName lookup through anonymous fields
- FieldByIndex
- changed StructField.Index type from int -> []int
- adjustments to reflect clients

R=rsc,r
DELTA=336  (263 added, 47 deleted, 26 changed)
OCL=32731
CL=32802

15 years agosupport []byte (more efficient) as well as string in the interfaces.
Rob Pike [Wed, 5 Aug 2009 22:44:45 +0000 (15:44 -0700)]
support []byte (more efficient) as well as string in the interfaces.
change the names; Match is for []byte and MatchString is for string, etc.

R=rsc
DELTA=195  (155 added, 0 deleted, 40 changed)
OCL=32800
CL=32800

15 years agospecial case: recognize '[^\n]' and make it as fast as '.'
Rob Pike [Wed, 5 Aug 2009 21:40:34 +0000 (14:40 -0700)]
special case: recognize '[^\n]' and make it as fast as '.'

R=rsc
DELTA=25  (23 added, 1 deleted, 1 changed)
OCL=32793
CL=32799

15 years agoMake os.RemoveAll return no error if path does not exist.
Austin Clements [Wed, 5 Aug 2009 21:18:54 +0000 (14:18 -0700)]
Make os.RemoveAll return no error if path does not exist.
This fixes a problem introduced by CL 32684 into gobuild,
which used to use 'rm -rf' to remove the _obj directory.

R=rsc
APPROVED=rsc
DELTA=8  (4 added, 0 deleted, 4 changed)
OCL=32794
CL=32796

15 years agoregex-dna
Rob Pike [Wed, 5 Aug 2009 20:03:46 +0000 (13:03 -0700)]
regex-dna

R=rsc
DELTA=243  (242 added, 0 deleted, 1 changed)
OCL=32786
CL=32791

15 years agoImplement struct types, selector expressions, and type
Austin Clements [Wed, 5 Aug 2009 18:49:51 +0000 (11:49 -0700)]
Implement struct types, selector expressions, and type
declarations.

R=rsc
APPROVED=rsc
DELTA=587  (519 added, 21 deleted, 47 changed)
OCL=32754
CL=32788

15 years agofannkuch
Rob Pike [Wed, 5 Aug 2009 18:33:59 +0000 (11:33 -0700)]
fannkuch

R=rsc
DELTA=240  (239 added, 0 deleted, 1 changed)
OCL=32783
CL=32785

15 years agodelay range processing. old2new is gone
Russ Cox [Wed, 5 Aug 2009 09:33:30 +0000 (02:33 -0700)]
delay range processing.  old2new is gone

R=ken
OCL=32780
CL=32780

15 years agodelay := processing
Russ Cox [Wed, 5 Aug 2009 07:42:44 +0000 (00:42 -0700)]
delay := processing

R=ken
OCL=32772
CL=32772

15 years agofix amd64 build
Russ Cox [Wed, 5 Aug 2009 07:11:24 +0000 (00:11 -0700)]
fix amd64 build

R=ken
OCL=32771
CL=32771

15 years agomake Syms smaller.
Russ Cox [Wed, 5 Aug 2009 05:59:23 +0000 (22:59 -0700)]
make Syms smaller.
collapse a lot of duplication in dcl.c
switch to NodeList* from Dcl*

R=ken
OCL=32770
CL=32770

15 years agobinary tree
Rob Pike [Wed, 5 Aug 2009 02:38:08 +0000 (19:38 -0700)]
binary tree

R=rsc
DELTA=324  (323 added, 0 deleted, 1 changed)
OCL=32759
CL=32768

15 years agoget function calls out of the way before
Russ Cox [Wed, 5 Aug 2009 02:16:57 +0000 (19:16 -0700)]
get function calls out of the way before
allocating registers in shift and div.

fix behavior when res == a reserved register.

R=ken
OCL=32765
CL=32767

15 years agomove various bits of code around
Russ Cox [Wed, 5 Aug 2009 01:43:32 +0000 (18:43 -0700)]
move various bits of code around
and delete some dead code.
no actual changes here.

R=ken
OCL=32764
CL=32764

15 years agofix division bug
Russ Cox [Wed, 5 Aug 2009 00:59:10 +0000 (17:59 -0700)]
fix division bug

R=ken
OCL=32760
CL=32760

15 years agoadd info about Sqrt instruction
Rob Pike [Wed, 5 Aug 2009 00:31:19 +0000 (17:31 -0700)]
add info about Sqrt instruction
couple of fixes to timing.sh

R=rsc
DELTA=10  (5 added, 0 deleted, 5 changed)
OCL=32742
CL=32756

15 years agodelayed evaluation of var blocks
Russ Cox [Tue, 4 Aug 2009 23:53:06 +0000 (16:53 -0700)]
delayed evaluation of var blocks

R=ken
OCL=32750
CL=32753

15 years agofix build
Rob Pike [Tue, 4 Aug 2009 22:35:58 +0000 (15:35 -0700)]
fix build

R=gri,rsc
OCL=32748
CL=32748

15 years agonbody benchmark
Rob Pike [Tue, 4 Aug 2009 21:27:46 +0000 (14:27 -0700)]
nbody benchmark
timing.sh improvements

R=rsc
DELTA=334  (319 added, 0 deleted, 15 changed)
OCL=32734
CL=32736

15 years agotrailing newlines
Russ Cox [Tue, 4 Aug 2009 21:22:23 +0000 (14:22 -0700)]
trailing newlines

R=r
DELTA=0  (0 added, 0 deleted, 0 changed)
OCL=32730
CL=32735

15 years agoimprove myrandom() in fasta.
Rob Pike [Tue, 4 Aug 2009 21:07:17 +0000 (14:07 -0700)]
improve myrandom() in fasta.
add script to automate timing

R=rsc
DELTA=78  (68 added, 0 deleted, 10 changed)
OCL=32729
CL=32732

15 years agoanother benchmark: reverse-complement
Rob Pike [Tue, 4 Aug 2009 20:04:37 +0000 (13:04 -0700)]
another benchmark: reverse-complement

R=rsc
DELTA=682  (511 added, 171 deleted, 0 changed)
OCL=32725
CL=32727

15 years agomove select into its own file.
Russ Cox [Tue, 4 Aug 2009 19:57:48 +0000 (12:57 -0700)]
move select into its own file.
split into typecheck + walk

R=ken
OCL=32726
CL=32726

15 years agotype checking of assignments, switch, if, for
Russ Cox [Tue, 4 Aug 2009 17:26:29 +0000 (10:26 -0700)]
type checking of assignments, switch, if, for

R=ken
OCL=32716
CL=32720

15 years agoclean up the code a bit
Rob Pike [Tue, 4 Aug 2009 17:13:58 +0000 (10:13 -0700)]
clean up the code a bit
start a log of progress

R=rsc
DELTA=222  (185 added, 17 deleted, 20 changed)
OCL=32701
CL=32718

15 years agobenchmark checkpoint milestone checkin submission
Rob Pike [Tue, 4 Aug 2009 04:03:58 +0000 (21:03 -0700)]
benchmark checkpoint milestone checkin submission

R=rsc
DELTA=311  (311 added, 0 deleted, 0 changed)
OCL=32696
CL=32699

15 years agoprint profile to stderr. sheesh.
Rob Pike [Tue, 4 Aug 2009 04:03:40 +0000 (21:03 -0700)]
print profile to stderr.  sheesh.

R=rsc
DELTA=40  (0 added, 0 deleted, 40 changed)
OCL=32694
CL=32698

15 years agoWriteString
Rob Pike [Tue, 4 Aug 2009 01:28:05 +0000 (18:28 -0700)]
WriteString

R=rsc
DELTA=41  (41 added, 0 deleted, 0 changed)
OCL=32692
CL=32697

15 years agothis time really clean up a TODO
Rob Pike [Mon, 3 Aug 2009 22:27:15 +0000 (15:27 -0700)]
this time really clean up a TODO

R=rsc
DELTA=28  (0 added, 20 deleted, 8 changed)
OCL=32676
CL=32684

15 years agoclean up a TODO
Rob Pike [Mon, 3 Aug 2009 21:07:19 +0000 (14:07 -0700)]
clean up a TODO

R=rsc
DELTA=45  (28 added, 4 deleted, 13 changed)
OCL=32673
CL=32675

15 years agodon't crash printing a nil map
Rob Pike [Mon, 3 Aug 2009 20:34:20 +0000 (13:34 -0700)]
don't crash printing a nil map

R=rsc
DELTA=19  (18 added, 0 deleted, 1 changed)
OCL=32656
CL=32670

15 years agomore 6g reorg; checkpoint.
Russ Cox [Mon, 3 Aug 2009 18:58:52 +0000 (11:58 -0700)]
more 6g reorg; checkpoint.
typecheck.c is now responsible for all type checking
except for assignment and function argument "..."

R=ken
OCL=32661
CL=32667

15 years agoprinter.go:
Robert Griesemer [Mon, 3 Aug 2009 16:53:00 +0000 (09:53 -0700)]
printer.go:
- emit line tag id's in html mode
- support for general html tags
- better names for a few identifiers

godoc.go:
- emit links from exported names to source code
  (actual placement needs fine-tuning)

R=rsc
DELTA=108  (68 added, 4 deleted, 36 changed)
OCL=32639
CL=32654

15 years agofix long-standing bug in doc reader:
Robert Griesemer [Sat, 1 Aug 2009 01:40:11 +0000 (18:40 -0700)]
fix long-standing bug in doc reader:
- replace forward-declared types with complete
  declaration when it is found

R=rsc
DELTA=23  (15 added, 0 deleted, 8 changed)
OCL=32618
CL=32618

15 years agolanguage re: conversion of left operand in shift operations
Robert Griesemer [Sat, 1 Aug 2009 01:05:07 +0000 (18:05 -0700)]
language re: conversion of left operand in shift operations

DELTA=5  (5 added, 0 deleted, 0 changed)
OCL=32484
CL=32617

15 years agoprinter:
Robert Griesemer [Sat, 1 Aug 2009 01:04:53 +0000 (18:04 -0700)]
printer:
- prepare for generation of HTML id tags and links
- do HTML-escaping in central print routine
- move tabwriter setup into printer
- fixed various TODOs

godoc:
- removed tabwriter setup, need for various HTML-escaping

R=rsc
DELTA=210  (107 added, 36 deleted, 67 changed)
OCL=32612
CL=32616

15 years agomore info about comments
Rob Pike [Sat, 1 Aug 2009 00:54:00 +0000 (17:54 -0700)]
more info about comments

R=rsc
DELTA=100  (82 added, 4 deleted, 14 changed)
OCL=32609
CL=32615

15 years agoImplement type compatibility and fix places where I thought
Austin Clements [Sat, 1 Aug 2009 00:11:34 +0000 (17:11 -0700)]
Implement type compatibility and fix places where I thought
types were supposed to be identical but only needed to be
compatible.  This gets rid of the Type.literal method.  I
renamed the Type.rep method to Type.lit because I believe it
corresponds to the term "literal" as used in the spec.

R=rsc
APPROVED=rsc
DELTA=228  (57 added, 35 deleted, 136 changed)
OCL=32606
CL=32608

15 years agoImplement var declarations. Variables, constants, and types now carry
Austin Clements [Fri, 31 Jul 2009 22:51:27 +0000 (15:51 -0700)]
Implement var declarations.  Variables, constants, and types now carry
the position where they were defined so I can produce good
error messages on redefinitions.

R=rsc
APPROVED=rsc
DELTA=204  (126 added, 13 deleted, 65 changed)
OCL=32599
CL=32605

15 years agoadd test of invariant in findVar
Rob Pike [Fri, 31 Jul 2009 19:52:03 +0000 (12:52 -0700)]
add test of invariant in findVar

R=rsc
DELTA=23  (23 added, 0 deleted, 0 changed)
OCL=32592
CL=32595

15 years agodelete unused arg to empty.
Rob Pike [Fri, 31 Jul 2009 19:42:29 +0000 (12:42 -0700)]
delete unused arg to empty.
add commentary about findVar's invariant.

R=rsc
DELTA=6  (3 added, 0 deleted, 3 changed)
OCL=32583
CL=32594