1
0
mirror of https://github.com/golang/go synced 2024-10-01 11:28:34 -06:00
go/ssa
Alan Donovan 7aabe2e113 go.tools/ssa: build a separate Function for each init() func.
Before, we would concatenate all the init() blocks together,
resulting in incorrect treatment of a recovered panic in one
init block: the implicit return would cause the subsequent ones
to be skipped.

The result is simpler, and closer to what gc does.

The additional functions are visible in the call graph,
so some tests required updating.

R=gri
CC=crawshaw, golang-dev
https://golang.org/cl/14671044
2013-10-14 14:08:23 -04:00
..
interp go.tools/ssa: build a separate Function for each init() func. 2013-10-14 14:08:23 -04:00
testdata go.tools/ssa: fix ssa tests (fix build partly) 2013-09-18 11:39:55 -07:00
blockopt.go go.tools: add copyright messages to source files. 2013-08-27 18:49:13 -04:00
builder_test.go go.tools/importer: expose CreatePackage method. 2013-10-10 12:37:49 -04:00
builder.go go.tools/ssa: build a separate Function for each init() func. 2013-10-14 14:08:23 -04:00
const.go go.tools/go/types: nil is not a constant + misc. cleanups 2013-10-09 14:17:25 -07:00
create.go go.tools/ssa: build a separate Function for each init() func. 2013-10-14 14:08:23 -04:00
doc.go go.tools/ssa: doc tweaks + a sanity check. 2013-10-09 12:47:30 -04:00
dom.go go.tools: add copyright messages to source files. 2013-08-27 18:49:13 -04:00
emit.go go.tools/ssa: s/Ret/Return/g 2013-10-08 12:31:39 -04:00
example_test.go go.tools/importer: expose CreatePackage method. 2013-10-10 12:37:49 -04:00
func.go go.tools/ssa: doc tweaks + a sanity check. 2013-10-09 12:47:30 -04:00
lift.go go.tools: add copyright messages to source files. 2013-08-27 18:49:13 -04:00
lvalue.go go.tools: add copyright messages to source files. 2013-08-27 18:49:13 -04:00
print.go go.tools/ssa: s/Ret/Return/g 2013-10-08 12:31:39 -04:00
promote.go go.tools: add copyright messages to source files. 2013-08-27 18:49:13 -04:00
sanity.go go.tools/ssa: doc tweaks + a sanity check. 2013-10-09 12:47:30 -04:00
source_test.go go.tools/importer: expose CreatePackage method. 2013-10-10 12:37:49 -04:00
source.go go.tools/ssa: build a separate Function for each init() func. 2013-10-14 14:08:23 -04:00
ssa.go go.tools/ssa: build a separate Function for each init() func. 2013-10-14 14:08:23 -04:00
stdlib_test.go go.tools/importer: generalize command-line syntax. 2013-09-06 18:13:57 -04:00
testmain.go go.tools/ssa: s/Ret/Return/g 2013-10-08 12:31:39 -04:00
util.go go.tools: add copyright messages to source files. 2013-08-27 18:49:13 -04:00
visit.go go.tools/importer: generalize command-line syntax. 2013-09-06 18:13:57 -04:00