From a42363f79832a6e14f348514664dc6dc3edf9da2 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Thu, 17 Dec 2015 14:57:09 +0000 Subject: Implement first kind of polymorphic inlining. Add HClassTableGet to fetch an ArtMethod from the vtable or imt, and compare it to the only method the profiling saw. Change-Id: I76afd3689178f10e3be048aa3ac9a97c6f63295d --- compiler/optimizing/inliner.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'compiler/optimizing/inliner.h') diff --git a/compiler/optimizing/inliner.h b/compiler/optimizing/inliner.h index 8de510ea37..3c01751a70 100644 --- a/compiler/optimizing/inliner.h +++ b/compiler/optimizing/inliner.h @@ -85,6 +85,11 @@ class HInliner : public HOptimization { bool same_dex_file, bool do_rtp = true); + HInstanceFieldGet* BuildGetReceiverClass(ClassLinker* class_linker, + HInstruction* receiver, + uint32_t dex_pc) const + SHARED_REQUIRES(Locks::mutator_lock_); + HGraph* const outermost_graph_; const DexCompilationUnit& outer_compilation_unit_; const DexCompilationUnit& caller_compilation_unit_; -- cgit v1.2.3-59-g8ed1b