summaryrefslogtreecommitdiffstats
path: root/runtime/quick/inline_method_analyser.h
diff options
context:
space:
mode:
authorVladimir Marko <vmarko@google.com>2014-04-02 15:24:05 +0100
committerVladimir Marko <vmarko@google.com>2014-04-07 17:14:39 +0100
commitc8f60a69a9f2420fc1ecafec612a667be8dcd547 (patch)
treedff78a37faedcbe9964ba30ed69f8175365e9d7b /runtime/quick/inline_method_analyser.h
parente1fced1d1805caec04b6e97d2b01a4977c6785c6 (diff)
downloadart-c8f60a69a9f2420fc1ecafec612a667be8dcd547.tar.gz
art-c8f60a69a9f2420fc1ecafec612a667be8dcd547.tar.bz2
art-c8f60a69a9f2420fc1ecafec612a667be8dcd547.zip
Inlining synthetic accessors.
Bug: 11549140 Change-Id: I0d6a38c51887f55563414c240ac42ee64bdb5426
Diffstat (limited to 'runtime/quick/inline_method_analyser.h')
-rw-r--r--runtime/quick/inline_method_analyser.h4
1 files changed, 4 insertions, 0 deletions
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);