diff options
author | David Srbecky <dsrbecky@google.com> | 2021-03-02 18:14:31 +0000 |
---|---|---|
committer | David Srbecky <dsrbecky@google.com> | 2021-03-05 12:03:30 +0000 |
commit | 17b4d2b14fd26088bca195b5d7c48f26b8b545d8 (patch) | |
tree | bd2f741127dbb63e04aee99e5f65a2960f63f2be /compiler/optimizing/stack_map_stream.h | |
parent | 39d529f45bad3ecf2bd6b376a049fde6cb0c21b4 (diff) |
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
Diffstat (limited to 'compiler/optimizing/stack_map_stream.h')
-rw-r--r-- | compiler/optimizing/stack_map_stream.h | 3 |
1 files changed, 2 insertions, 1 deletions
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<kArenaAllocStackMapStream> { 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<kArenaAllocStackMapStream> { 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; |