Mercurial > hg > graal-compiler
comparison src/share/vm/code/vmreg.cpp @ 100:c7c777385a15
6667042: PrintAssembly option does not work without special plugin
Summary: remove old private plugin interface, simplify, rework old plugin to use unchanged Gnu sources
Reviewed-by: kvn, rasbold
author | jrose |
---|---|
date | Wed, 02 Apr 2008 12:09:59 -0700 |
parents | c5cbd367e4d1 |
children | d1605aabd0a1 |
comparison
equal
deleted
inserted
replaced
99:8a4ef4e001d3 | 100:c7c777385a15 |
---|---|
34 | 34 |
35 const int VMRegImpl::register_count = ConcreteRegisterImpl::number_of_registers; | 35 const int VMRegImpl::register_count = ConcreteRegisterImpl::number_of_registers; |
36 // Register names | 36 // Register names |
37 const char *VMRegImpl::regName[ConcreteRegisterImpl::number_of_registers]; | 37 const char *VMRegImpl::regName[ConcreteRegisterImpl::number_of_registers]; |
38 | 38 |
39 #ifndef PRODUCT | |
40 void VMRegImpl::print_on(outputStream* st) const { | 39 void VMRegImpl::print_on(outputStream* st) const { |
41 if( is_reg() ) { | 40 if( is_reg() ) { |
42 assert( VMRegImpl::regName[value()], "" ); | 41 assert( VMRegImpl::regName[value()], "" ); |
43 st->print("%s",VMRegImpl::regName[value()]); | 42 st->print("%s",VMRegImpl::regName[value()]); |
44 } else if (is_stack()) { | 43 } else if (is_stack()) { |
46 st->print("[%d]", stk*4); | 45 st->print("[%d]", stk*4); |
47 } else { | 46 } else { |
48 st->print("BAD!"); | 47 st->print("BAD!"); |
49 } | 48 } |
50 } | 49 } |
51 #endif // PRODUCT |