summaryrefslogtreecommitdiff
path: root/src/lib/reflect
AgeCommit message (Collapse)AuthorFilesLines
2009-03-30Separate the alignment of a field from the alignment of theIan Lance Taylor1-38/+111
type of the field. Use the field alignment to compute the size of a structure. This may help 8g but is mainly for gccgo. gccgo maintains the standard C/C++ ABI for structure field alignment. For the i386, this requires that a float64 field in a struct be aligned on a 32-bit boundary, although for efficiency a variable of type float64 or []float64 should be aligned on a 64-bit boundary. I also removed the unused size field from structField. R=r DELTA=117 (75 added, 2 deleted, 40 changed) OCL=26842 CL=26936
2009-03-27Verify that "byte" is an alias for "uint8".Ian Lance Taylor1-0/+6
R=r DELTA=6 (6 added, 0 deleted, 0 changed) OCL=26836 CL=26841
2009-03-09delete float80 from librariesRob Pike4-37/+1
R=rsc DELTA=40 (0 added, 38 deleted, 2 changed) OCL=25969 CL=25969
2009-03-09document reflect.Rob Pike4-102/+192
R=rsc DELTA=201 (90 added, 0 deleted, 111 changed) OCL=25904 CL=25966
2009-03-04disallow ordinary-type.(T), as in spec.Russ Cox1-1/+2
R=ken OCL=25705 CL=25705
2009-03-03Automated g4 rollback of changelist 25024,Russ Cox3-86/+86
plus significant hand editing. Back to T{x} for composite literals. R=r OCL=25612 CL=25632
2009-02-17few more Sizeof.Russ Cox1-3/+2
R=r DELTA=3 (0 added, 1 deleted, 2 changed) OCL=25106 CL=25106
2009-02-16use embedded interface typesRuss Cox2-195/+39
R=r DELTA=205 (1 added, 157 deleted, 47 changed) OCL=25071 CL=25073
2009-02-13convert composite literals from { } to ( ).Russ Cox3-42/+42
only non-trivial changes are in convlit1.go golden.out R=gri OCL=25019 CL=25024
2009-02-11insert type assertions when narrowing.Russ Cox4-22/+160
R=r OCL=24349 CL=24913
2009-02-08use unsafe.SizeofRob Pike1-6/+6
R=rsc DELTA=9 (3 added, 3 deleted, 3 changed) OCL=24640 CL=24653
2009-01-30update go code tree to new func rules.Russ Cox1-26/+26
R=r DELTA=367 (111 added, 59 deleted, 197 changed) OCL=23957 CL=23960
2009-01-23remove the "open" concept from reflect and go with slices and arrays.Rob Pike4-54/+47
the two still share an interface and Kind; that's probably ok but might be worth revisiting. R=rsc DELTA=74 (1 added, 8 deleted, 65 changed) OCL=23416 CL=23418
2009-01-23change the representation of arrays in protobufs from *[]item to []item.Rob Pike1-0/+16
for simplicity of user's code, optional arrays of bytes also don't have a pointer. requires adding a "Set()" method to arrays in reflect. still to do: protocol compilers, google/net/rpc. R=rsc DELTA=227 (36 added, 95 deleted, 96 changed) OCL=23387 CL=23389
2009-01-21change reflect.CopyArray into a method on ArrayValue called CopyFromRob Pike2-2/+14
R=rsc DELTA=16 (12 added, 0 deleted, 4 changed) OCL=23242 CL=23242
2009-01-20delete exportRuss Cox4-56/+56
TBR=r OCL=23121 CL=23127
2009-01-16casify, cleanup sysRuss Cox2-6/+9
R=r OCL=22978 CL=22984
2009-01-16casify reflect.Rob Pike4-359/+357
R=rsc DELTA=513 (0 added, 2 deleted, 511 changed) OCL=22954 CL=22956
2009-01-15convert strconvRuss Cox1-6/+6
R=r DELTA=568 (0 added, 9 deleted, 559 changed) OCL=22898 CL=22901
2009-01-15make safe for new package local defaultsRuss Cox3-78/+78
R=r DELTA=462 (9 added, 33 deleted, 420 changed) OCL=22879 CL=22885
2009-01-09update sys.reflect and sys.unreflect to accomodateRuss Cox3-13/+50
the possibility of large objects in interface values. R=r DELTA=171 (97 added, 22 deleted, 52 changed) OCL=22382 CL=22382
2009-01-06new new & makeRuss Cox3-18/+18
R=r OCL=22166 CL=22166
2008-12-19[] and struct in interfaces.Russ Cox1-1/+0
other [] cleanup. convert() is gone. R=r DELTA=352 (144 added, 68 deleted, 140 changed) OCL=21660 CL=21662
2008-12-19fmt and reflect updates for recent changesRuss Cox4-48/+44
TBR=r OCL=21580 CL=21583
2008-12-18convert *[] to [].Russ Cox3-37/+41
R=r OCL=21563 CL=21571
2008-12-11add uintptr to reflect and printRob Pike2-33/+59
R=rsc DELTA=70 (35 added, 4 deleted, 31 changed) OCL=20993 CL=20998
2008-12-11if the typestring gives a field name of "?", drop it.Rob Pike3-4/+11
R=rsc DELTA=11 (7 added, 0 deleted, 4 changed) OCL=20988 CL=20988
2008-12-11handle the nil interface better in reflect and printRob Pike2-1/+8
R=rsc DELTA=25 (19 added, 0 deleted, 6 changed) OCL=20985 CL=20985
2008-12-10assorted cleanup and fixesRuss Cox2-5/+75
R=r DELTA=209 (109 added, 79 deleted, 21 changed) OCL=20930 CL=20934
2008-12-09implement two TODOs in reflect:Rob Pike1-30/+23
- delete vestigial SetString method - make type map use interface instead of *interface R=rsc DELTA=31 (0 added, 7 deleted, 24 changed) OCL=20861 CL=20863
2008-12-09use unsafe.pointer in reflection objectsRob Pike5-309/+51
R=rsc DELTA=326 (4 added, 259 deleted, 63 changed) OCL=20853 CL=20856
2008-12-05use sync.Mutex instead of a channel for lockingRob Pike1-4/+5
R=rsc DELTA=12 (3 added, 1 deleted, 8 changed) OCL=20631 CL=20634
2008-11-24replay CL 19916 and CL 19913 now that the build can handle themRuss Cox4-5/+31
TBR=r OCL=19924 CL=19934
2008-11-24Automated g4 rollback of changelist 19916.Russ Cox4-31/+5
*** Reason for rollback *** broke build *** Original change description *** utf8: add InString routines for decoding in strings reflect: add InterfaceValue.Get(), remove Empty strconv: add Quote, CanBackquote fmt: * %q go-quoted " string * %#q go-quoted ` string if possible, " string otherwise * %x hexadecimal string * anywhere a string is okay, *[]byte is okay * flags # 0 - + space * print value inside interface, not interface itself * tests TBR=r OCL=19920 CL=19920
2008-11-24utf8: add InString routines for decoding in stringsRuss Cox4-5/+31
reflect: add InterfaceValue.Get(), remove Empty strconv: add Quote, CanBackquote fmt: * %q go-quoted " string * %#q go-quoted ` string if possible, " string otherwise * %x hexadecimal string * anywhere a string is okay, *[]byte is okay * flags # 0 - + space * print value inside interface, not interface itself * tests R=r DELTA=756 (597 added, 121 deleted, 38 changed) OCL=19888 CL=19916
2008-11-19refine gobuild: the files must be *_test.go not *test.goRob Pike2-6/+6
this causes complications R=rsc DELTA=1724 (849 added, 856 deleted, 19 changed) OCL=19667 CL=19667
2008-11-19change naming convention for tests fromRob Pike3-22/+11
test*.go to *test.go R=rsc DELTA=1747 (864 added, 855 deleted, 28 changed) OCL=19666 CL=19666
2008-11-19gobuild: add coverage rule, ignore files in package main.Russ Cox1-0/+4
R=r DELTA=55 (41 added, 11 deleted, 3 changed) OCL=19594 CL=19598
2008-11-19leave 6.out around after gotest;Russ Cox1-1/+1
delete it in make clean. R=r DELTA=10 (0 added, 0 deleted, 10 changed) OCL=19542 CL=19581
2008-11-18gobuild changes.Russ Cox1-15/+28
* handles multiple packages per directory * scans directory for files if given no arguments * infers package name * includes test rule invoking gotest R=r DELTA=746 (444 added, 150 deleted, 152 changed) OCL=19504 CL=19521
2008-11-17correctly rounded floating-point conversionsRuss Cox2-18/+18
in new package strconv. move atoi etc to strconv too. update fmt, etc to use strconv. R=r DELTA=2232 (1691 added, 424 deleted, 117 changed) OCL=19286 CL=19380
2008-11-14add cov, prof to default build; clean up compiler warningsRuss Cox1-1/+1
R=r DELTA=8 (1 added, 0 deleted, 7 changed) OCL=19245 CL=19245
2008-11-13more array methodsRuss Cox4-58/+139
R=r OCL=19172 CL=19172
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-12reflect.PtrValue.SetSub() to set pointersRob Pike2-0/+21
R=rsc OCL=19101 CL=19101
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-10Protocol buffer encoding.Rob Pike1-2/+2
R=rsc DELTA=1075 (1028 added, 31 deleted, 16 changed) OCL=18865 CL=18918
2008-11-06simpleminded ascii to floating point conversionRob Pike1-1/+1
R=rsc DELTA=111 (107 added, 0 deleted, 4 changed) OCL=18720 CL=18725
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-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