comparison src/share/vm/classfile/verifier.cpp @ 1660:083fde3b838e

6964498: JSR 292 invokedynamic sites need local bootstrap methods Summary: Add JVM_CONSTANT_InvokeDynamic records to constant pool to determine per-instruction BSMs. Reviewed-by: twisti
author jrose
date Thu, 15 Jul 2010 18:40:45 -0700
parents 136b78722a08
children 7f0fdccac34f
comparison
equal deleted inserted replaced
1649:a528509c992b 1660:083fde3b838e
1911 u2 index = bcs->get_index_u2(); 1911 u2 index = bcs->get_index_u2();
1912 Bytecodes::Code opcode = bcs->raw_code(); 1912 Bytecodes::Code opcode = bcs->raw_code();
1913 unsigned int types = (opcode == Bytecodes::_invokeinterface 1913 unsigned int types = (opcode == Bytecodes::_invokeinterface
1914 ? 1 << JVM_CONSTANT_InterfaceMethodref 1914 ? 1 << JVM_CONSTANT_InterfaceMethodref
1915 : opcode == Bytecodes::_invokedynamic 1915 : opcode == Bytecodes::_invokedynamic
1916 ? 1 << JVM_CONSTANT_NameAndType 1916 ? (1 << JVM_CONSTANT_NameAndType
1917 |1 << JVM_CONSTANT_InvokeDynamic)
1917 : 1 << JVM_CONSTANT_Methodref); 1918 : 1 << JVM_CONSTANT_Methodref);
1918 verify_cp_type(index, cp, types, CHECK_VERIFY(this)); 1919 verify_cp_type(index, cp, types, CHECK_VERIFY(this));
1919 1920
1920 // Get method name and signature 1921 // Get method name and signature
1921 symbolHandle method_name(THREAD, cp->name_ref_at(index)); 1922 symbolHandle method_name(THREAD, cp->name_ref_at(index));