From c8f60a69a9f2420fc1ecafec612a667be8dcd547 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Wed, 2 Apr 2014 15:24:05 +0100 Subject: Inlining synthetic accessors. Bug: 11549140 Change-Id: I0d6a38c51887f55563414c240ac42ee64bdb5426 --- runtime/quick/inline_method_analyser.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime/quick/inline_method_analyser.h') diff --git a/runtime/quick/inline_method_analyser.h b/runtime/quick/inline_method_analyser.h index 277a01e502..ddee89b7bf 100644 --- a/runtime/quick/inline_method_analyser.h +++ b/runtime/quick/inline_method_analyser.h @@ -21,6 +21,7 @@ #include "base/mutex.h" #include "dex_file.h" #include "dex_instruction.h" +#include "method_reference.h" /* * NOTE: This code is part of the quick compiler. It lives in the runtime @@ -156,6 +157,9 @@ class InlineMethodAnalyser { return opcode - Instruction::IPUT; } + // Determines whether the method is a synthetic accessor (method name starts with "access$"). + static bool IsSyntheticAccessor(MethodReference ref); + private: static bool AnalyseReturnMethod(const DexFile::CodeItem* code_item, InlineMethod* result); static bool AnalyseConstMethod(const DexFile::CodeItem* code_item, InlineMethod* result); -- cgit v1.2.3