summaryrefslogtreecommitdiffstats
path: root/vm/compiler/codegen/arm/ArchUtility.c
diff options
context:
space:
mode:
authorBen Cheng <bccheng@android.com>2011-03-14 11:16:21 -0700
committerBen Cheng <bccheng@android.com>2011-03-14 11:16:21 -0700
commit0451704c192aeaa2a2ff6c9f835afc092ad6b98e (patch)
treef4cfe49dc37073381122b0fea6857d1e371dc8b3 /vm/compiler/codegen/arm/ArchUtility.c
parent6d59d5584b793e597e94300bf95dea8ee8335ccf (diff)
downloadandroid_dalvik-0451704c192aeaa2a2ff6c9f835afc092ad6b98e.tar.gz
android_dalvik-0451704c192aeaa2a2ff6c9f835afc092ad6b98e.tar.bz2
android_dalvik-0451704c192aeaa2a2ff6c9f835afc092ad6b98e.zip
Print class/method info for virtual callsites in JIT verbose mode.
For example: chaining cell (predicted): Ljava/lang/Object;getClass Change-Id: Ia53340baab87d6b744fc7189b141737a4a54cc42
Diffstat (limited to 'vm/compiler/codegen/arm/ArchUtility.c')
-rw-r--r--vm/compiler/codegen/arm/ArchUtility.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/vm/compiler/codegen/arm/ArchUtility.c b/vm/compiler/codegen/arm/ArchUtility.c
index d94b1a7e1..961a2e17e 100644
--- a/vm/compiler/codegen/arm/ArchUtility.c
+++ b/vm/compiler/codegen/arm/ArchUtility.c
@@ -325,10 +325,13 @@ void dvmDumpLIRInsn(LIR *arg, unsigned char *baseAddr)
LOGD("-------- chaining cell (hot): 0x%04x\n", dest);
break;
case kArmPseudoChainingCellInvokePredicted:
- LOGD("-------- chaining cell (predicted)\n");
+ LOGD("-------- chaining cell (predicted): %s%s\n",
+ dest ? ((Method *) dest)->clazz->descriptor : "",
+ dest ? ((Method *) dest)->name : "N/A");
break;
case kArmPseudoChainingCellInvokeSingleton:
- LOGD("-------- chaining cell (invoke singleton): %s/%p\n",
+ LOGD("-------- chaining cell (invoke singleton): %s%s/%p\n",
+ ((Method *)dest)->clazz->descriptor,
((Method *)dest)->name,
((Method *)dest)->insns);
break;