- 17 Jan, 2013 6 commits
-
-
Shenghou Ma authored
so that http://golang.org/pkg/runtime?m=all works. R=bradfitz CC=golang-dev https://golang.org/cl/7094046
-
Shenghou Ma authored
Fixes #4650. R=golang-dev, bradfitz, alex.brainman CC=golang-dev https://golang.org/cl/7085048
-
Shenghou Ma authored
Calling it will show memory allocation statistics for that single benchmark (if -test.benchmem is not provided) R=golang-dev, rsc, kevlar, bradfitz CC=golang-dev https://golang.org/cl/7027046
-
Oling Cat authored
R=golang-dev, adg CC=golang-dev https://golang.org/cl/7131045
-
Volker Dobler authored
Fixes #4412. R=adg, rsc, rogpeppe, andrewdg, bradfitz CC=golang-dev https://golang.org/cl/7086050
-
Andrew Balholm authored
I think that the parser is complete enough to take that warning out. It passes the test suite. There may be incompatible API changes, but being in the exp directory is warning enough for that. R=nigeltao CC=golang-dev https://golang.org/cl/7131050
-
- 16 Jan, 2013 2 commits
-
-
Robert Griesemer authored
Rewrote existing code to prevent similar mistakes. R=adonovan CC=golang-dev https://golang.org/cl/7129046
-
Matthew Dempsky authored
R=bradfitz CC=golang-dev https://golang.org/cl/7132045
-
- 15 Jan, 2013 2 commits
-
-
Brad Fitzpatrick authored
We need to wait for the handler to actually finish running, not almost be done running. This was always a bug, but now that handler output is buffered it shows up easily on GOMAXPROCS >1 systems. R=golang-dev, iant CC=golang-dev https://golang.org/cl/7109043
-
Andrew Gerrand authored
R=dsymonds CC=golang-dev https://golang.org/cl/7094058
-
- 14 Jan, 2013 12 commits
-
-
Mikio Hara authored
R=rsc, iant, dave CC=golang-dev https://golang.org/cl/6999053
-
Mikio Hara authored
R=golang-dev, iant CC=golang-dev https://golang.org/cl/7016044
-
Robert Griesemer authored
(bug fix) R=adonovan CC=golang-dev https://golang.org/cl/7098059
-
Robert Griesemer authored
- always set the Pkg field in QualifiedIdents - call Context.Ident for all identifiers in the AST that denote a types.Object (bug fix) - added test that Context.Ident is called for all such identifiers R=adonovan CC=golang-dev https://golang.org/cl/7101054
-
Brad Fitzpatrick authored
Fixes #4622 R=golang-dev, dave, dvyukov CC=golang-dev https://golang.org/cl/7103046
-
Robert Griesemer authored
R=adonovan CC=golang-dev https://golang.org/cl/7103055
-
Robert Griesemer authored
Also re-enabled resolver test. R=adonovan CC=golang-dev https://golang.org/cl/7107043
-
Francesc Campoy authored
Fixes #4634. R=adg, kevlar CC=golang-dev https://golang.org/cl/7066053
-
Mikio Hara authored
R=dave, rsc CC=golang-dev https://golang.org/cl/7039044
-
Rémy Oudompheng authored
Fixes #4222. Fixes #4628. R=golang-dev, adg CC=golang-dev https://golang.org/cl/7100049
-
Alex Brainman authored
R=golang-dev, kevlar CC=adg, golang-dev https://golang.org/cl/7093056
-
Kyle Lemons authored
Fixes #4647. R=r, golang-dev CC=golang-dev https://golang.org/cl/7085051
-
- 13 Jan, 2013 3 commits
-
-
Andrew Gerrand authored
R=dsymonds CC=golang-dev https://golang.org/cl/7106044
-
Andrew Gerrand authored
It's possible to view the package docs in plain text, eg: http://golang.org/pkg/time/?m=text and this CL introduces the ability to do the same for files: http://golang.org/src/pkg/time/time.go?m=text R=golang-dev, dave, minux.ma CC=golang-dev https://golang.org/cl/7085054
-
Robert Griesemer authored
Completely removed *ast.Objects from being exposed by the types API. *ast.Objects are still required internally for resolution, but now the door is open for an internal-only rewrite of identifier resolution entirely at type-check time. Once that is done, ASTs can be type-checked whether they have been created via the go/parser or otherwise, and type-checking does not require *ast.Object or scope invariants to be maintained externally. R=adonovan CC=golang-dev https://golang.org/cl/7096048
-
- 12 Jan, 2013 7 commits
-
-
Anthony Martin authored
R=minux.ma, lucio.dere CC=golang-dev https://golang.org/cl/7094048
-
Rémy Oudompheng authored
Also undo revision a5b96b602690 used to workaround the bug. Fixes #4643. R=rsc, golang-dev, dave, minux.ma, lucio.dere, bradfitz CC=golang-dev https://golang.org/cl/7090043
-
Dave Cheney authored
runoutput styles tests generally consume a lot of memory. On arm platforms rotate?.go consume around 200mb each to compile, and as tests are sorted alphabetically, they all tend to run at once. This change limits the number of runoutput jobs to 2 on arm platforms. R=minux.ma, remyoudompheng, bradfitz, lucio.dere CC=golang-dev https://golang.org/cl/7099047
-
Lucio De Re authored
R=golang-dev, minux.ma, rsc, ality, seed CC=golang-dev https://golang.org/cl/7034052
-
Caleb Spare authored
Fixes #4642. R=golang-dev, adg CC=golang-dev https://golang.org/cl/7090044
-
Kamil Kisiel authored
Fixes #4640. R=golang-dev, adg CC=golang-dev https://golang.org/cl/7082044
-
Ryan Slade authored
Fixes #4485. R=golang-dev, rsc, adg CC=golang-dev https://golang.org/cl/7071050
-
- 11 Jan, 2013 8 commits
-
-
Brad Fitzpatrick authored
Fixes #4645 R=golang-dev, alex.brainman, minux.ma CC=golang-dev https://golang.org/cl/7105047
-
Robert Griesemer authored
R=adonovan CC=golang-dev https://golang.org/cl/7103047
-
Brad Fitzpatrick authored
Fixes #3460 R=golang-dev, alex.brainman CC=golang-dev https://golang.org/cl/7096046
-
Robert Griesemer authored
The existing type checker was relying on augmenting ast.Object fields (empty interfaces) for its purposes. While this worked for some time now, it has become increasingly brittle. Also, the need for package information for Fields and Methods would have required a new field in each ast.Object. Rather than making them bigger and the code even more subtle, in this CL we are moving away from ast.Objects. The types packge now defines its own objects for different language entities (Const, Var, TypeName, Func), and they implement the types.Object interface. Imported packages create a Package object which holds the exported entities in a types.Scope of types.Objects. For type-checking, the current package is still using ast.Objects to make this transition manageable. In a next step, the type- checker will also use types.Objects instead, which opens the door door to resolving ASTs entirely by the type checker. As a result, the AST and type checker become less entangled, and ASTs can be manipulated "by hand" or programmatically w/o having to worry about scope and object invariants that are very hard to maintain. (As a consequence, a future parser can do less work, and a future AST will not need to define objects and scopes anymore. Also, object resolution which is now split across the parser, the ast, (ast.NewPackage), and even the type checker (for composite literal keys) can be done in a single place which will be simpler and more efficient.) Change details: - Check now takes a []*ast.File instead of a map[string]*ast.File. It's easier to handle (I deleted code at all use sites) and does not suffer from undefined order (which is a pain for testing). - ast.Object.Data is now a *types.Package rather then an *ast.Scope if the object is a package (obj.Kind == ast.Pkg). Eventually this will go away altogether. - Instead of an ast.Importer, Check now uses a types.Importer (which returns a *types.Package). - types.NamedType has two object fields (Obj Object and obj *ast.Object); eventually there will be only Obj. The *ast.Object is needed during this transition since a NamedType may refer to either an imported (using types.Object) or locally defined (using *ast.Object) type. - ast.NewPackage is not used anymore - there's a local copy for package-level resolution of imports. - struct fields now take the package origin into account. - The GcImporter is now returning a *types.Package. It cannot be used with ast.NewPackage anymore. If that functionality is still used, a copy of the old GcImporter should be made locally (note that GcImporter was part of exp/types and it's API was not frozen). - dot-imports are not handled for the time being (this will come back). R=adonovan CC=golang-dev https://golang.org/cl/7058060
-
Rémy Oudompheng authored
Update #4139. R=golang-dev, iant CC=golang-dev https://golang.org/cl/7094047
-
Gwenael Treguier authored
Fixes #3678. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6460087
-
Rémy Oudompheng authored
The -I. syntax now needs a space to be recognized in the compiler. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7098046
-
Rémy Oudompheng authored
This allows test/dwarf to be supported by run.go. Update #4139. R=golang-dev, bradfitz, iant CC=golang-dev https://golang.org/cl/7064067
-