tools/ssa
Alan Donovan fb0642f5fb go.tools/ssa: fix a package-level var initialization order bug.
buildDecl was visiting all decls in source order, but the spec
calls for visiting all vars and init() funcs in order, then
all remaining functions.  These two passes are now called
buildInit(), buildFuncDecl().

+ Test.

Also:
- Added workaround to gcimporter for Func with pkg==nil.
- Prog.concreteMethods has been merged into Pkg.values.
- Prog.concreteMethod() renamed declaredFunc().
- s/mfunc/obj/ (name cleanup from recent gri CL)

R=gri
CC=golang-dev
https://golang.org/cl/12030044
2013-07-29 14:24:09 -04:00
..
interp go.tools/ssa: fix a package-level var initialization order bug. 2013-07-29 14:24:09 -04:00
testdata go.tools/go/types: use *Var instead of *Field for struct fields 2013-07-19 11:01:51 -07:00
blockopt.go go.tools/ssa: combine CallCommon.{Recv,Func} as Value. 2013-07-26 14:06:26 -04:00
builder.go go.tools/ssa: fix a package-level var initialization order bug. 2013-07-29 14:24:09 -04:00
builder_test.go go.tools/ssa: (another) major refactoring of method-set logic. 2013-07-26 11:22:34 -04:00
const.go go.tools/ssa: s/Literal/Const/g, s/Constant/NamedConst/g 2013-07-16 13:50:08 -04:00
create.go go.tools/ssa: fix a package-level var initialization order bug. 2013-07-29 14:24:09 -04:00
doc.go go.tools/ssa: s/Literal/Const/g, s/Constant/NamedConst/g 2013-07-16 13:50:08 -04:00
dom.go go.tools/ssa: un-export Function.FullName. Use String. 2013-06-26 12:38:08 -04:00
emit.go go.tools/ssa: tests of method promotion and of interface conversion + bugfixes. 2013-07-26 21:49:27 -04:00
example_test.go go.tools/importer: rename Context to Config for consistency with go/types. 2013-07-19 11:02:27 -04:00
func.go go.tools/ssa: (another) major refactoring of method-set logic. 2013-07-26 11:22:34 -04:00
lift.go go.tools/ssa: s/Literal/Const/g, s/Constant/NamedConst/g 2013-07-16 13:50:08 -04:00
lvalue.go go.tools/ssa: some refactorings 2013-07-18 16:59:06 -04:00
print.go go.tools/ssa: combine CallCommon.{Recv,Func} as Value. 2013-07-26 14:06:26 -04:00
promote.go go.tools/ssa: fix a package-level var initialization order bug. 2013-07-29 14:24:09 -04:00
sanity.go go.tools/ssa: s/Literal/Const/g, s/Constant/NamedConst/g 2013-07-16 13:50:08 -04:00
source.go go.tools/ssa: fix a package-level var initialization order bug. 2013-07-29 14:24:09 -04:00
source_test.go go.tools/importer: rename Context to Config for consistency with go/types. 2013-07-19 11:02:27 -04:00
ssa.go go.tools/ssa: fix a package-level var initialization order bug. 2013-07-29 14:24:09 -04:00
ssadump.go go.tools/ssa: big simplification: use new types.MethodSet to compute ssa.MethodSet. 2013-07-19 17:35:29 -04:00
util.go go.tools/ssa: (another) major refactoring of method-set logic. 2013-07-26 11:22:34 -04:00