]> Cypherpunks repositories - gostls13.git/log
gostls13.git
16 years agofix build
Rob Pike [Thu, 13 Aug 2009 16:35:42 +0000 (09:35 -0700)]
fix build

R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=33174
CL=33174

16 years agoAdd AUTHORS and LICENSE files.
Rob Pike [Thu, 13 Aug 2009 16:21:28 +0000 (09:21 -0700)]
Add AUTHORS and LICENSE files.

R=gri,iant
DELTA=47  (43 added, 0 deleted, 4 changed)
OCL=33127
CL=33173

16 years agoupdate tutorial
Rob Pike [Thu, 13 Aug 2009 15:54:26 +0000 (08:54 -0700)]
update tutorial

R=rsc
DELTA=30  (5 added, 0 deleted, 25 changed)
OCL=33138
CL=33170

16 years agomechanism for putting go types into 6.out symbol table.
Russ Cox [Thu, 13 Aug 2009 01:16:24 +0000 (18:16 -0700)]
mechanism for putting go types into 6.out symbol table.
no types yet.

R=ken
OCL=33142
CL=33146

16 years agosilence gcc warning
Russ Cox [Thu, 13 Aug 2009 01:14:07 +0000 (18:14 -0700)]
silence gcc warning

R=ken
OCL=33144
CL=33144

16 years agorm outfile if 6g exits with an error
Russ Cox [Thu, 13 Aug 2009 00:58:53 +0000 (17:58 -0700)]
rm outfile if 6g exits with an error

R=ken
OCL=33134
CL=33141

16 years agoConvert interpreter to whole-package compilation.
Austin Clements [Thu, 13 Aug 2009 00:24:05 +0000 (17:24 -0700)]
Convert interpreter to whole-package compilation.

R=rsc
APPROVED=rsc
DELTA=334  (110 added, 211 deleted, 13 changed)
OCL=33135
CL=33137

16 years agoConvert ptrace to whole-package compilation.
Austin Clements [Thu, 13 Aug 2009 00:22:47 +0000 (17:22 -0700)]
Convert ptrace to whole-package compilation.

R=rsc
APPROVED=rsc
DELTA=15  (9 added, 6 deleted, 0 changed)
OCL=33136
CL=33136

16 years agochange gotype in symbol table from
Russ Cox [Wed, 12 Aug 2009 23:14:53 +0000 (16:14 -0700)]
change gotype in symbol table from
character string to machine address.
not filled in, just carved out.

R=austin
DELTA=77  (11 added, 34 deleted, 32 changed)
OCL=33122
CL=33124

16 years agobug188 - sort(x)
Russ Cox [Wed, 12 Aug 2009 22:58:31 +0000 (15:58 -0700)]
bug188 - sort(x)

R=ken
OCL=33123
CL=33123

16 years agorm gobuild
Russ Cox [Wed, 12 Aug 2009 22:17:47 +0000 (15:17 -0700)]
rm gobuild

R=r
DELTA=827  (0 added, 826 deleted, 1 changed)
OCL=33117
CL=33120

16 years agofix bug187 not to crash
Russ Cox [Wed, 12 Aug 2009 21:54:15 +0000 (14:54 -0700)]
fix bug187 not to crash

TBR=austin
DELTA=9  (4 added, 4 deleted, 1 changed)
OCL=33115
CL=33115

16 years agodelete code for forward type declarations
Russ Cox [Wed, 12 Aug 2009 21:41:13 +0000 (14:41 -0700)]
delete code for forward type declarations

R=ken
OCL=33108
CL=33113

16 years agodelete heuristic left over from incremental compilation
Russ Cox [Wed, 12 Aug 2009 21:41:02 +0000 (14:41 -0700)]
delete heuristic left over from incremental compilation

R=r
DELTA=31  (2 added, 28 deleted, 1 changed)
OCL=33064
CL=33112

16 years agodelete forward type declarations
Russ Cox [Wed, 12 Aug 2009 21:40:47 +0000 (14:40 -0700)]
delete forward type declarations

R=r
DELTA=163  (1 added, 149 deleted, 13 changed)
OCL=33106
CL=33111

16 years agoavoid unnecessary installs
Russ Cox [Wed, 12 Aug 2009 21:40:29 +0000 (14:40 -0700)]
avoid unnecessary installs

R=r
DELTA=6  (4 added, 0 deleted, 2 changed)
OCL=33107
CL=33110

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

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

R=ken
OCL=32902
CL=32914

16 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

16 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

16 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

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

TBR=r
OCL=32896
CL=32896

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

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

R=ken
OCL=32772
CL=32772

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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