From e42a4b95eed312e6f7019645f4c66b2d77254433 Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Sun, 26 May 2019 00:10:25 +0100 Subject: Optimize stack maps: add fast path for no inline info. Consumers of CodeInfo can skip significant chunks of work if they can quickly determine that method has no inlining. Store this fact as a flag bit at the start of code info. This changes binary format and adds <0.1% to oat size. I added the extra flag field as the simplest solution for now, although I would like to use it for more things in the future. (e.g. store the special cases of empty/deduped tables in it) This improves app startup by 0.4% (maps,speed). PMD on golem seems to gets around 15% faster. Bug: 133257467 Test: ./art/test.py -b --host --64 Change-Id: Ia498a31bafc74b51cc95b8c70cf1da4b0e3d894e --- compiler/optimizing/stack_map_stream.h | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/optimizing/stack_map_stream.h') diff --git a/compiler/optimizing/stack_map_stream.h b/compiler/optimizing/stack_map_stream.h index 01c6bf9e0e..20dd32e308 100644 --- a/compiler/optimizing/stack_map_stream.h +++ b/compiler/optimizing/stack_map_stream.h @@ -99,6 +99,7 @@ class StackMapStream : public DeletableArenaObject { ScopedArenaAllocator* allocator_; const InstructionSet instruction_set_; + uint32_t flags_ = 0; uint32_t packed_frame_size_ = 0; uint32_t core_spill_mask_ = 0; uint32_t fp_spill_mask_ = 0; -- cgit v1.2.3-59-g8ed1b