- 23 Feb, 2013 1 commit
-
-
Dave Cheney authored
Move Skip and friends into *common so benchmarks can also be skipped. R=golang-dev, gustav.paul, rsc CC=golang-dev https://golang.org/cl/7379046
-
- 22 Feb, 2013 23 commits
-
-
Mikio Hara authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/7403049
-
Carl Shapiro authored
Fixes #4875. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7376049
-
Akshat Kumar authored
At least one test (in package runtime) depends on `go' being in $path. We simply bind GOROOT/bin before /bin to make sure the latest copy of the binary is accessible there. R=rsc, rminnich, ality CC=golang-dev https://golang.org/cl/7391047
-
Akshat Kumar authored
Plan 9 I/O preserves message boundaries, while Go library code is written for UNIX-like operating systems which do not. Avoid doing zero-length writes in package os. R=rsc, rminnich, ality, rminnich, r CC=golang-dev https://golang.org/cl/7406046
-
Russ Cox authored
R=ken2 CC=golang-dev https://golang.org/cl/7399050
-
Rob Pike authored
This is a simple refactoring of main.go that will enable the type checker to be used during vetting. The change has an unimportant effect on the arguments: it now assumes that all files named explicitly on the command line belong to the same package. When run by the go command, this was true already. Also restore a missing parenthesis from an error message. R=golang-dev, gri, bradfitz CC=golang-dev https://golang.org/cl/7393052
-
Russ Cox authored
For now, all the callbacks from C use top-level Go functions, so they use the equivalent C function pointer, and will continue to do so. But perhaps some day this will be useful for calling a Go func value (at least if the type is already known). More importantly, the Windows callback code needs to be able to use cgocallback_gofunc to call a Go func value. Should fix the Windows build. R=ken2 CC=golang-dev https://golang.org/cl/7388049
-
Rob Pike authored
R=adonovan CC=golang-dev https://golang.org/cl/7386052
-
Russ Cox authored
Step 4 of http://golang.org/s/go11func. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7393049
-
Russ Cox authored
Step 3 of http://golang.org/s/go11func. Fixes #3736. Fixes #3738. Fixes #4081. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7393050
-
Alan Donovan authored
We wrap the final '...' argument's type in types.Slice. Added tests. Also: - Function.writeSignature: suppress slice '[]' when printing variadic arg '...'. - Eliminate Package.ImportPath field; redundant w.r.t. Package.Types.Path. - Use "TODO: (opt|fix)" notation more widely. - Eliminate many redundant/stale TODOs. R=gri CC=golang-dev https://golang.org/cl/7378057
-
Russ Cox authored
Change ARM context register to R7, to get out of the way of the register allocator during the compilation of the prologue statements (it wants to use R0 as a temporary). Step 2 of http://golang.org/s/go11func. R=ken2 CC=golang-dev https://golang.org/cl/7369048
-
Russ Cox authored
The new src argument is ignored during linking (that is, CALL r1, r2 is identical to CALL r2 for linking), but it serves as a hint to the 5g/6g/8g optimizer that the src register is live on entry to the called function and must be preserved. It is possible to avoid exposing this fact to the rest of the toolchain, keeping it entirely within 5g/6g/8g, but I think it will help to be able to look in object files and assembly listings and linker -a / -W output to see CALL instructions are "Go func value" calls and which are "C function pointer" calls. R=ken2 CC=golang-dev https://golang.org/cl/7364045
-
Brad Fitzpatrick authored
This makes Go's quoted-printable decoder more like other popular ones, allowing through a bare \r or \n, and also passes through \r\n which looked like a real bug before. Fixes #4771 R=minux.ma CC=golang-dev https://golang.org/cl/7300092
-
Russ Cox authored
R=golang-dev, dvyukov CC=golang-dev https://golang.org/cl/7382049
-
Alan Donovan authored
By appending to the wrong (always empty) list, only the last anonymous field was being considered for promotion. Also: - eliminated "function-local NamedTypes" TODO; nothing to do. - fixed Function.DumpTo: printing of anon receivers was "( T)", now "(T)"; extracted writeSignature into own function. - eliminated blockNames function; thanks to BasicBlock.String, "%s" of []*BasicBlock is fine. - extracted buildReferrers into own function. exp/ssa can now build its own transitive closure. R=gri CC=golang-dev https://golang.org/cl/7384054
-
Russ Cox authored
R=golang-dev, dvyukov CC=golang-dev https://golang.org/cl/7395051
-
Russ Cox authored
runtime: add context argument to gogocall Too many other things use AX, and at least one (stack zeroing) cannot be moved onto a different register. Use the less special DX instead. Preparation for step 2 of http://golang.org/s/go11func. Nothing interesting here, just split out so that we can see it's correct before moving on. R=ken2 CC=golang-dev https://golang.org/cl/7395050
-
Alan Donovan authored
- append: nothing to do (nonsemantic change). - delete: now performs correct conversion (+ test). - emitCompare: nothing to do. - emitArith (shifts): nothing to do (+ test). - "banish untyped types": give up on that. - real, imag: now do correct conversions. - added comment to interp.go re zero-size values. R=gri CC=golang-dev https://golang.org/cl/7391046
-
Anthony Martin authored
This significantly speeds up the go tool on slow file systems (or those with cold caches). The following numbers were obtained using an encrypted ext4 file system running on Linux 3.7.9. # Before $ sudo sysctl -w 'vm.drop_caches=3' $ time go list code.google.com/p/go.net/... | wc -l 9 real 0m16.921s user 0m0.637s sys 0m0.317s # After $ sudo sysctl -w 'vm.drop_caches=3' $ time go list code.google.com/p/go.net/... | wc -l 9 real 0m8.175s user 0m0.220s sys 0m0.177s R=rsc, r CC=golang-dev https://golang.org/cl/7369044
-
Anthony Martin authored
R=adonovan, minux.ma, alex.brainman, akumar, rminnich CC=golang-dev, lucio.dere https://golang.org/cl/7300078
-
Olivier Duperray authored
Fixes #4812. R=golang-dev, adg CC=golang-dev https://golang.org/cl/7396051
-
Alex Brainman authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7393048
-
- 21 Feb, 2013 16 commits
-
-
Rob Pike authored
Mention Scanner in docs for ReadLine etc. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7375045
-
Dave Cheney authored
R=jsing, mikioh.mikioh, bradfitz CC=golang-dev https://golang.org/cl/7390048
-
Brad Fitzpatrick authored
Fixes #4860 R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7375047
-
Robert Dinu authored
Revision 5e7fd762f356 has changed the output formatting in a way that is no longer in line with the format described by the revision ff0ade0b937b which has introduced this functionality. When decorating the first line, instead of indenting the whole line, the current implementation adds indentation right after the "decorate" part and before the "log" message. The fix addresses this issue. R=golang-dev, iant, minux.ma, r, rsc, remyoudompheng CC=golang-dev https://golang.org/cl/7304094
-
Russ Cox authored
Step 1 of http://golang.org/s/go11func. R=golang-dev, r, daniel.morsing, remyoudompheng CC=golang-dev https://golang.org/cl/7393045
-
Brad Fitzpatrick authored
Fixes #4867 R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/7382045
-
Carl Shapiro authored
Previously, the func structure contained an inaccurate value for the args member and a 0 value for the locals member. This change populates the func structure with args and locals values computed by the compiler. The number of args was already available in the ATEXT instruction. The number of locals is now passed through in the new ALOCALS instruction. This change also switches the unit of args and locals to be bytes, just like the frame member, instead of 32-bit words. R=golang-dev, bradfitz, cshapiro, dave, rsc CC=golang-dev https://golang.org/cl/7399045
-
Brad Fitzpatrick authored
Update #4860 R=adg, rsc, campoy CC=golang-dev https://golang.org/cl/7369045
-
Russ Cox authored
R=golang-dev, bradfitz, r CC=golang-dev https://golang.org/cl/7379045
-
Rob Pike authored
Update norm and local/collate as well. R=mpvl CC=golang-dev https://golang.org/cl/7395045
-
Brad Fitzpatrick authored
Return nice errors and don't panic. Fixes #4859 R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7383046
-
Russ Cox authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7390047
-
Dmitriy Vyukov authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7397049
-
Russ Cox authored
lvd changed the old %N to %+hN and these never got updated. R=ken2 CC=golang-dev https://golang.org/cl/7391045
-
Alan Donovan authored
The interpreter's os.Exit now triggers a special panic rather than kill the test process. (It's semantically dubious, since it will run deferred routines.) Interpret now returns its exit code rather than calling os.Exit. Also: - disabled parts of a few $GOROOT/tests via os.Getenv("GOSSAINTERP"). - remove unnecessary 'slots' param to external functions; they are never closures. Most of the tests are disabled until go/types supports shifts. They can be reenabled if you patch this workaround: https://golang.org/cl/7312068 R=iant, bradfitz CC=golang-dev, gri https://golang.org/cl/7313062
-
Russ Cox authored
Assume people who were going to update to Go 1 have done so. Those with pre-Go 1 trees remaining will need to update first to Go 1.0 (using its 'go fix') and then to Go 1.1. Cuts the cmd/fix test time by 99% (3 seconds to 0.03 seconds). R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7402046
-