Alan Donovan
b3dbe56610
go.tools/go/ssa: support 3-operand x[lo:hi:max] slices.
...
+ very basic test ($GOROOT/test/slice3.go needs unsafe.Pointer)
LGTM=gri
R=gri
CC=golang-codereviews
https://golang.org/cl/60030043
2014-02-05 17:54:51 -05:00
Alan Donovan
4dcb74e810
go.tools/go/ssa/interp: implement reflection over callstack (now that we have access to it).
...
+ tests.
Fixes golang/go#6041
Also: move global var _sizes to a field of interpreter.
LGTM=gri
R=gri
CC=golang-codereviews
https://golang.org/cl/56530046
2014-01-27 15:39:17 -05:00
Alan Donovan
fbb3d81367
go.tools/ssa/interp: add intrinsics for (*sync.Pool).{Get,Put}.
...
Since Put() makes a dynamic function call, this CL includes a long-overdue change to supply a *frame (and thus the call
stack and the interpreter) to intrinsics too.
This fixes the tests that were broken by (sound) revision e4a4cb47c141.
LGTM=gri
R=gri
CC=golang-codereviews
https://golang.org/cl/57350043
2014-01-27 13:11:16 -05:00
Alan Donovan
3fc0fc1310
go.tools: rename packages.
...
Was: Now:
ssa go/ssa
importer go/loader
pointer go/pointer
Next CL: call -> go/callgraph (requires more care)
R=gri, crawshaw
CC=golang-codereviews
https://golang.org/cl/52960043
2014-01-16 09:33:58 -05:00