171 break; 172 case T_INT: 173 as_int = obj->int_field(offset()); 174 st->print(" %d", obj->int_field(offset())); 175 break; 176 case T_LONG: 177 st->print(" "); 178 st->print_jlong(obj->long_field(offset())); 179 break; 180 case T_SHORT: 181 as_int = obj->short_field(offset()); 182 st->print(" %d", obj->short_field(offset())); 183 break; 184 case T_BOOLEAN: 185 as_int = obj->bool_field(offset()); 186 st->print(" %s", obj->bool_field(offset()) ? "true" : "false"); 187 break; 188 case T_ARRAY: 189 st->print(" "); 190 NOT_LP64(as_int = obj->int_field(offset())); 191 obj->obj_field(offset())->print_value_on(st); 192 break; 193 case T_OBJECT: 194 st->print(" "); 195 NOT_LP64(as_int = obj->int_field(offset())); 196 obj->obj_field(offset())->print_value_on(st); 197 break; 198 default: 199 ShouldNotReachHere(); 200 break; 201 } 202 // Print a hint as to the underlying integer representation. This can be wrong for 203 // pointers on an LP64 machine 204 #ifdef _LP64 205 if ((ft == T_OBJECT || ft == T_ARRAY) && UseCompressedOops) { 206 st->print(" (%x)", obj->int_field(offset())); 207 } 208 else // <- intended 209 #endif 210 if (ft == T_LONG || ft == T_DOUBLE LP64_ONLY(|| !is_java_primitive(ft)) ) { 211 st->print(" (%x %x)", obj->int_field(offset()), obj->int_field(offset()+sizeof(jint))); 212 } else if (as_int < 0 || as_int > 9) { 213 st->print(" (%x)", as_int); 214 } 215 } 216 | 171 break; 172 case T_INT: 173 as_int = obj->int_field(offset()); 174 st->print(" %d", obj->int_field(offset())); 175 break; 176 case T_LONG: 177 st->print(" "); 178 st->print_jlong(obj->long_field(offset())); 179 break; 180 case T_SHORT: 181 as_int = obj->short_field(offset()); 182 st->print(" %d", obj->short_field(offset())); 183 break; 184 case T_BOOLEAN: 185 as_int = obj->bool_field(offset()); 186 st->print(" %s", obj->bool_field(offset()) ? "true" : "false"); 187 break; 188 case T_ARRAY: 189 st->print(" "); 190 NOT_LP64(as_int = obj->int_field(offset())); 191 oopDesc::print_value_on(st, obj->obj_field(offset())); 192 break; 193 case T_OBJECT: 194 st->print(" "); 195 NOT_LP64(as_int = obj->int_field(offset())); 196 oopDesc::print_value_on(st, obj->obj_field(offset())); 197 break; 198 default: 199 ShouldNotReachHere(); 200 break; 201 } 202 // Print a hint as to the underlying integer representation. This can be wrong for 203 // pointers on an LP64 machine 204 #ifdef _LP64 205 if ((ft == T_OBJECT || ft == T_ARRAY) && UseCompressedOops) { 206 st->print(" (%x)", obj->int_field(offset())); 207 } 208 else // <- intended 209 #endif 210 if (ft == T_LONG || ft == T_DOUBLE LP64_ONLY(|| !is_java_primitive(ft)) ) { 211 st->print(" (%x %x)", obj->int_field(offset()), obj->int_field(offset()+sizeof(jint))); 212 } else if (as_int < 0 || as_int > 9) { 213 st->print(" (%x)", as_int); 214 } 215 } 216 |