1.1 --- a/src/share/vm/c1/c1_InstructionPrinter.cpp Mon Jul 23 13:04:59 2012 -0700 1.2 +++ b/src/share/vm/c1/c1_InstructionPrinter.cpp Tue Jul 24 10:51:00 2012 -0700 1.3 @@ -137,12 +137,16 @@ 1.4 ciMethod* m = (ciMethod*)value; 1.5 output()->print("<method %s.%s>", m->holder()->name()->as_utf8(), m->name()->as_utf8()); 1.6 } else { 1.7 - output()->print("<object " PTR_FORMAT ">", value->constant_encoding()); 1.8 + output()->print("<object " PTR_FORMAT " klass=", value->constant_encoding()); 1.9 + print_klass(value->klass()); 1.10 + output()->print(">"); 1.11 } 1.12 } else if (type->as_InstanceConstant() != NULL) { 1.13 ciInstance* value = type->as_InstanceConstant()->value(); 1.14 if (value->is_loaded()) { 1.15 - output()->print("<instance " PTR_FORMAT ">", value->constant_encoding()); 1.16 + output()->print("<instance " PTR_FORMAT " klass=", value->constant_encoding()); 1.17 + print_klass(value->klass()); 1.18 + output()->print(">"); 1.19 } else { 1.20 output()->print("<unloaded instance " PTR_FORMAT ">", value); 1.21 } 1.22 @@ -453,6 +457,14 @@ 1.23 } 1.24 1.25 1.26 +void InstructionPrinter::do_TypeCast(TypeCast* x) { 1.27 + output()->print("type_cast("); 1.28 + print_value(x->obj()); 1.29 + output()->print(") "); 1.30 + print_klass(x->declared_type()->klass()); 1.31 +} 1.32 + 1.33 + 1.34 void InstructionPrinter::do_Invoke(Invoke* x) { 1.35 if (x->receiver() != NULL) { 1.36 print_value(x->receiver());