]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add Buffer.Grow to TestIntendedInlining
authorDaniel Martí <mvdan@mvdan.cc>
Sat, 1 Dec 2018 16:28:27 +0000 (16:28 +0000)
committerDaniel Martí <mvdan@mvdan.cc>
Sat, 1 Dec 2018 17:31:02 +0000 (17:31 +0000)
commitb397248168fcb26400ac6afb88bf6080497a819e
tree2e6c5e2740c77e76e330da4d576280396482eae8
parent624e197c71b673f0b3ebc57f774536131b4f0f26
cmd/compile: add Buffer.Grow to TestIntendedInlining

golang.org/cl/151977 slightly decreased the cost of inlining an extra
call from 60 to 57, since it was a safe change that could help in some
scenarios.

One notable change spotted in that CL is that bytes.Buffer.Grow is now
inlinable, meaning that a fixedbugs test needed updating.

For consistency, add the test case to TestIntendedInlining too,
alongside other commonly used bytes.Buffer methods.

Change-Id: I4fb402fc684ef4c543fc65aea343ca1a4d73a189
Reviewed-on: https://go-review.googlesource.com/c/151979
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/inl_test.go