1
0
mirror of https://github.com/golang/go synced 2024-11-12 07:40:23 -07:00
go/misc
Keith Randall 2034fbab5b cmd/compile: use existing instructions instead of nops for inline marks
Instead of always inserting a nop to use as the target of an inline
mark, see if we can instead find an instruction we're issuing anyway
with the correct line number, and use that instruction. That way, we
don't need to issue a nop.

Makes cmd/go 0.3% smaller.

Update #29571

Change-Id: If6cfc93ab3352ec2c6e0878f8074a3bf0786b2f8
Reviewed-on: https://go-review.googlesource.com/c/go/+/158021
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
2019-03-25 16:49:29 +00:00
..
android misc/android: pass on GOPROXY to device environment 2019-03-21 16:15:47 +00:00
arm all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
cgo cmd/compile: use existing instructions instead of nops for inline marks 2019-03-25 16:49:29 +00:00
chrome/gophertool all: link to https instead of http 2015-07-11 14:36:33 +00:00
ios misc/ios: don't override GOCACHE on the device 2019-03-21 16:24:05 +00:00
linkcheck misc/linkcheck: better redirect handling, use meaningful exit code 2013-10-25 17:31:02 +03:00
nacl cmd: refresh cmd/vendor to match 'go mod vendor' 2019-03-11 20:27:03 +00:00
reboot cmd/dist: add a test in misc/reboot to verify that the toolchain can self-bootstrap 2019-03-13 21:16:24 +00:00
swig cmd/go: fix swig support and run swig tests during run.bash 2017-11-16 17:19:19 +00:00
trace misc/trace: update trace_viewer_full.html 2018-04-26 20:26:23 +00:00
wasm misc/wasm: exit with code 1 if WebAssembly.instantiate fails 2019-03-25 07:55:12 +00:00
benchcmp all: use golang.org/x/... import paths 2014-11-10 09:15:57 +11:00
editors all: don't refer to code.google.com/p/go{,-wiki}/ 2015-02-06 14:41:47 +00:00
go.mod misc: add go.mod file 2019-02-27 17:47:31 +00:00