Mercurial > hg > graal-jvmci-8
comparison src/share/vm/code/nmethod.cpp @ 1602:136b78722a08
6939203: JSR 292 needs method handle constants
Summary: Add new CP types CONSTANT_MethodHandle, CONSTANT_MethodType; extend 'ldc' bytecode.
Reviewed-by: twisti, never
author | jrose |
---|---|
date | Wed, 09 Jun 2010 18:50:45 -0700 |
parents | e9ff18c4ace7 |
children | 38e8278318ca |
comparison
equal
deleted
inserted
replaced
1585:49fac4acd688 | 1602: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 } |