Mercurial > hg > truffle
comparison src/share/vm/graal/graalCompiler.hpp @ 9092:4720f96a15b7
fixed minor regression
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 12 Apr 2013 20:32:14 +0200 |
parents | 23762f2438b6 |
children | 7cd21876c116 |
comparison
equal
deleted
inserted
replaced
9091:b28c80b6ee58 | 9092:4720f96a15b7 |
---|---|
100 | 100 |
101 static int to_cp_index(int raw_index, Bytecodes::Code bc) { | 101 static int to_cp_index(int raw_index, Bytecodes::Code bc) { |
102 int cp_index; | 102 int cp_index; |
103 if (bc == Bytecodes::_invokedynamic) { | 103 if (bc == Bytecodes::_invokedynamic) { |
104 cp_index = to_index_u4(raw_index); | 104 cp_index = to_index_u4(raw_index); |
105 assert(ConstantPool::is_invokedynamic_index(raw_index), "not an invokedynamic constant pool index"); | 105 assert(ConstantPool::is_invokedynamic_index(cp_index), "not an invokedynamic constant pool index"); |
106 } else { | 106 } else { |
107 assert(bc == Bytecodes::_getfield || bc == Bytecodes::_putfield || | 107 assert(bc == Bytecodes::_getfield || bc == Bytecodes::_putfield || |
108 bc == Bytecodes::_getstatic || bc == Bytecodes::_putstatic || | 108 bc == Bytecodes::_getstatic || bc == Bytecodes::_putstatic || |
109 bc == Bytecodes::_invokeinterface || bc == Bytecodes::_invokevirtual || | 109 bc == Bytecodes::_invokeinterface || bc == Bytecodes::_invokevirtual || |
110 bc == Bytecodes::_invokespecial || bc == Bytecodes::_invokestatic, err_msg("unexpected invoke opcode: %d %s", bc, Bytecodes::name(bc))); | 110 bc == Bytecodes::_invokespecial || bc == Bytecodes::_invokestatic, err_msg("unexpected invoke opcode: %d %s", bc, Bytecodes::name(bc))); |