summaryrefslogtreecommitdiffstats
path: root/compiler/dex/quick/dex_file_method_inliner.h
diff options
context:
space:
mode:
authorVladimir Marko <vmarko@google.com>2014-02-18 14:41:21 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-02-18 14:41:21 +0000
commit2befd09cf4fe89a18a655f3e1dd310831bfa769f (patch)
tree9329308374370e1db721cb4d1e4723daa6001fdf /compiler/dex/quick/dex_file_method_inliner.h
parent46861fccd9b5efb3226e2003310f01e748aec0a1 (diff)
parent84c072c348006d87a370ad6e746e2d976cbe62f2 (diff)
downloadart-2befd09cf4fe89a18a655f3e1dd310831bfa769f.tar.gz
art-2befd09cf4fe89a18a655f3e1dd310831bfa769f.tar.bz2
art-2befd09cf4fe89a18a655f3e1dd310831bfa769f.zip
Merge "Expose inline method identification for debugger."
Diffstat (limited to 'compiler/dex/quick/dex_file_method_inliner.h')
-rw-r--r--compiler/dex/quick/dex_file_method_inliner.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/compiler/dex/quick/dex_file_method_inliner.h b/compiler/dex/quick/dex_file_method_inliner.h
index f4c2d6704a..3dcb964fab 100644
--- a/compiler/dex/quick/dex_file_method_inliner.h
+++ b/compiler/dex/quick/dex_file_method_inliner.h
@@ -150,13 +150,24 @@ class DexFileMethodInliner {
* Analyse method code to determine if the method is a candidate for inlining.
* If it is, record its data for later.
*
- * @param method_idx the index of the inlining candidate.
- * @param code_item a previously verified code item of the method.
+ * @param verifier the method verifier holding data about the method to analyse.
+ * @return true if the method is a candidate for inlining, false otherwise.
*/
bool AnalyseMethodCode(verifier::MethodVerifier* verifier)
SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) LOCKS_EXCLUDED(lock_);
/**
+ * Analyse method code to determine if the method is a candidate for inlining.
+ * If it is, record the inlining data.
+ *
+ * @param verifier the method verifier holding data about the method to analyse.
+ * @param method placeholder for the inline method data.
+ * @return true if the method is a candidate for inlining, false otherwise.
+ */
+ bool AnalyseMethodCode(verifier::MethodVerifier* verifier, InlineMethod* method)
+ SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) LOCKS_EXCLUDED(lock_);
+
+ /**
* Check whether a particular method index corresponds to an intrinsic function.
*/
bool IsIntrinsic(uint32_t method_index) LOCKS_EXCLUDED(lock_);