Mercurial > hg > truffle
comparison agent/src/share/classes/sun/jvm/hotspot/ui/classbrowser/HTMLGenerator.java @ 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 | c18cbe5936b8 |
children | 083fde3b838e |
comparison
equal
deleted
inserted
replaced
1585:49fac4acd688 | 1602:136b78722a08 |
---|---|
567 buf.cell(Integer.toString(cpool.getIntAt(index))); | 567 buf.cell(Integer.toString(cpool.getIntAt(index))); |
568 break; | 568 break; |
569 | 569 |
570 case JVM_CONSTANT_StringIndex: | 570 case JVM_CONSTANT_StringIndex: |
571 buf.cell("JVM_CONSTANT_StringIndex"); | 571 buf.cell("JVM_CONSTANT_StringIndex"); |
572 buf.cell(Integer.toString(cpool.getIntAt(index))); | |
573 break; | |
574 | |
575 case JVM_CONSTANT_MethodHandle: | |
576 buf.cell("JVM_CONSTANT_MethodHandle"); | |
577 buf.cell(genLowHighShort(cpool.getIntAt(index))); | |
578 break; | |
579 | |
580 case JVM_CONSTANT_MethodType: | |
581 buf.cell("JVM_CONSTANT_MethodType"); | |
572 buf.cell(Integer.toString(cpool.getIntAt(index))); | 582 buf.cell(Integer.toString(cpool.getIntAt(index))); |
573 break; | 583 break; |
574 | 584 |
575 default: | 585 default: |
576 throw new InternalError("unknown tag: " + ctag); | 586 throw new InternalError("unknown tag: " + ctag); |