summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2009-05-07Define Len() for JSON Map.David Symonds2-1/+6
R=rsc APPROVED=rsc DELTA=6 (5 added, 0 deleted, 1 changed) OCL=28398 CL=28430
2009-05-07if a struct s contains an anonymous interface valueRuss Cox5-9/+50
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
2009-05-07next step for 6.out on Borg: fix and testRuss Cox4-2/+27
net code on IPv4-only machines. R=r DELTA=27 (25 added, 0 deleted, 2 changed) OCL=28404 CL=28411
2009-05-076g: error messagesRuss Cox2-5/+15
part 2; missing files R=ken OCL=28408 CL=28410
2009-05-076g: error messagesRuss Cox2-6/+61
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
2009-05-066g: simplify trampoline by postponing load.Russ Cox1-22/+37
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
2009-05-06fix a few type errors, make ErrorString a valueRuss Cox1-2/+2
will submit with fixed compiler R=r DELTA=2 (0 added, 0 deleted, 2 changed) OCL=28371 CL=28379
2009-05-066g: new interface rules (code got simpler!)Russ Cox5-178/+121
R=ken OCL=28374 CL=28378
2009-05-06makefile fixesRuss Cox2-76/+41
R=r OCL=28369 CL=28369
2009-05-066g: generate string data as individual symbols,Russ Cox6-118/+142
so that 6l can discard strings used by dead code. also, for short strings, generate DUPOK global symbols so that references to, say, "%s: %s" in multiple files result in only a single symbol. R=ken OCL=28361 CL=28361
2009-05-06error handling had a bug in execute: the error channel was being shared.Rob Pike1-23/+33
fix that and clean up state handling a little. R=rsc DELTA=44 (18 added, 8 deleted, 18 changed) OCL=28359 CL=28359
2009-05-05add missing Makefile to repair buildRob Pike1-0/+45
TBR=gri OCL=28320 CL=28320
2009-05-05signs on div and modKen Thompson1-1/+13
R=r OCL=28319 CL=28319
2009-05-05new dir structure for lib/goRobert Griesemer14-102/+342
R=r DELTA=9298 (4760 added, 4536 deleted, 2 changed) OCL=28317 CL=28317
2009-05-056g bug: was dropping assignment of nil to globalsRuss Cox1-4/+7
R=ken OCL=28314 CL=28314
2009-05-05mv container/vector down one level for new rules.Rob Pike6-21/+5
simplify run.bash now that lib has make test that recurs. R=rsc DELTA=1179 (578 added, 596 deleted, 5 changed) OCL=28313 CL=28313
2009-05-05directory-per-package step 1: move files from lib/X.go to lib/X/X.goRob Pike41-82/+1037
no substantive changes except: - new Makefiles, all auto-generated - go/src/lib/Makefile has been extensively edited R=rsc OCL=28310 CL=28310
2009-05-056g tweaksRuss Cox5-17/+19
* 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
2009-05-056l: eliminate dead code, not just the symbolsRuss Cox2-2/+22
editing the firstp list was ineffective, because follow rebuilds it from the textp list. the symbols for dead code were being dropped from the binary but the code was all still there. text for fmt.Printf("hello, world\n") drops from 143945 to 128650. R=r,ken DELTA=22 (20 added, 0 deleted, 2 changed) OCL=28255 CL=28290
2009-05-05better io.ByteBuffer implementation:Robert Griesemer2-59/+191
- more light-weight - better buffer management - added test cases R=r DELTA=227 (167 added, 35 deleted, 25 changed) OCL=28252 CL=28289
2009-05-05fmt: dead code and dataRuss Cox1-10/+0
R=r DELTA=10 (0 added, 10 deleted, 0 changed) OCL=28258 CL=28287
2009-05-04string slicing is efficient so remove base and bounds arguments from ↵Rob Pike3-5/+6
RuneCountInString R=rsc DELTA=6 (1 added, 0 deleted, 5 changed) OCL=28242 CL=28256
2009-05-04more code optimizationKen Thompson2-3/+85
1. dont clear external and heap objects 2. propagate constant assignment R=r OCL=28254 CL=28254
2009-05-04Remake exvar package to be more Go-ish.David Symonds4-252/+208
It now exports a Var interface (anyone can export their own custom var types now), so users need to create and manage their own vars and mark them as exportable via the Publish function. They are exposed via /debug/vars. R=r,rsc APPROVED=r DELTA=605 (314 added, 186 deleted, 105 changed) OCL=28143 CL=28239
2009-05-03more morestack fiddlingKen Thompson3-36/+123
R=r OCL=28204 CL=28204
2009-05-03more code fiddlingKen Thompson4-22/+54
R=r OCL=28201 CL=28201
2009-05-02Fix mismatched quote in a comment.David Symonds1-1/+1
R=gri APPROVED=gri DELTA=1 (0 added, 0 deleted, 1 changed) OCL=28184 CL=28192
2009-05-01code optmizationKen Thompson1-0/+37
drip init function if it doesnt do anything R=r OCL=28180 CL=28180
2009-05-01code improvementKen Thompson2-35/+109
better calling of morestack R=r OCL=28179 CL=28179
2009-05-01Copied 8g/6g into 5g. Used sharp tools to coax a .5 file outKai Backman9-1/+4292
of 5g. 5l balks at the output and running 5g with -S shows the true extent of the disaster. Still, better than yesterday. Maybe. Tested on the canonical: package main func main() { } R=rsc APPROVED=rsc DELTA=4182 (4181 added, 0 deleted, 1 changed) OCL=27601 CL=28175
2009-04-30- incorporated feedback per rscRobert Griesemer2-89/+78
- fixed a bug and added corresponding test case R=rsc DELTA=114 (18 added, 29 deleted, 67 changed) OCL=28114 CL=28128
2009-04-30bug146: array/slice conversion before I left missed conversionsRuss Cox4-34/+17
R=ken OCL=28120 CL=28124
2009-04-30auto-detect whether to use IPv6 or IPv4 kernel interfaceRuss Cox1-3/+12
R=r DELTA=12 (9 added, 0 deleted, 3 changed) OCL=28096 CL=28118
2009-04-30better error messages, not that anyone ever sees themRuss Cox1-20/+28
R=r DELTA=30 (9 added, 1 deleted, 20 changed) OCL=28104 CL=28117
2009-04-30change 6l library directory flag to -L,Russ Cox4-34/+30
to match traditional c linkers. R=r DELTA=42 (8 added, 12 deleted, 22 changed) OCL=28101 CL=28115
2009-04-29don't print binary data. add TODO for better errors.Rob Pike1-1/+2
TBR=rsc DELTA=2 (1 added, 0 deleted, 1 changed) OCL=28066 CL=28070
2009-04-29rename variables for clarity.Rob Pike2-13/+48
add test for structure alignment/offset. R=gri DELTA=49 (35 added, 0 deleted, 14 changed) OCL=28068 CL=28068
2009-04-29don't set CLONE_PTRACE -- it confuses straceRuss Cox1-1/+3
R=r DELTA=4 (3 added, 1 deleted, 0 changed) OCL=28063 CL=28065
2009-04-29if the process stops with SIGTRAP (breakpoint),Russ Cox1-2/+3
don't relay the signal when restarting it. R=r DELTA=1 (0 added, 0 deleted, 1 changed) OCL=28060 CL=28064
2009-04-29Bug in reflect found by gri. Structs in 6g have a minimum alignment.Rob Pike1-1/+9
iant: will this be ok in gccgo? R=rsc DELTA=9 (8 added, 0 deleted, 1 changed) OCL=28059 CL=28062
2009-04-29drop unused result name - trivial change.Rob Pike1-1/+1
R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=28056 CL=28058
2009-04-29exit with error status EPIPE ifRuss Cox1-1/+10
one fd gets too many EPIPEs in a row during write. R=r DELTA=10 (9 added, 0 deleted, 1 changed) OCL=28057 CL=28057
2009-04-29Ignore SIGPIPE such that write returns EPIPE.Brendan O'Dea2-2/+2
Currently a http server will be killed on receipt of SIGPIPE if a client closes a socket which the server is trying to write to. R=rsc APPROVED=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=27959 CL=28055
2009-04-29Fix channels used by WaitWrite (http server hangs on writesBrendan O'Dea1-2/+2
which hit EAGAIN). R=rsc APPROVED=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=27955 CL=28054
2009-04-28allow "defer close(chan)"Ken Thompson1-17/+22
bug found by anton R=r OCL=28001 CL=28001
2009-04-28bug 139Ken Thompson1-1/+4
R=r OCL=27987 CL=27987
2009-04-28bug 145Ken Thompson1-0/+4
R=r OCL=27979 CL=27979
2009-04-28fix for broken buildRobert Griesemer1-1/+1
TBR=r DELTA=1 (0 added, 0 deleted, 1 changed) OCL=27969 CL=27969
2009-04-28Add a HTTP handler to the exvar package.David Symonds2-9/+14
R=r APPROVED=r DELTA=20 (11 added, 6 deleted, 3 changed) OCL=27782 CL=27950
2009-04-27Add more dependencies for lib/go.David Symonds1-1/+2
This makes "make nuke install" work again. R=r APPROVED=r DELTA=2 (1 added, 0 deleted, 1 changed) OCL=27929 CL=27932