src/share/vm/prims/methodComparator.cpp

changeset 1928
beb77f0d41b3
parent 1920
ab102d5d923e
child 1929
1eb493f33423
equal deleted inserted replaced
1927:87fc6aca31ab 1928:beb77f0d41b3
147 case Bytecodes::_invokevirtual : // fall through 147 case Bytecodes::_invokevirtual : // fall through
148 case Bytecodes::_invokespecial : // fall through 148 case Bytecodes::_invokespecial : // fall through
149 case Bytecodes::_invokestatic : // fall through 149 case Bytecodes::_invokestatic : // fall through
150 case Bytecodes::_invokedynamic : // fall through 150 case Bytecodes::_invokedynamic : // fall through
151 case Bytecodes::_invokeinterface : { 151 case Bytecodes::_invokeinterface : {
152 u2 cpci_old = _s_old->has_index_u4() ? _s_old->get_index_u4() : _s_old->get_index_u2(); 152 int cpci_old = _s_old->has_index_u4() ? _s_old->get_index_u4() : _s_old->get_index_u2_cpcache();
153 u2 cpci_new = _s_new->has_index_u4() ? _s_new->get_index_u4() : _s_new->get_index_u2(); 153 int cpci_new = _s_new->has_index_u4() ? _s_new->get_index_u4() : _s_new->get_index_u2_cpcache();
154 // Check if the names of classes, field/method names and signatures at these indexes 154 // Check if the names of classes, field/method names and signatures at these indexes
155 // are the same. Indices which are really into constantpool cache (rather than constant 155 // are the same. Indices which are really into constantpool cache (rather than constant
156 // pool itself) are accepted by the constantpool query routines below. 156 // pool itself) are accepted by the constantpool query routines below.
157 if ((_old_cp->klass_ref_at_noresolve(cpci_old) != _new_cp->klass_ref_at_noresolve(cpci_new)) || 157 if ((_old_cp->klass_ref_at_noresolve(cpci_old) != _new_cp->klass_ref_at_noresolve(cpci_new)) ||
158 (_old_cp->name_ref_at(cpci_old) != _new_cp->name_ref_at(cpci_new)) || 158 (_old_cp->name_ref_at(cpci_old) != _new_cp->name_ref_at(cpci_new)) ||

mercurial