summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2008-11-12add some support for modifying what pointers point toRob Pike2-11/+16
R=rsc DELTA=27 (16 added, 11 deleted, 0 changed) OCL=19130 CL=19132
2008-11-12fix bug in FullyReaderRob Pike1-1/+1
R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=19131 CL=19131
2008-11-12reflect.PtrValue.SetSub() to set pointersRob Pike2-0/+21
R=rsc OCL=19101 CL=19101
2008-11-12converting uint bits back into floatsRob Pike3-0/+32
R=rsc DELTA=32 (32 added, 0 deleted, 0 changed) OCL=19084 CL=19091
2008-11-12- lowercased package name (Bignum -> bignum)Robert Griesemer1-8/+23
- implemented some missing functionality (and, or, xor of positive ints) R=r OCL=19087 CL=19087
2008-11-116c bug with large constantsKen Thompson1-0/+11
R=r OCL=19056 CL=19056
2008-11-11Implement a "full reader" wrapper for io.Read, guaranteeing thatRob Pike1-2/+44
either the buffer is full, zero bytes were read, or an error is returned. R=rsc DELTA=44 (42 added, 0 deleted, 2 changed) OCL=19027 CL=19047
2008-11-11don't try interface/structure conversion untilRuss Cox1-7/+7
last resort, because it assumes every call is a real use of the conversion. R=ken OCL=19026 CL=19026
2008-11-11width fixes.Russ Cox4-4/+25
* check for uncomputed struct offsets * distinguish function structs from ordinary structs * make sure function structs are not examined in isolation R=ken OCL=19005 CL=19005
2008-11-10fix error-handling bug.Rob Pike1-1/+2
add newline after stack traces. R=rsc DELTA=3 (2 added, 1 deleted, 0 changed) OCL=18945 CL=18953
2008-11-10* accept all NaNs, not just the one sys.NaN() returns.Russ Cox1-36/+60
* use union, not cast, to convert between uint64 and float64, to avoid possible problems with gcc in future. R=r DELTA=75 (39 added, 15 deleted, 21 changed) OCL=18926 CL=18926
2008-11-10handle Inf, NaN in float printRuss Cox3-25/+34
R=r DELTA=48 (23 added, 14 deleted, 11 changed) OCL=18707 CL=18922
2008-11-10Add a cache to avoid unnecessary parsing of type strings when constructing ↵Rob Pike1-2/+11
values R=rsc DELTA=12 (9 added, 0 deleted, 3 changed) OCL=18916 CL=18921
2008-11-10fix start/stop bug in prof.Rob Pike1-6/+8
also only time-limit if a value is provided. R=rsc DELTA=9 (4 added, 2 deleted, 3 changed) OCL=18917 CL=18920
2008-11-10Protocol buffer encoding.Rob Pike1-2/+2
R=rsc DELTA=1075 (1028 added, 31 deleted, 16 changed) OCL=18865 CL=18918
2008-11-07Added missing Set method for VectorRobert Griesemer1-0/+6
BUG=1474670 TBR=r DELTA=6 (6 added, 0 deleted, 0 changed) OCL=18839 CL=18843
2008-11-07wrong system call number for statRob Pike1-1/+1
TBR=rsc OCL=18833 CL=18833
2008-11-07byte multiplyKen Thompson1-10/+22
R=r OCL=18830 CL=18830
2008-11-07byte multiplyKen Thompson3-1/+34
R=r OCL=18807 CL=18807
2008-11-06bug in select defaultKen Thompson1-31/+36
R=r OCL=18741 CL=18741
2008-11-06- binomial implementation (fixing broken build)Robert Griesemer1-0/+5
R=r OCL=18738 CL=18738
2008-11-06simpleminded ascii to floating point conversionRob Pike2-3/+105
R=rsc DELTA=111 (107 added, 0 deleted, 4 changed) OCL=18720 CL=18725
2008-11-06add sys.float32bits, sys.float64bitsRob Pike3-0/+21
R=rsc DELTA=21 (21 added, 0 deleted, 0 changed) OCL=18709 CL=18718
2008-11-06s/gins/gbranch/Russ Cox1-6/+4
R=ken OCL=18713 CL=18713
2008-11-06change minimum sethi/ullman number to 1Russ Cox5-9/+12
to distinguish not computed (0) vs trivial (1). add missing ullmancalc on function args. R=ken OCL=18711 CL=18711
2008-11-066g ninit fixes - fixes the two test casesRuss Cox4-5/+20
i isolated last night. does not fix rob's interface-smashing bug. R=ken OCL=18698 CL=18698
2008-11-06- implemented String() and Format functionality in BignumRobert Griesemer1-6/+50
- added a test R=r OCL=18687 CL=18687
2008-11-06- fixes to sprintf (by rob)Robert Griesemer1-8/+11
R=r OCL=18685 CL=18685
2008-11-06If a value implements String(), use that in fmt.print (not fmt.printf)Rob Pike1-4/+13
R=rsc DELTA=13 (9 added, 0 deleted, 4 changed) OCL=18682 CL=18684
2008-11-06Polymorphic printing.Rob Pike1-29/+89
R=rsc DELTA=100 (70 added, 10 deleted, 20 changed) OCL=18663 CL=18669
2008-11-05select defaultKen Thompson7-15/+42
R=r OCL=18646 CL=18646
2008-11-05more runtime support for chan select defaultRuss Cox1-1/+39
R=ken OCL=18630 CL=18630
2008-11-05runtime support for default in select.Russ Cox1-2/+13
assumes cas->send == 2 for default case. R=ken OCL=18628 CL=18628
2008-11-05allow any type at all in sys.unreflect;Russ Cox2-8/+2
accomodate empty type table in 6l. R=r DELTA=10 (2 added, 8 deleted, 0 changed) OCL=18601 CL=18605
2008-11-05fix renamed-package bug in exported names:Russ Cox1-14/+7
always show original name R=ken OCL=18603 CL=18603
2008-11-05more on t,ok = I.(T)Ken Thompson1-0/+16
R=r OCL=18599 CL=18599
2008-11-05T,ok = I.(T)Ken Thompson1-24/+47
R=r OCL=18580 CL=18582
2008-11-05new interface error messagesRuss Cox1-6/+28
package main func main() { var i interface { } = 1; a := i.(*[]byte); } interface { } is int, not *[]uint8 throw: interface conversion package main func main() { var i interface { }; a := i.(*[]byte); } interface is nil, not *[]uint8 throw: interface conversion package main func main() { i := sys.unreflect(0, "*bogus"); a := i.(*[]byte); } interface { } is *bogus, not *[]uint8 throw: interface conversion R=r DELTA=30 (24 added, 2 deleted, 4 changed) OCL=18548 CL=18565
2008-11-05trim tags from type strings for structure fields.Rob Pike2-13/+23
R=rsc DELTA=28 (14 added, 4 deleted, 10 changed) OCL=18561 CL=18563
2008-11-056g interface changes:Russ Cox7-366/+236
* allow conversion between nil interface and any type. * mark signatures as DUPOK so that multiple .6 can contain sigt.*[]byte and only one gets used. R=ken OCL=18538 CL=18542
2008-11-05minor tweak to still non-portable alignment calculationRob Pike1-3/+3
R=rsc DELTA=4 (1 added, 1 deleted, 2 changed) OCL=18528 CL=18533
2008-11-05make sizes and offsets int, not uint64Rob Pike4-43/+45
add Value.Interface, to extract an empty interface that can be converted to a regular Go value of the appropriate type, if known. R=rsc DELTA=49 (2 added, 0 deleted, 47 changed) OCL=18526 CL=18526
2008-11-05fix bugs parsing functions in reflect library.Rob Pike2-13/+31
parsed interfaces wrong. could not handle a function with a single type as a return value. R=rsc DELTA=34 (20 added, 2 deleted, 12 changed) OCL=18511 CL=18520
2008-11-04type strings through the reflection library.Rob Pike3-62/+141
R=rsc DELTA=187 (107 added, 28 deleted, 52 changed) OCL=18510 CL=18510
2008-11-04prepare for recursive printfsRob Pike1-22/+25
R=rsc DELTA=31 (9 added, 6 deleted, 16 changed) OCL=18470 CL=18472
2008-11-04install bignum as libraryRobert Griesemer2-0/+1258
R=r DELTA=3501 (1752 added, 1749 deleted, 0 changed) OCL=18460 CL=18471
2008-11-03runtime support for interface ok,Russ Cox3-8/+75
whatever the final syntax ends up being. R=ken OCL=18414 CL=18414
2008-11-036l: generate gotypesigs on demand.Russ Cox7-18/+158
add sys.unreflect, which uses gotypesigs. R=r DELTA=170 (152 added, 12 deleted, 6 changed) OCL=18396 CL=18404
2008-11-03remove unnecessary 6g workaroundRuss Cox1-51/+51
R=r DELTA=51 (0 added, 0 deleted, 51 changed) OCL=18399 CL=18402
2008-11-03move DotDotDot into next case - hit submit too fast last time.Rob Pike1-4/+3
R=rsc DELTA=5 (1 added, 2 deleted, 2 changed) OCL=18395 CL=18398