mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-25 05:45:11 +02:00
6939203: JSR 292 needs method handle constants
Add new CP types CONSTANT_MethodHandle, CONSTANT_MethodType; extend 'ldc' bytecode. Reviewed-by: twisti, never
This commit is contained in:
parent
154ae789ef
commit
1f4cfb029b
60 changed files with 1549 additions and 378 deletions
|
@ -2659,13 +2659,10 @@ void nmethod::print_code_comment_on(outputStream* st, int column, u_char* begin,
|
|||
case Bytecodes::_getstatic:
|
||||
case Bytecodes::_putstatic:
|
||||
{
|
||||
methodHandle sdm = sd->method();
|
||||
Bytecode_field* field = Bytecode_field_at(sdm(), sdm->bcp_from(sd->bci()));
|
||||
constantPoolOop sdmc = sdm->constants();
|
||||
symbolOop name = sdmc->name_ref_at(field->index());
|
||||
Bytecode_field* field = Bytecode_field_at(sd->method(), sd->bci());
|
||||
st->print(" ");
|
||||
if (name != NULL)
|
||||
name->print_symbol_on(st);
|
||||
if (field->name() != NULL)
|
||||
field->name()->print_symbol_on(st);
|
||||
else
|
||||
st->print("<UNKNOWN>");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue