1
0
mirror of https://github.com/golang/go synced 2024-11-19 02:04:42 -07:00
go/ssa
Alan Donovan 2a3a12930b go.tools/ssa: add test of SSA construction on $GOROOT/src/pkg/...
stdlib_test runs the builder (in sanity-checking mode) over
the Go standard library.  It also prints some stats about
the time and memory usage.

Also:
- importer.LoadPackage too (not just doImport) must consult
  the cache to avoid creating duplicate Package instances for
  the same import path when called serially from a test.
- importer: skip empty directories without an error.
- importer: print all errors, not just the first.
- visit.go: added AllFunctions utility for enumerating all
  Functions in a Program.
- ssa.MethodSet is not safe to expose from the package since
  it must be accessed under an (inaccessible) lock.  (!!!)
  This CL makes it unexported and restricts its use to the
  single function Program.LookupMethod().
- Program.MethodSet() has gone.
  Clients should instead iterate over the types.MethodSet
  and call LookupMethod.
- Package.DumpTo(): improved efficiency of methodset printing
  (by not creating wrappers) and accuracy (by showing * on
  receiver type only when necessary).
- Program.CreatePackage: documented precondition and added
  assertion.

R=gri
CC=golang-dev
https://golang.org/cl/12058048
2013-07-30 14:28:14 -04:00
..
interp go.tools/ssa: add test of SSA construction on $GOROOT/src/pkg/... 2013-07-30 14:28:14 -04:00
testdata go.tools/ssa: add debug info for x.f where Selection.Kind()==FieldVal. 2013-07-29 17:10:11 -04:00
blockopt.go go.tools/ssa: combine CallCommon.{Recv,Func} as Value. 2013-07-26 14:06:26 -04:00
builder_test.go go.tools/ssa: add test of SSA construction on $GOROOT/src/pkg/... 2013-07-30 14:28:14 -04:00
builder.go go.tools/ssa: add test of SSA construction on $GOROOT/src/pkg/... 2013-07-30 14:28:14 -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: add debug info for x.f where Selection.Kind()==FieldVal. 2013-07-29 17:10:11 -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: add test of SSA construction on $GOROOT/src/pkg/... 2013-07-30 14:28:14 -04:00
promote.go go.tools/ssa: add test of SSA construction on $GOROOT/src/pkg/... 2013-07-30 14:28:14 -04:00
sanity.go go.tools/ssa: s/Literal/Const/g, s/Constant/NamedConst/g 2013-07-16 13:50:08 -04:00
source_test.go go.tools/ssa: add debug info for x.f where Selection.Kind()==FieldVal. 2013-07-29 17:10:11 -04:00
source.go go.tools/ssa: add test of SSA construction on $GOROOT/src/pkg/... 2013-07-30 14:28:14 -04:00
ssa.go go.tools/ssa: add test of SSA construction on $GOROOT/src/pkg/... 2013-07-30 14:28:14 -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
stdlib_test.go go.tools/ssa: add test of SSA construction on $GOROOT/src/pkg/... 2013-07-30 14:28:14 -04:00
util.go go.tools/ssa: (another) major refactoring of method-set logic. 2013-07-26 11:22:34 -04:00
visit.go go.tools/ssa: add test of SSA construction on $GOROOT/src/pkg/... 2013-07-30 14:28:14 -04:00