]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: convert ishairy into a visitor
authorAustin Clements <austin@google.com>
Wed, 19 Apr 2017 20:32:41 +0000 (16:32 -0400)
committerAustin Clements <austin@google.com>
Fri, 21 Apr 2017 16:43:26 +0000 (16:43 +0000)
commite52d317d2476acc0a9985fab7068ee5c2971807b
treee910066d4dcc7a7db341e7177376843f6bcb57b7
parent24c52ee57046f5e58ce6db158b0efad02ced6606
cmd/compile: convert ishairy into a visitor

The inliner's ishairy passes a budget and a reason down through the
walk. Lift these into a visitor object and turn ishairy and its
helpers into methods.

This will make it easy to add more state.

Change-Id: Ic6ae246e1affd67ed283c3205f9595ae33e22215
Reviewed-on: https://go-review.googlesource.com/41151
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/inl.go