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/optimizing_compiler_stats.h | 2 ++ 1 file changed, 2 insertions(+) (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 f8035aae34..881beb49a6 100644 --- a/compiler/optimizing/optimizing_compiler_stats.h +++ b/compiler/optimizing/optimizing_compiler_stats.h @@ -51,6 +51,7 @@ enum MethodCompilationStat { kNotCompiledVerificationError, kNotCompiledVerifyAtRuntime, kInlinedMonomorphicCall, + kInlinedPolymorphicCall, kMonomorphicCall, kPolymorphicCall, kMegamorphicCall, @@ -118,6 +119,7 @@ class OptimizingCompilerStats { case kNotCompiledVerificationError : name = "NotCompiledVerificationError"; break; case kNotCompiledVerifyAtRuntime : name = "NotCompiledVerifyAtRuntime"; break; case kInlinedMonomorphicCall: name = "InlinedMonomorphicCall"; break; + case kInlinedPolymorphicCall: name = "InlinedPolymorphicCall"; break; case kMonomorphicCall: name = "MonomorphicCall"; break; case kPolymorphicCall: name = "PolymorphicCall"; break; case kMegamorphicCall: name = "kMegamorphicCall"; break; -- cgit v1.2.3-59-g8ed1b