summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-02-06tgs's gc bug.Russ Cox1-3/+10
R=r DELTA=10 (7 added, 0 deleted, 3 changed) OCL=24577 CL=24577
2009-02-06add a trivial visitor method, just for funRob Pike2-1/+30
R=gri DELTA=31 (30 added, 1 deleted, 0 changed) OCL=24568 CL=24575
2009-02-06closures - 6g supportRuss Cox8-61/+251
R=ken OCL=24501 CL=24566
2009-02-06closures - runtime and debugger support, test caseRuss Cox6-7/+260
R=r DELTA=257 (250 added, 1 deleted, 6 changed) OCL=24509 CL=24565
2009-02-06- preparation for setting up typesRobert Griesemer10-427/+495
- moved Object, Type, Scope out of AST into symboltable - moved universe into symboltable - removed dead code - fixed dependency computation (pretty -d filename.go) - lots of cleanups - removed tocken channel connection between parser and scanner (was cute, but not really needed) R=r OCL=24545 CL=24545
2009-02-056c: byte* - byte* should be int64, not int32.Russ Cox1-1/+1
R=ken OCL=24507 CL=24507
2009-02-05making go-spec conform with 6g:Robert Griesemer1-4/+3
- equality of struct types requires equality of field names DELTA=4 (0 added, 1 deleted, 3 changed) OCL=24478 CL=24487
2009-02-05further pedagogy: a channel that satisfies the HTTP server interfaceRob Pike1-0/+18
R=rsc DELTA=18 (18 added, 0 deleted, 0 changed) OCL=24482 CL=24484
2009-02-05bug064Russ Cox5-10/+22
make f(g()) work when g returns multiple args with names different than f expects. func swap(a, b int) (c, d int) { return b, a } swap(swap(1,2)) R=ken OCL=24474 CL=24476
2009-02-05take advantage of methods on funcsRuss Cox1-14/+1
R=r DELTA=14 (0 added, 13 deleted, 1 changed) OCL=24458 CL=24470
2009-02-05do not generate Init proto for sys and unsafe.Russ Cox2-2/+5
R=ken OCL=24455 CL=24455
2009-02-05- caseify parser functions (all but a few should not be exported)Robert Griesemer1-553/+491
- more elegant tracing code - removed some dead code, cleanups R=r OCL=24452 CL=24452
2009-02-05heuristic to stop pulling .6 in from .aRuss Cox3-25/+3
is not right if the .6 is only for data and the init function. instead of that, pick up everything and let the dead code/data eliminator throw away the parts that weren't useful. R=r DELTA=25 (0 added, 22 deleted, 3 changed) OCL=24446 CL=24446
2009-02-05allow methods on funcs.Russ Cox1-0/+1
R=ken OCL=24442 CL=24442
2009-02-05fix build on thresher - missing constantsRuss Cox1-0/+25
TBR=r OCL=24439 CL=24439
2009-02-05Rename function to avoid function redefinition error. RemoveIan Lance Taylor1-3/+3
.* from regexp since it confuses DejaGNU which runs gcc's testsuite. R=rsc DELTA=3 (0 added, 0 deleted, 3 changed) OCL=24435 CL=24438
2009-02-05snapshot:Robert Griesemer4-520/+103
- ast statements now use interfaces - deleted old (now unused) code R=r OCL=24422 CL=24422
2009-02-04today's snapshot: steps towards using interfaces for statements in astRobert Griesemer3-89/+587
R=r OCL=24380 CL=24380
2009-02-04a few tweaks triggered by tgs's commentsRob Pike1-20/+44
DELTA=46 (25 added, 1 deleted, 20 changed) OCL=24342 CL=24354
2009-02-04clean up flags package a bit.Rob Pike1-28/+31
fix a bug in Usage message - would print current value instead of default. R=rsc DELTA=53 (7 added, 4 deleted, 42 changed) OCL=24323 CL=24323
2009-02-04fix interface not satisifed message:Russ Cox1-1/+1
x.go:13: T is not I - missing M() NOT x.go:13: T is not I - missing Mfunc() R=ken OCL=24316 CL=24316
2009-02-03- converted expr representation of ast into a new representationRobert Griesemer4-594/+786
using interfaces properly => much cleaner code - converted tracing code to use 'defer' statement - next steps: convert rest of ast as well R=r OCL=24277 CL=24277
2009-02-03bugs cleanup, including deleting one near-identical duplicate bugRob Pike3-29/+3
R=rsc DELTA=52 (15 added, 37 deleted, 0 changed) OCL=24274 CL=24274
2009-02-03fix build. missed this fileRuss Cox1-11/+4
TBR=r OCL=24269 CL=24269
2009-02-03libmach:Russ Cox5-279/+729
* heuristic to go farther during stack traces. * significantly improved Linux thread handing. acid: * update to new libmach interface. prof: * use new libmach interface. * multiple thread support (derived from Rob's copy). * first steps toward pprof-like graphs: keep counters indexed by pc,callerpc pairs. R=r DELTA=909 (576 added, 123 deleted, 210 changed) OCL=24240 CL=24259
2009-02-03bufio:Russ Cox8-172/+251
* avoid large copies * NewBufRead, NewBufWrite never fail * add BufReadWrite io: * add io.Close http, google/net/rpc: * add, use http.Conn.Hijack R=r DELTA=416 (202 added, 123 deleted, 91 changed) OCL=24153 CL=24238
2009-02-02minor tweaksRuss Cox2-11/+8
R=r DELTA=9 (2 added, 5 deleted, 2 changed) OCL=24107 CL=24152
2009-02-02flesh out http server.Russ Cox5-147/+545
convert to uppercase names. R=r DELTA=613 (460 added, 61 deleted, 92 changed) OCL=24139 CL=24145
2009-02-026g return struct fix:Russ Cox3-9/+10
make t->width of funarg struct be width of struct. emit MOVSL for 4-byte copy. R=ken OCL=24108 CL=24111
2009-02-02marginally better thread debugging on Linux.Russ Cox1-18/+47
if you clone inside a traced pid, the child is automatically attached and stopped, apparently. R=r DELTA=63 (41 added, 12 deleted, 10 changed) OCL=24096 CL=24106
2009-02-02- added experimental flag '-def': will print (not parse!)Robert Griesemer1-1/+6
'def' instead of 'func', 'const', or 'type' R=r OCL=24092 CL=24094
2009-01-31slightly better code for the frog fixRob Pike1-2/+2
R=ken OCL=24025 CL=24025
2009-01-31Complain about control characters that are not white space.Rob Pike1-1/+26
Bitten by invisible chars too many times. R=ken OCL=24024 CL=24024
2009-01-30can finally close this TODO - 6l was brokenRuss Cox1-2/+0
R=r DELTA=2 (0 added, 2 deleted, 0 changed) OCL=23993 CL=23995
2009-01-30keep line number history even whenRuss Cox2-2/+5
throwing away dead code at end of file. also fix an uninitialized memory error found by valgrind. R=r DELTA=7 (5 added, 2 deleted, 0 changed) OCL=23991 CL=23994
2009-01-30avoid memcpy(x, x),Russ Cox1-1/+1
which valgrind complains about. R=ken OCL=23990 CL=23990
2009-01-30- changed pretty parser to parse and print new function type syntaxRobert Griesemer4-40/+56
- added more test cases - fixed a bug in test script which prevented errors to show up... R=r OCL=23832 CL=23974
2009-01-30two uses of uninitialized memory,Russ Cox2-2/+3
picked up by valgrind. fixes test/escape.go on linux. R=ken OCL=23971 CL=23971
2009-01-30needless semicolonsRob Pike2-2/+2
R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=23967 CL=23970
2009-01-30print format bugRuss Cox1-1/+1
R=ken OCL=23965 CL=23965
2009-01-30Test balloon: Changed the spec to see the implications of changing theRobert Griesemer1-68/+85
syntax of function types and making them "reference types" like slice, map, and chan. First step in Russ' proposal. DELTA=111 (32 added, 15 deleted, 64 changed) OCL=23669 CL=23964
2009-01-30update compiler to new func rulesRuss Cox14-118/+141
R=ken OCL=23958 CL=23961
2009-01-30update go code tree to new func rules.Russ Cox24-121/+169
R=r DELTA=367 (111 added, 59 deleted, 197 changed) OCL=23957 CL=23960
2009-01-30rename variable at rsc's requestRob Pike2-4/+4
R=rsc DELTA=4 (0 added, 0 deleted, 4 changed) OCL=23896 CL=23928
2009-01-30clean up server code in tutorialRob Pike4-14/+15
R=rsc DELTA=15 (1 added, 0 deleted, 14 changed) OCL=23889 CL=23889
2009-01-29if take address of local, move to heap.Russ Cox14-78/+515
heuristic to not print bogus strings. fix one error message format. R=ken OCL=23849 CL=23851
2009-01-29- removed obsolete files from repositoryRobert Griesemer19-5618/+0
(most of this has been integrated into pretty, the rest has been archived). R=r OCL=23842 CL=23842
2009-01-29- make test work with 6gRobert Griesemer1-1/+1
R=r OCL=23821 CL=23823
2009-01-29optimizer bug w STOstringKen Thompson3-8/+54
R=r OCL=23820 CL=23820
2009-01-28add stack testRuss Cox1-0/+52
R=r DELTA=48 (48 added, 0 deleted, 0 changed) OCL=23715 CL=23732