changeset 2489:0d3482ad0868

More debug code
author Gary Benson <gbenson@redhat.com>
date Mon, 28 Mar 2011 13:23:22 +0100
parents dfa8e5680ab9
children ac968467a650
files src/cpu/zero/vm/cppInterpreter_zero.cpp
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/cpu/zero/vm/cppInterpreter_zero.cpp	Mon Mar 28 13:16:53 2011 +0100
+++ b/src/cpu/zero/vm/cppInterpreter_zero.cpp	Mon Mar 28 13:23:22 2011 +0100
@@ -942,6 +942,12 @@
 
       // Create the new slot(s)
       intptr_t *unwind_sp = calculate_unwind_sp(stack, method_handle);
+      if (interesting) {
+        tty->print_cr("arg_slot = %d, num_slots = %d", arg_slot, num_slots);
+        for (intptr_t *slot = stack->sp(); slot < unwind_sp; slot++) {
+          tty->print_cr("  %p: %p", slot, *slot);
+        }
+      }      
       insert_vmslots(arg_slot, num_slots, THREAD);
       if (HAS_PENDING_EXCEPTION) {
         // all oops trashed
@@ -953,6 +959,13 @@
       // Duplicate the arguments
       for (int i = 0; i < num_slots; i++)
         SET_VMSLOTS_SLOT(VMSLOTS_SLOT(arg_slot + num_slots + i), arg_slot + i);
+
+      if (interesting) {
+        tty->print_cr("----");
+        for (intptr_t *slot = stack->sp(); slot < unwind_sp; slot++) {
+          tty->print_cr("  %p: %p", slot, *slot);
+        }
+      }      
     }
     break;