diff options
author | 2021-10-13 17:25:33 +0100 | |
---|---|---|
committer | 2021-11-01 11:18:53 +0000 | |
commit | 0b7fd8737038c8aa004899b16c879385b5490563 (patch) | |
tree | 2336c34bf1c3c0dd7175ffd4d1393a7db39e536f /compiler/optimizing/instruction_builder.cc | |
parent | fc76d9e19726b44483b617ff8b085e99a649d05f (diff) |
Refactor JavaHprofDataSource::Trace() callback lambda
JavaHprofDataSource::Trace() used to have a ~200 lines lambda callback
(with nested lambda). This is an attempt to split into different methods
in order to improve readability by:
* Creating some methods with slightly more meaningful names.
* Adding comments to the methods.
* Limiting the scope of variables: they can be class members, passed
around as parameters or be local variables.
The only functional change is that `min_nonnull_ptr` used to include
objects that were later set to nullptr. Now the code first filters the
field references (and sets them to nullptr) and later takes the minimum.
Bug: 194395971
Change-Id: I638d4c359dab66aa20ec63122bee05a478699c6b
Diffstat (limited to 'compiler/optimizing/instruction_builder.cc')
0 files changed, 0 insertions, 0 deletions