summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author Ian Rogers <irogers@google.com> 2012-10-10 22:04:12 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2012-10-10 22:04:12 -0700
commit19634a504f71496411ad99dbc0ed5b6885367c9c (patch)
tree1113336116e765cce2243ae50c95a15ba2ac813a /src
parentd7456de0d427128f772998bef32daf0f1114f818 (diff)
parentc468e92d1e18305a5053c8a4a7c88cb297e525af (diff)
Merge "Fix compiler logging for interface invocations." into dalvik-dev
Diffstat (limited to 'src')
-rw-r--r--src/compiler.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compiler.cc b/src/compiler.cc
index 97a35f0d42..7bec994604 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -837,7 +837,9 @@ void Compiler::GetCodeAndMethodForDirectCall(InvokeType type, InvokeType sharp_t
if (has_clinit_trampoline) {
return;
}
- stats_->DirectCallsToBoot(type);
+ if (sharp_type != kInterface) { // Interfaces always go via a trampoline.
+ stats_->DirectCallsToBoot(type);
+ }
stats_->DirectMethodsToBoot(type);
bool compiling_boot = Runtime::Current()->GetHeap()->GetSpaces().size() == 1;
if (compiling_boot) {