]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: more compact DWARF location for locals and arguments
authorAlessandro Arzilli <alessandro.arzilli@gmail.com>
Tue, 4 Jul 2017 06:32:02 +0000 (08:32 +0200)
committerHeschi Kreinick <heschi@google.com>
Wed, 6 Sep 2017 18:33:51 +0000 (18:33 +0000)
commit31ddd8a39d802c073c2bcf4b1f4e74f851fa80c4
tree4ee24db0a679e6b3c33ed1446031b9a2e471d6a6
parent84188296e93dd4d26cb0a75a03a9096794e01e2f
cmd/compile: more compact DWARF location for locals and arguments

Now that all functions have a DW_AT_frame_base defined we can use
DW_OP_fbreg to specify the location of variables and formal parameters,
instead of the DW_OP_call_frame_cfa/DW_OP_consts/DW_OP_plus, saving 2
bytes for every variable and 2 bytes for every formal parameter after
the first one.

Change-Id: I2c7395b67e4a814a0131ab1520df11ca48ff9327
Reviewed-on: https://go-review.googlesource.com/60550
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
src/cmd/internal/dwarf/dwarf.go