diff options
author | Matthew Dempsky <mdempsky@google.com> | 2016-10-03 12:26:25 -0700 |
---|---|---|
committer | Matthew Dempsky <mdempsky@google.com> | 2016-10-04 17:07:36 +0000 |
commit | 8c24bff52b7d8e789382a8992af2e0adf0b491f2 (patch) | |
tree | 2ed52935a2b932d7d699fa75cbb1dae52ac00f5a /src/cmd/compile/internal/ssa/export_test.go | |
parent | f239196b9e1c0d58ab2067630bd1db7210eb7f6a (diff) | |
download | go-8c24bff52b7d8e789382a8992af2e0adf0b491f2.tar.gz go-8c24bff52b7d8e789382a8992af2e0adf0b491f2.zip |
cmd/compile: layout stack frame during SSA
Identify live stack variables during SSA and compute the stack frame
layout earlier so that we can emit instructions with the correct
offsets upfront.
Passes toolstash/buildall.
Change-Id: I191100dba274f1e364a15bdcfdc1d1466cdd1db5
Reviewed-on: https://go-review.googlesource.com/30216
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/ssa/export_test.go')
-rw-r--r-- | src/cmd/compile/internal/ssa/export_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/ssa/export_test.go b/src/cmd/compile/internal/ssa/export_test.go index e6ccca60cb..069641cd33 100644 --- a/src/cmd/compile/internal/ssa/export_test.go +++ b/src/cmd/compile/internal/ssa/export_test.go @@ -61,6 +61,8 @@ func (d DummyFrontend) SplitStruct(s LocalSlot, i int) LocalSlot { func (DummyFrontend) Line(line int32) string { return "unknown.go:0" } +func (DummyFrontend) AllocFrame(f *Func) { +} func (d DummyFrontend) Logf(msg string, args ...interface{}) { d.t.Logf(msg, args...) } func (d DummyFrontend) Log() bool { return true } |