Mercurial > hg > graal-compiler
comparison src/share/vm/classfile/verifier.cpp @ 1913:3b2dea75431e
6984311: JSR 292 needs optional bootstrap method parameters
Summary: Allow CONSTANT_InvokeDynamic nodes to have any number of extra operands.
Reviewed-by: twisti
author | jrose |
---|---|
date | Sat, 30 Oct 2010 13:08:23 -0700 |
parents | 7f0fdccac34f |
children | 9752a6549f2e |
comparison
equal
deleted
inserted
replaced
1912:8213b0f5c92d | 1913:3b2dea75431e |
---|---|
1907 u2 index = bcs->get_index_u2(); | 1907 u2 index = bcs->get_index_u2(); |
1908 Bytecodes::Code opcode = bcs->raw_code(); | 1908 Bytecodes::Code opcode = bcs->raw_code(); |
1909 unsigned int types = (opcode == Bytecodes::_invokeinterface | 1909 unsigned int types = (opcode == Bytecodes::_invokeinterface |
1910 ? 1 << JVM_CONSTANT_InterfaceMethodref | 1910 ? 1 << JVM_CONSTANT_InterfaceMethodref |
1911 : opcode == Bytecodes::_invokedynamic | 1911 : opcode == Bytecodes::_invokedynamic |
1912 ? (1 << JVM_CONSTANT_NameAndType | 1912 ? ((AllowTransitionalJSR292 ? 1 << JVM_CONSTANT_NameAndType : 0) |
1913 |1 << JVM_CONSTANT_InvokeDynamic) | 1913 |1 << JVM_CONSTANT_InvokeDynamic) |
1914 : 1 << JVM_CONSTANT_Methodref); | 1914 : 1 << JVM_CONSTANT_Methodref); |
1915 verify_cp_type(index, cp, types, CHECK_VERIFY(this)); | 1915 verify_cp_type(index, cp, types, CHECK_VERIFY(this)); |
1916 | 1916 |
1917 // Get method name and signature | 1917 // Get method name and signature |