diff src/share/vm/code/vmreg.cpp @ 25:c5cbd367e4d1

6621094: PrintOptoAssembly is broken for oops information in DebugInfo Summary: OopMapValue and VMRegImpl classes miss the virtual method print_on(st). Reviewed-by: rasbold, jrose, never
author kvn
date Wed, 20 Feb 2008 17:23:43 -0800
parents a61af66fc99e
children c7c777385a15
line wrap: on
line diff
--- a/src/share/vm/code/vmreg.cpp	Wed Feb 20 16:19:43 2008 -0800
+++ b/src/share/vm/code/vmreg.cpp	Wed Feb 20 17:23:43 2008 -0800
@@ -36,16 +36,16 @@
 // Register names
 const char *VMRegImpl::regName[ConcreteRegisterImpl::number_of_registers];
 
-void VMRegImpl::print() {
 #ifndef PRODUCT
+void VMRegImpl::print_on(outputStream* st) const {
   if( is_reg() ) {
     assert( VMRegImpl::regName[value()], "" );
-    tty->print("%s",VMRegImpl::regName[value()]);
+    st->print("%s",VMRegImpl::regName[value()]);
   } else if (is_stack()) {
     int stk = value() - stack0->value();
-    tty->print("[%d]", stk*4);
+    st->print("[%d]", stk*4);
   } else {
-    tty->print("BAD!");
+    st->print("BAD!");
   }
+}
 #endif // PRODUCT
-}