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 if (obj->obj_field(offset()) != NULL) { 192 obj->obj_field(offset())->print_value_on(st); 193 } else { 194 st->print_cr("NULL"); 195 } 196 break; 197 case T_OBJECT: 198 st->print(" "); 199 NOT_LP64(as_int = obj->int_field(offset())); 200 if (obj->obj_field(offset()) != NULL) { 201 obj->obj_field(offset())->print_value_on(st); 202 } else { 203 st->print_cr("NULL"); 204 } 205 break; 206 default: 207 ShouldNotReachHere(); 208 break; 209 } 210 // Print a hint as to the underlying integer representation. This can be wrong for 211 // pointers on an LP64 machine 212 #ifdef _LP64 213 if ((ft == T_OBJECT || ft == T_ARRAY) && UseCompressedOops) { 214 st->print(" (%x)", obj->int_field(offset())); 215 } 216 else // <- intended 217 #endif 218 if (ft == T_LONG || ft == T_DOUBLE LP64_ONLY(|| !is_java_primitive(ft)) ) { 219 st->print(" (%x %x)", obj->int_field(offset()), obj->int_field(offset()+sizeof(jint))); 220 } else if (as_int < 0 || as_int > 9) { 221 st->print(" (%x)", as_int); 222 } 223 } 224 |