Mercurial > hg > truffle
comparison src/share/vm/runtime/sharedRuntime.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 | 2a47bd84841f |
comparison
equal
deleted
inserted
replaced
1585:49fac4acd688 | 1602:136b78722a08 |
---|---|
777 methodHandle caller (THREAD, vfst.method()); | 777 methodHandle caller (THREAD, vfst.method()); |
778 int bci = vfst.bci(); | 778 int bci = vfst.bci(); |
779 | 779 |
780 // Find bytecode | 780 // Find bytecode |
781 Bytecode_invoke* bytecode = Bytecode_invoke_at(caller, bci); | 781 Bytecode_invoke* bytecode = Bytecode_invoke_at(caller, bci); |
782 bc = bytecode->adjusted_invoke_code(); | 782 bc = bytecode->java_code(); |
783 int bytecode_index = bytecode->index(); | 783 int bytecode_index = bytecode->index(); |
784 | 784 |
785 // Find receiver for non-static call | 785 // Find receiver for non-static call |
786 if (bc != Bytecodes::_invokestatic) { | 786 if (bc != Bytecodes::_invokestatic) { |
787 // This register map must be update since we need to find the receiver for | 787 // This register map must be update since we need to find the receiver for |