From 68efa7b1128486e08ae60cd27181645b27bbd2e4 Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Mon, 28 Jan 2019 18:59:23 +0000 Subject: Add code size to CodeInfo This temporarily adds 0.25% to oat file size. The space will be reclaimed back in follow-up CL. Bug: 123510633 Test: DCHECK compare the two stored code sizes. Change-Id: I15340824ca637fd075a4cef87771b06cb96bb9f4 --- compiler/optimizing/stack_map_stream.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (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..164e9021b2 100644 --- a/compiler/optimizing/stack_map_stream.h +++ b/compiler/optimizing/stack_map_stream.h @@ -62,7 +62,7 @@ class StackMapStream : public DeletableArenaObject { size_t core_spill_mask, size_t fp_spill_mask, uint32_t num_dex_registers); - void EndMethod(); + void EndMethod(size_t code_size); void BeginStackMapEntry(uint32_t dex_pc, uint32_t native_pc_offset, @@ -99,6 +99,7 @@ class StackMapStream : public DeletableArenaObject { ScopedArenaAllocator* allocator_; const InstructionSet instruction_set_; + uint32_t packed_code_size_ = 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