From 17b4d2b14fd26088bca195b5d7c48f26b8b545d8 Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Tue, 2 Mar 2021 18:14:31 +0000 Subject: Add code size to CodeInfo. This is in preparation of removing it from OatQuickMethodHeader. Bug: 123510633 Test: m test-art-host-gtest Test: ./art/test.py -b -r --host Change-Id: I5c5adb4c040e329b81c1393aa1b80ee017729c8a --- 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 67f716ce70..3ded07d6cd 100644 --- a/compiler/optimizing/stack_map_stream.h +++ b/compiler/optimizing/stack_map_stream.h @@ -63,7 +63,7 @@ class StackMapStream : public DeletableArenaObject { size_t fp_spill_mask, uint32_t num_dex_registers, bool baseline = false); - void EndMethod(); + void EndMethod(size_t code_size); void BeginStackMapEntry(uint32_t dex_pc, uint32_t native_pc_offset, @@ -116,6 +116,7 @@ class StackMapStream : public DeletableArenaObject { ScopedArenaAllocator* allocator_; const InstructionSet instruction_set_; + uint32_t 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