Alan Donovan
7ef831a4e6
go.tools/go/ssa: perform nil check when taking value of interface method.
...
+ test.
Fixes golang/go#7269
LGTM=gri
R=gri
CC=golang-codereviews
https://golang.org/cl/84650046
2014-04-09 18:00:57 -04:00
Alan Donovan
d503a640d7
go.tools/go/ssa: name anon funcs by their enclosing func.
...
Before, they were named func@line:col which made them easy to find in the source if you know the file, but hard if you don't, and it made tests fragile.
Now, they are named outer$1, outer$2, etc, which makes them
more informative in a UI since "outer" has meaning.
LGTM=crawshaw
R=crawshaw
CC=golang-codereviews
https://golang.org/cl/65630048
2014-02-28 10:18:55 -05:00
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
2845638157
go.tools/go/ssa: simplify builder.exprN now that go/types emits correct types.
...
(Follow-up to fix of issue 7060.)
Also: comment fixes.
R=gri
CC=golang-codereviews
https://golang.org/cl/47670043
2014-01-17 09:38:25 -05:00
Alan Donovan
9cfde22948
go.tools/ssa/interp: rewrite initorder test.
...
Correct, this time.
R=gri
CC=golang-codereviews
https://golang.org/cl/52930043
2014-01-16 14:08:04 -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