Mercurial > hg > truffle
comparison src/share/vm/prims/methodComparator.cpp @ 726:be93aad57795
6655646: dynamic languages need dynamically linked call sites
Summary: invokedynamic instruction (JSR 292 RI)
Reviewed-by: twisti, never
author | jrose |
---|---|
date | Tue, 21 Apr 2009 23:21:04 -0700 |
parents | a61af66fc99e |
children | bd02caa94611 |
comparison
equal
deleted
inserted
replaced
725:928912ce8438 | 726:be93aad57795 |
---|---|
146 case Bytecodes::_putfield : // fall through | 146 case Bytecodes::_putfield : // fall through |
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::_invokeinterface : { | 150 case Bytecodes::_invokeinterface : { |
151 u2 cpci_old = _s_old->get_index_big(); | 151 u2 cpci_old = _s_old->get_index_int(); |
152 u2 cpci_new = _s_new->get_index_big(); | 152 u2 cpci_new = _s_new->get_index_int(); |
153 // Check if the names of classes, field/method names and signatures at these indexes | 153 // Check if the names of classes, field/method names and signatures at these indexes |
154 // are the same. Indices which are really into constantpool cache (rather than constant | 154 // are the same. Indices which are really into constantpool cache (rather than constant |
155 // pool itself) are accepted by the constantpool query routines below. | 155 // pool itself) are accepted by the constantpool query routines below. |
156 if ((_old_cp->klass_ref_at_noresolve(cpci_old) != _new_cp->klass_ref_at_noresolve(cpci_new)) || | 156 if ((_old_cp->klass_ref_at_noresolve(cpci_old) != _new_cp->klass_ref_at_noresolve(cpci_new)) || |
157 (_old_cp->name_ref_at(cpci_old) != _new_cp->name_ref_at(cpci_new)) || | 157 (_old_cp->name_ref_at(cpci_old) != _new_cp->name_ref_at(cpci_new)) || |