summaryrefslogtreecommitdiff
path: root/src/cmd/gc/sys.go
AgeCommit message (Collapse)AuthorFilesLines
2008-11-03runtime support for interface ok,Russ Cox1-0/+2
whatever the final syntax ends up being. R=ken OCL=18414 CL=18414
2008-11-036l: generate gotypesigs on demand.Russ Cox1-0/+1
add sys.unreflect, which uses gotypesigs. R=r DELTA=170 (152 added, 12 deleted, 6 changed) OCL=18396 CL=18404
2008-10-29the end of life as we know itKen Thompson1-26/+26
int is new type R=r OCL=18023 CL=18023
2008-10-216g: use full type in sigt[0].nameRuss Cox1-1/+1
sys: add sys.reflect runtime: add canfail flag for later R=ken OCL=17583 CL=17583
2008-10-14delete hack for interface equality now that it supported by the 6g compilerRob Pike1-1/+0
R=rsc DELTA=21 (0 added, 21 deleted, 0 changed) OCL=17123 CL=17136
2008-10-14interface equalityKen Thompson1-0/+1
R=r OCL=17116 CL=17118
2008-10-10add sys.BUG_intereq to compare interfaces for equalityRuss Cox1-0/+1
R=r OCL=16929 CL=16929
2008-10-07sys.stringtorune doesn't need a length parameter.Rob Pike1-1/+1
R=rsc DELTA=7 (0 added, 0 deleted, 7 changed) OCL=16600 CL=16630
2008-10-03new import/export formatRuss Cox1-165/+77
package flag export type flag.Flag struct { name flag.string; usage flag.string; \ value flag.Value; next *flag.Flag } type flag.string string type flag.Value interface { AsBool () (? *flag.BoolValue); \ AsInt () (? *flag.IntValue); AsString () (? *flag.StringValue); \ IsBool () (? flag.bool); IsInt () (? flag.bool); IsString () (? flag.bool); \ Str () (? flag.string); ValidValue (str flag.string) (? flag.bool) } type flag.BoolValue struct { val flag.bool; p *flag.bool } type flag.IntValue struct { val flag.int64; p *flag.int64 } type flag.StringValue struct { val flag.string; p *flag.string } type flag.bool bool func (e *flag.StringValue) AsBool () (? *flag.BoolValue) func (e *flag.StringValue) AsInt () (? *flag.IntValue) ... the \ continuations are for this message, not real. changed delimiter for import from (( )) to $$ $$. replaced mksys.bash with mksys.c changed sys.go to use leading export, fake package name is now SYS not foop don't always require ; on forward func decls R=ken,r DELTA=1827 (446 added, 1083 deleted, 298 changed) OCL=16433 CL=16463
2008-10-02added printn and panicnKen Thompson1-0/+4
prints that insert spaces and new line R=r OCL=16370 CL=16370
2008-09-24cleanup; sys.sleep can go.Russ Cox1-2/+0
R=r OCL=15786 CL=15792
2008-09-22change string([]byte) to pass array, rather than &a[0],Russ Cox1-0/+2
to string convert. if the byte array has length 0, the computation of &a[0] throws an index bounds error. for fixed size arrays, this ends up invoking arrays2d unnecessarily, but it works. R=ken DELTA=304 (44 added, 28 deleted, 232 changed) OCL=15674 CL=15678
2008-09-22vectors bugKen Thompson1-2/+4
R=r OCL=15664 CL=15664
2008-09-22now method/interface codeKen Thompson1-2/+9
R=r OCL=15627 CL=15627
2008-09-121 got rid if static 'fn wo return' testKen Thompson1-0/+4
2 added dynamic calls to throw for array bounds and 'fn wo return' 3 small optimization on index[constant] R=r OCL=15281 CL=15281
2008-08-27arraysKen Thompson1-0/+11
R=r OCL=14603 CL=14603
2008-08-04first cut at multithreading. works on Linux.Russ Cox1-0/+2
* kick off new os procs (machs) as needed * add sys·sleep for testing * add Lock, Rendez * properly lock mal, sys·newproc, scheduler * linux syscall arg #4 is in R10, not CX * chans are not multithread-safe yet * multithreading disabled by default; set $gomaxprocs=2 (or 1000) to turn it on This should build on OS X but may not. Rob and I will fix soon after submitting. TBR=r OCL=13784 CL=13842
2008-07-26select/chanKen Thompson1-1/+1
R=r DELTA=517 (137 added, 98 deleted, 282 changed) OCL=13495 CL=13495
2008-07-24selectKen Thompson1-0/+11
R=r APPROVED=r DELTA=638 (433 added, 21 deleted, 184 changed) OCL=13426 CL=13438
2008-07-16back out last chan fixKen Thompson1-1/+1
allow print of pointers SVN=127548
2008-07-15new chan syntaxKen Thompson1-2/+6
SVN=127437
2008-07-14add sys.writefile; support for darwin only in this CLRob Pike1-0/+2
SVN=127153
2008-07-13chanKen Thompson1-0/+6
SVN=126958
2008-07-12more on channelsKen Thompson1-1/+6
arg space magic number for morestack SVN=126936
2008-07-11segmented stacks AND goroutinesKen Thompson1-0/+7
SVN=126929
2008-07-08fix ldexp, frexp, and make math package compile and test correctlyRob Pike1-2/+2
SVN=126423
2008-07-08add bytestorune and stringtorune to sys.Rob Pike1-0/+6
SVN=126321
2008-07-07more coroutineKen Thompson1-5/+0
fixed a,b,c := x,x,x SVN=126250
2008-07-07start of coroutineKen Thompson1-4/+9
SVN=126152
2008-06-30clean up rearrangement of runtime functions in the sourceRob Pike1-1/+9
add isNaN, isInf, NaN, Inf SVN=125389
2008-06-27export sys.exitRob Pike1-0/+4
update tests to use exit rather than return ignore return value from main (actually done in prior CL) SVN=125173
2008-06-26add sys.readfile()Rob Pike1-0/+5
add args to linux runtime SVN=124961
2008-06-24arguments availableRob Pike1-0/+12
argc, argv, envc, envv all in sys now sys.argc() etc. SVN=124398
2008-06-16mapsKen Thompson1-4/+4
SVN=123089
2008-06-15now checks for lvalue/rvalue context ofKen Thompson1-2/+20
expressions. start of generics for calling builtin functions start of map type 'any' demoted from reserved word to type SVN=122808
2008-06-10debugging to get fmt to runKen Thompson1-0/+8
SVN=122046
2008-06-04Add compiler source to new directory structureRob Pike1-0/+44
SVN=121164