1.1 --- a/src/share/vm/compiler/oopMap.cpp Wed Feb 20 16:19:43 2008 -0800 1.2 +++ b/src/share/vm/compiler/oopMap.cpp Wed Feb 20 17:23:43 2008 -0800 1.3 @@ -506,27 +506,27 @@ 1.4 } 1.5 1.6 1.7 -void print_register_type(OopMapValue::oop_types x, VMReg optional) { 1.8 +static void print_register_type(OopMapValue::oop_types x, VMReg optional, outputStream* st) { 1.9 switch( x ) { 1.10 case OopMapValue::oop_value: 1.11 - tty->print("Oop"); 1.12 + st->print("Oop"); 1.13 break; 1.14 case OopMapValue::value_value: 1.15 - tty->print("Value" ); 1.16 + st->print("Value" ); 1.17 break; 1.18 case OopMapValue::dead_value: 1.19 - tty->print("Dead" ); 1.20 + st->print("Dead" ); 1.21 break; 1.22 case OopMapValue::callee_saved_value: 1.23 - tty->print("Callers_" ); 1.24 - optional->print(); 1.25 + st->print("Callers_" ); 1.26 + optional->print_on(st); 1.27 break; 1.28 case OopMapValue::derived_oop_value: 1.29 - tty->print("Derived_oop_" ); 1.30 - optional->print(); 1.31 + st->print("Derived_oop_" ); 1.32 + optional->print_on(st); 1.33 break; 1.34 case OopMapValue::stack_obj: 1.35 - tty->print("Stack"); 1.36 + st->print("Stack"); 1.37 break; 1.38 default: 1.39 ShouldNotReachHere(); 1.40 @@ -534,11 +534,11 @@ 1.41 } 1.42 1.43 1.44 -void OopMapValue::print() const { 1.45 - reg()->print(); 1.46 - tty->print("="); 1.47 - print_register_type(type(),content_reg()); 1.48 - tty->print(" "); 1.49 +void OopMapValue::print_on(outputStream* st) const { 1.50 + reg()->print_on(st); 1.51 + st->print("="); 1.52 + print_register_type(type(),content_reg(),st); 1.53 + st->print(" "); 1.54 } 1.55 1.56