delve/pkg/dwarf
Alessandro Arzilli 200994bc8f
proc/*: only load floating point registers when needed (#1981)
Changes implementations of proc.Registers interface and the
op.DwarfRegisters struct so that floating point registers can be loaded
only when they are needed.
Removes the floatingPoint parameter from proc.Thread.Registers.
This accomplishes three things:

1. it simplifies the proc.Thread.Registers interface
2. it makes it impossible to accidentally create a broken set of saved
   registers or of op.DwarfRegisters by accidentally calling
   Registers(false)
3. it improves general performance of Delve by avoiding to load
   floating point registers as much as possible

Floating point registers are loaded under two circumstances:

1. When the Slice method is called with floatingPoint == true
2. When the Copy method is called

Benchmark before:

BenchmarkConditionalBreakpoints-4   	       1	4327350142 ns/op

Benchmark after:

BenchmarkConditionalBreakpoints-4   	       1	3852642917 ns/op

Updates #1549
2020-05-13 11:56:50 -07:00
..
dwarfbuilder proc: ignore DW_TAG_inlined_subroutine entries without abstract origin (#1637) 2019-07-26 11:24:35 -07:00
frame *: un-export unnecessarily public symbols 2020-03-31 14:47:29 -07:00
godwarf proc,dwarf: cache debug.Entry objects (#1931) 2020-03-20 10:23:10 -07:00
line Miscellaneous debug_line improvements (#1999) 2020-04-09 13:57:44 -07:00
loclist pkg/proc,pkg/dwarf: Introduce loclist package 2019-11-13 18:30:21 +01:00
op proc/*: only load floating point registers when needed (#1981) 2020-05-13 11:56:50 -07:00
reader proc,dwarf: cache debug.Entry objects (#1931) 2020-03-20 10:23:10 -07:00
util *: Fix go vet complaints (#1935) 2020-03-18 09:25:32 -07:00