From 8808756b8fba036a9c73a45c800a56be09872364 Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Sat, 23 Jun 2018 22:05:56 +0100 Subject: Remove frame info from OatQuickMethodHeader. The information has been moved to CodeInfo, where it is stored in much more compact way. The old CL which added the data to CodeInfo cost 0.7%. This CL saves 2.5% of .oat file size so a win overall. Test: test-art-host-gtest Change-Id: I07fcf6f2776c96218f995ba3b57a1e6ccbf5e317 --- compiler/compiled_method.h | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'compiler/compiled_method.h') diff --git a/compiler/compiled_method.h b/compiler/compiled_method.h index acdce260e5..aa6fd3e655 100644 --- a/compiler/compiled_method.h +++ b/compiler/compiled_method.h @@ -112,9 +112,6 @@ class CompiledMethod FINAL : public CompiledCode { CompiledMethod(CompilerDriver* driver, InstructionSet instruction_set, const ArrayRef& quick_code, - const size_t frame_size_in_bytes, - const uint32_t core_spill_mask, - const uint32_t fp_spill_mask, const ArrayRef& method_info, const ArrayRef& vmap_table, const ArrayRef& cfi_info, @@ -126,9 +123,6 @@ class CompiledMethod FINAL : public CompiledCode { CompilerDriver* driver, InstructionSet instruction_set, const ArrayRef& quick_code, - const size_t frame_size_in_bytes, - const uint32_t core_spill_mask, - const uint32_t fp_spill_mask, const ArrayRef& method_info, const ArrayRef& vmap_table, const ArrayRef& cfi_info, @@ -148,18 +142,6 @@ class CompiledMethod FINAL : public CompiledCode { SetPackedField(/* value */ true); } - size_t GetFrameSizeInBytes() const { - return frame_size_in_bytes_; - } - - uint32_t GetCoreSpillMask() const { - return core_spill_mask_; - } - - uint32_t GetFpSpillMask() const { - return fp_spill_mask_; - } - ArrayRef GetMethodInfo() const; ArrayRef GetVmapTable() const; @@ -177,12 +159,6 @@ class CompiledMethod FINAL : public CompiledCode { using IsIntrinsicField = BitField; - // For quick code, the size of the activation used by the code. - const size_t frame_size_in_bytes_; - // For quick code, a bit mask describing spilled GPR callee-save registers. - const uint32_t core_spill_mask_; - // For quick code, a bit mask describing spilled FPR callee-save registers. - const uint32_t fp_spill_mask_; // For quick code, method specific information that is not very dedupe friendly (method indices). const LengthPrefixedArray* const method_info_; // For quick code, holds code infos which contain stack maps, inline information, and etc. -- cgit v1.2.3-59-g8ed1b