diff options
author | 2016-03-31 12:02:28 +0100 | |
---|---|---|
committer | 2016-04-04 17:50:20 +0100 | |
commit | 9d07e3d128ccfa0ef7670feadd424a825e447d1d (patch) | |
tree | dfb677fd75f0f297fef9bc49311cf1d22c770f56 /compiler/compiled_method.cc | |
parent | eb98c0ded592cfca8187c744393c82efd1020b2a (diff) |
Clean up OatQuickMethodHeader after Quick removal.
This reduces the size of the pre-header by 8 bytes, reducing
oat file size and mmapped .text section size. The memory
needed to store a CompiledMethod by dex2oat is also reduced,
for 32-bit dex2oat by 8B and for 64-bit dex2oat by 16B. The
aosp_flounder-userdebug 32-bit and 64-bit boot.oat are each
about 1.1MiB smaller.
Disable the broken StubTest.IMT, b/27991555 .
Change-Id: I05fe45c28c8ffb7a0fa8b1117b969786748b1039
Diffstat (limited to 'compiler/compiled_method.cc')
-rw-r--r-- | compiler/compiled_method.cc | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/compiler/compiled_method.cc b/compiler/compiled_method.cc index 9551d2298b..f06d90c81c 100644 --- a/compiler/compiled_method.cc +++ b/compiler/compiled_method.cc @@ -106,9 +106,7 @@ CompiledMethod::CompiledMethod(CompilerDriver* driver, const uint32_t core_spill_mask, const uint32_t fp_spill_mask, const ArrayRef<const SrcMapElem>& src_mapping_table, - const ArrayRef<const uint8_t>& mapping_table, const ArrayRef<const uint8_t>& vmap_table, - const ArrayRef<const uint8_t>& native_gc_map, const ArrayRef<const uint8_t>& cfi_info, const ArrayRef<const LinkerPatch>& patches) : CompiledCode(driver, instruction_set, quick_code), @@ -116,9 +114,7 @@ CompiledMethod::CompiledMethod(CompilerDriver* driver, fp_spill_mask_(fp_spill_mask), src_mapping_table_( driver->GetCompiledMethodStorage()->DeduplicateSrcMappingTable(src_mapping_table)), - mapping_table_(driver->GetCompiledMethodStorage()->DeduplicateMappingTable(mapping_table)), vmap_table_(driver->GetCompiledMethodStorage()->DeduplicateVMapTable(vmap_table)), - gc_map_(driver->GetCompiledMethodStorage()->DeduplicateGCMap(native_gc_map)), cfi_info_(driver->GetCompiledMethodStorage()->DeduplicateCFIInfo(cfi_info)), patches_(driver->GetCompiledMethodStorage()->DeduplicateLinkerPatches(patches)) { } @@ -131,15 +127,20 @@ CompiledMethod* CompiledMethod::SwapAllocCompiledMethod( const uint32_t core_spill_mask, const uint32_t fp_spill_mask, const ArrayRef<const SrcMapElem>& src_mapping_table, - const ArrayRef<const uint8_t>& mapping_table, const ArrayRef<const uint8_t>& vmap_table, - const ArrayRef<const uint8_t>& native_gc_map, const ArrayRef<const uint8_t>& cfi_info, const ArrayRef<const LinkerPatch>& patches) { SwapAllocator<CompiledMethod> alloc(driver->GetCompiledMethodStorage()->GetSwapSpaceAllocator()); CompiledMethod* ret = alloc.allocate(1); - alloc.construct(ret, driver, instruction_set, quick_code, frame_size_in_bytes, core_spill_mask, - fp_spill_mask, src_mapping_table, mapping_table, vmap_table, native_gc_map, + alloc.construct(ret, + driver, + instruction_set, + quick_code, + frame_size_in_bytes, + core_spill_mask, + fp_spill_mask, + src_mapping_table, + vmap_table, cfi_info, patches); return ret; } @@ -154,9 +155,7 @@ CompiledMethod::~CompiledMethod() { CompiledMethodStorage* storage = GetCompilerDriver()->GetCompiledMethodStorage(); storage->ReleaseLinkerPatches(patches_); storage->ReleaseCFIInfo(cfi_info_); - storage->ReleaseGCMap(gc_map_); storage->ReleaseVMapTable(vmap_table_); - storage->ReleaseMappingTable(mapping_table_); storage->ReleaseSrcMappingTable(src_mapping_table_); } |