diff options
author | David Srbecky <dsrbecky@google.com> | 2021-03-02 22:49:46 +0000 |
---|---|---|
committer | David Srbecky <dsrbecky@google.com> | 2021-03-09 15:00:30 +0000 |
commit | 113d6ea4c5182bac718a0350e858b420d1bac9e2 (patch) | |
tree | 9189f60176478265c9bbc888d72e35fcb29c96da /compiler/common_compiler_test.cc | |
parent | bc1748f825aed2a59a9bfbb087ab6e29e875d2d1 (diff) |
Move code size from OatQuickMethodHeader to CodeInfo.
This saves 0.5% of oat file size.
(0.8% saving from this CL minus 0.3% due to go/aog/1614482)
Bug: 123510633
Test: m dump-oat
Test: m test-art-host-gtest
Test: ./art/test.py -b -r --host
Change-Id: I035b54a47b300a5808aa8c2992f87eae009fd245
Diffstat (limited to 'compiler/common_compiler_test.cc')
-rw-r--r-- | compiler/common_compiler_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/common_compiler_test.cc b/compiler/common_compiler_test.cc index 1aaeac0c80..9170a8555a 100644 --- a/compiler/common_compiler_test.cc +++ b/compiler/common_compiler_test.cc @@ -57,7 +57,7 @@ class CommonCompilerTestImpl::CodeAndMetadata { CHECK_NE(code_size, 0u); const uint32_t vmap_table_offset = vmap_table.empty() ? 0u : sizeof(OatQuickMethodHeader) + vmap_table.size(); - OatQuickMethodHeader method_header(vmap_table_offset, code_size); + OatQuickMethodHeader method_header(vmap_table_offset); const size_t code_alignment = GetInstructionSetAlignment(instruction_set); DCHECK_ALIGNED_PARAM(kPageSize, code_alignment); code_offset_ = RoundUp(vmap_table.size() + sizeof(method_header), code_alignment); |