From 4b3946a55516b9218063171d827009a1ffde7ba3 Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Tue, 2 Jul 2019 15:24:18 -0700 Subject: Remove small and tiny method options These are unused and nops. Test: test-art-host-gtest Change-Id: I6421387d53ec8692cf420be71ec47e1ef5e61f19 --- compiler/driver/compiler_options.h | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'compiler/driver/compiler_options.h') diff --git a/compiler/driver/compiler_options.h b/compiler/driver/compiler_options.h index 0ab5ff1907..bd832b963e 100644 --- a/compiler/driver/compiler_options.h +++ b/compiler/driver/compiler_options.h @@ -62,8 +62,6 @@ class CompilerOptions final { // Guide heuristics to determine whether to compile method if profile data not available. static const size_t kDefaultHugeMethodThreshold = 10000; static const size_t kDefaultLargeMethodThreshold = 600; - static const size_t kDefaultSmallMethodThreshold = 60; - static const size_t kDefaultTinyMethodThreshold = 20; static const size_t kDefaultNumDexMethodsThreshold = 900; static constexpr double kDefaultTopKProfileThreshold = 90.0; static const bool kDefaultGenerateDebugInfo = false; @@ -125,14 +123,6 @@ class CompilerOptions final { return large_method_threshold_; } - size_t GetSmallMethodThreshold() const { - return small_method_threshold_; - } - - size_t GetTinyMethodThreshold() const { - return tiny_method_threshold_; - } - bool IsHugeMethod(size_t num_dalvik_instructions) const { return num_dalvik_instructions > huge_method_threshold_; } @@ -141,14 +131,6 @@ class CompilerOptions final { return num_dalvik_instructions > large_method_threshold_; } - bool IsSmallMethod(size_t num_dalvik_instructions) const { - return num_dalvik_instructions > small_method_threshold_; - } - - bool IsTinyMethod(size_t num_dalvik_instructions) const { - return num_dalvik_instructions > tiny_method_threshold_; - } - size_t GetNumDexMethodsThreshold() const { return num_dex_methods_threshold_; } @@ -375,8 +357,6 @@ class CompilerOptions final { CompilerFilter::Filter compiler_filter_; size_t huge_method_threshold_; size_t large_method_threshold_; - size_t small_method_threshold_; - size_t tiny_method_threshold_; size_t num_dex_methods_threshold_; size_t inline_max_code_units_; -- cgit v1.2.3-59-g8ed1b