src/share/vm/code/nmethod.cpp

changeset 1957
136b78722a08
parent 1934
e9ff18c4ace7
child 1971
38e8278318ca
equal deleted inserted replaced
1940:49fac4acd688 1957:136b78722a08
2657 case Bytecodes::_getfield: 2657 case Bytecodes::_getfield:
2658 case Bytecodes::_putfield: 2658 case Bytecodes::_putfield:
2659 case Bytecodes::_getstatic: 2659 case Bytecodes::_getstatic:
2660 case Bytecodes::_putstatic: 2660 case Bytecodes::_putstatic:
2661 { 2661 {
2662 methodHandle sdm = sd->method(); 2662 Bytecode_field* field = Bytecode_field_at(sd->method(), sd->bci());
2663 Bytecode_field* field = Bytecode_field_at(sdm(), sdm->bcp_from(sd->bci()));
2664 constantPoolOop sdmc = sdm->constants();
2665 symbolOop name = sdmc->name_ref_at(field->index());
2666 st->print(" "); 2663 st->print(" ");
2667 if (name != NULL) 2664 if (field->name() != NULL)
2668 name->print_symbol_on(st); 2665 field->name()->print_symbol_on(st);
2669 else 2666 else
2670 st->print("<UNKNOWN>"); 2667 st->print("<UNKNOWN>");
2671 } 2668 }
2672 } 2669 }
2673 } 2670 }

mercurial