1.1 --- a/src/share/vm/asm/assembler.cpp Fri Dec 14 12:11:17 2012 -0800 1.2 +++ b/src/share/vm/asm/assembler.cpp Mon Dec 17 11:00:22 2012 -0800 1.3 @@ -119,26 +119,6 @@ 1.4 emit_long(x); 1.5 } 1.6 1.7 -// Labels refer to positions in the (to be) generated code. There are bound 1.8 -// and unbound 1.9 -// 1.10 -// Bound labels refer to known positions in the already generated code. 1.11 -// offset() is the position the label refers to. 1.12 -// 1.13 -// Unbound labels refer to unknown positions in the code to be generated; it 1.14 -// may contain a list of unresolved displacements that refer to it 1.15 -#ifndef PRODUCT 1.16 -void AbstractAssembler::print(Label& L) { 1.17 - if (L.is_bound()) { 1.18 - tty->print_cr("bound label to %d|%d", L.loc_pos(), L.loc_sect()); 1.19 - } else if (L.is_unbound()) { 1.20 - L.print_instructions((MacroAssembler*)this); 1.21 - } else { 1.22 - tty->print_cr("label in inconsistent state (loc = %d)", L.loc()); 1.23 - } 1.24 -} 1.25 -#endif // PRODUCT 1.26 - 1.27 1.28 void AbstractAssembler::bind(Label& L) { 1.29 if (L.is_bound()) { 1.30 @@ -342,28 +322,3 @@ 1.31 #endif 1.32 return offset < 0 || os::vm_page_size() <= offset; 1.33 } 1.34 - 1.35 -#ifndef PRODUCT 1.36 -void Label::print_instructions(MacroAssembler* masm) const { 1.37 - CodeBuffer* cb = masm->code(); 1.38 - for (int i = 0; i < _patch_index; ++i) { 1.39 - int branch_loc; 1.40 - if (i >= PatchCacheSize) { 1.41 - branch_loc = _patch_overflow->at(i - PatchCacheSize); 1.42 - } else { 1.43 - branch_loc = _patches[i]; 1.44 - } 1.45 - int branch_pos = CodeBuffer::locator_pos(branch_loc); 1.46 - int branch_sect = CodeBuffer::locator_sect(branch_loc); 1.47 - address branch = cb->locator_address(branch_loc); 1.48 - tty->print_cr("unbound label"); 1.49 - tty->print("@ %d|%d ", branch_pos, branch_sect); 1.50 - if (branch_sect == CodeBuffer::SECT_CONSTS) { 1.51 - tty->print_cr(PTR_FORMAT, *(address*)branch); 1.52 - continue; 1.53 - } 1.54 - masm->pd_print_patched_instruction(branch); 1.55 - tty->cr(); 1.56 - } 1.57 -} 1.58 -#endif // ndef PRODUCT