mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +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
|
@ -34,6 +34,7 @@ class InterpreterRuntime: AllStatic {
|
|||
static frame last_frame(JavaThread *thread) { return thread->last_frame(); }
|
||||
static methodOop method(JavaThread *thread) { return last_frame(thread).interpreter_frame_method(); }
|
||||
static address bcp(JavaThread *thread) { return last_frame(thread).interpreter_frame_bcp(); }
|
||||
static int bci(JavaThread *thread) { return last_frame(thread).interpreter_frame_bci(); }
|
||||
static void set_bcp_and_mdp(address bcp, JavaThread*thread);
|
||||
static Bytecodes::Code code(JavaThread *thread) {
|
||||
// pass method to avoid calling unsafe bcp_to_method (partial fix 4926272)
|
||||
|
@ -59,6 +60,7 @@ class InterpreterRuntime: AllStatic {
|
|||
public:
|
||||
// Constants
|
||||
static void ldc (JavaThread* thread, bool wide);
|
||||
static void resolve_ldc (JavaThread* thread, Bytecodes::Code bytecode);
|
||||
|
||||
// Allocation
|
||||
static void _new (JavaThread* thread, constantPoolOopDesc* pool, int index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue