From 2979d53b8abf6ea4122783b58c35c82aea437000 Mon Sep 17 00:00:00 2001 From: Santiago Aboy Solanes Date: Thu, 29 Sep 2022 18:03:13 +0100 Subject: Add compiler support for @NeverInline This change sets methods as not inlineable if they are annotated with @NeverInline. This is done by adding a new method in dex_file_annotations.h that checks if a method is annotated, similar to @NeverCompile. Bug: 246530973 Change-Id: I5851fd85367f49d7af3201a7a3ef766f669401e9 --- compiler/optimizing/optimizing_compiler_stats.h | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/optimizing/optimizing_compiler_stats.h') diff --git a/compiler/optimizing/optimizing_compiler_stats.h b/compiler/optimizing/optimizing_compiler_stats.h index 5e316ba403..18b3a60546 100644 --- a/compiler/optimizing/optimizing_compiler_stats.h +++ b/compiler/optimizing/optimizing_compiler_stats.h @@ -96,6 +96,7 @@ enum class MethodCompilationStat { kNotInlinedTryCatchCallee, kNotInlinedRegisterAllocator, kNotInlinedCannotBuild, + kNotInlinedNeverInlineAnnotation, kNotInlinedNotCompilable, kNotInlinedNotVerified, kNotInlinedCodeItem, -- cgit v1.2.3-59-g8ed1b