summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2009-08-12convert non-low-level non-google pkg codeRuss Cox166-2920/+308
to whole-package compilation. R=r OCL=33070 CL=33101
2009-08-12new included Make.pkg for handwritten package makefiles.Russ Cox3-34/+100
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
2009-08-12convert low-level (used by testing) packages toRuss Cox81-1083/+332
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
2009-08-126g: save all 64 bits of AX/DXRuss Cox2-33/+58
8g: save AX/DX around div R=ken OCL=33094 CL=33096
2009-08-12whole-package compilationRuss Cox7-83/+204
R=ken OCL=33063 CL=33095
2009-08-11bug186 - f(iota)Russ Cox3-4/+9
R=ken OCL=33051 CL=33051
2009-08-11make a simpler regexp implementation with fewer dependencies and put it ↵Rob Pike5-21/+1174
inside testing. remove "regexp." from regexp tests. R=rsc DELTA=1173 (1152 added, 1 deleted, 20 changed) OCL=33028 CL=33037
2009-08-11commentary about extern registerRob Pike1-3/+15
R=rsc DELTA=16 (12 added, 0 deleted, 4 changed) OCL=33030 CL=33035
2009-08-11renamed fast.arith.s to include $GOARCHRobert Griesemer1-0/+0
R=rsc DELTA=80 (40 added, 40 deleted, 0 changed) OCL=33024 CL=33027
2009-08-10remove unnecessary pkg. referencesRuss Cox20-86/+86
R=r DELTA=95 (0 added, 0 deleted, 95 changed) OCL=33012 CL=33012
2009-08-10fix indirect errorRuss Cox2-2/+4
x.go:3: invalid indirect of X (type int) was x.go:3: invalid indirect of nil R=ken OCL=33008 CL=33008
2009-08-10- factored out 128-bit muladd and div into arith.goRobert Griesemer6-193/+379
- 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
2009-08-108-bit div and modRuss Cox1-8/+30
R=ken OCL=32975 CL=32975
2009-08-10bug in int8 modKen Thompson1-3/+2
R=rsc OCL=32971 CL=32971
2009-08-09Add methods AllMatches, AllMatchesString, AllMatchesIter,Stephen Ma2-0/+218
AllMatchesStringIter, based on sawn and sawzall functions in sawzall. APPROVED=rsc DELTA=218 (218 added, 0 deleted, 0 changed) OCL=32408 CL=32949
2009-08-09increase from 3 to 11 floating registersKen Thompson2-5/+5
R=rsc OCL=32947 CL=32947
2009-08-091. integer division by a constant done.Ken Thompson7-287/+361
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
2009-08-09Regenerate v7.tar with a real V7 tar.David Symonds3-5/+10
Fix octal parsing that it unearthed. R=rsc APPROVED=rsc DELTA=11 (5 added, 0 deleted, 6 changed) OCL=32924 CL=32945
2009-08-09run benchmarks in a relatively fast test mode, as part of run.bash/all.bashRob Pike1-0/+4
R=rsc DELTA=293 (224 added, 0 deleted, 69 changed) OCL=32917 CL=32944
2009-08-08another plateau - almost doneKen Thompson1-13/+58
only need to fix up certain denominators R=rsc OCL=32928 CL=32928
2009-08-08plateau in divide by a constantKen Thompson3-8/+53
still to do - overflow, mod R=rsc OCL=32927 CL=32927
2009-08-07more work on divide by constant.Ken Thompson3-73/+360
no real change -- disabled because of bugs R=rsc OCL=32923 CL=32923
2009-08-07bug159Russ Cox1-1/+14
R=ken OCL=32902 CL=32914
2009-08-07remove 8.out before creating it.Russ Cox3-0/+3
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
2009-08-07bug185 - return b,a from func() (a,b int)Russ Cox1-4/+34
R=ken OCL=32900 CL=32900
2009-08-07bug184 - assignment compatibility in unpacked multireturnRuss Cox2-16/+31
R=ken OCL=32890 CL=32894
2009-08-07bug183 - embedded vs non-embedded struct field in eqtypeRuss Cox1-0/+2
R=ken OCL=32888 CL=32888
2009-08-07bug182 - compiler crashRuss Cox1-1/+1
R=ken OCL=32887 CL=32887
2009-08-07bug181 - type T *struct { T } is an invalid embedded typeRuss Cox3-2/+11
R=ken OCL=32886 CL=32886
2009-08-07clean up a few error messages;Russ Cox2-2/+2
disable func redeclaration mismatch test; fix golden.out R=ken OCL=32883 CL=32883
2009-08-078 shift bugRuss Cox1-2/+29
R=ken OCL=32882 CL=32882
2009-08-07forward declarations not necessary.Russ Cox16-668/+990
still to do: * initializer cycle detection * nicer error for type checking cycles R=ken OCL=32855 CL=32880
2009-08-06divide by a constant power of 2Ken Thompson3-2/+136
R=rsc OCL=32858 CL=32858
2009-08-06- initial version of pidigits.go benchmarkRobert Griesemer2-6/+93
- extra bignum.go functionality for pidigits.go - tuned bignum multiplication R=r DELTA=193 (186 added, 0 deleted, 7 changed) OCL=32852 CL=32856
2009-08-06- allow more general type switch syntaxRobert Griesemer6-36/+150
- 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
2009-08-06add runtime.GOMAXPROCS, allowing a program to, in effect, set $GOMAXPROCSRob Pike2-1/+26
R=rsc DELTA=29 (28 added, 1 deleted, 0 changed) OCL=32829 CL=32837
2009-08-06- bufio.ReadRune fix for empty reads w/o errorsRobert Griesemer2-5/+59
- added testcases R=rsc DELTA=61 (56 added, 2 deleted, 3 changed) OCL=32831 CL=32834
2009-08-06minor fixRobert Griesemer1-1/+1
R=rsc DELTA=2 (1 added, 1 deleted, 0 changed) OCL=32828 CL=32830
2009-08-05- FieldByName lookup through anonymous fieldsRobert Griesemer6-60/+276
- 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
2009-08-05support []byte (more efficient) as well as string in the interfaces.Rob Pike7-33/+188
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
2009-08-05special case: recognize '[^\n]' and make it as fast as '.'Rob Pike2-2/+24
R=rsc DELTA=25 (23 added, 1 deleted, 1 changed) OCL=32793 CL=32799
2009-08-05Make os.RemoveAll return no error if path does not exist.Austin Clements1-4/+8
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
2009-08-05delay range processing. old2new is goneRuss Cox9-363/+286
R=ken OCL=32780 CL=32780
2009-08-05delay := processingRuss Cox10-329/+218
R=ken OCL=32772 CL=32772
2009-08-05fix amd64 buildRuss Cox1-4/+4
R=ken OCL=32771 CL=32771
2009-08-04make Syms smaller.Russ Cox14-418/+210
collapse a lot of duplication in dcl.c switch to NodeList* from Dcl* R=ken OCL=32770 CL=32770
2009-08-04get function calls out of the way beforeRuss Cox2-15/+51
allocating registers in shift and div. fix behavior when res == a reserved register. R=ken OCL=32765 CL=32767
2009-08-04move various bits of code aroundRuss Cox7-1238/+1232
and delete some dead code. no actual changes here. R=ken OCL=32764 CL=32764
2009-08-04fix division bugRuss Cox1-2/+27
R=ken OCL=32760 CL=32760
2009-08-04delayed evaluation of var blocksRuss Cox6-48/+97
R=ken OCL=32750 CL=32753