8005722: Assert in c1_LIR.hpp incorrect wrt to number of register operands

In LIR_OpVisitState::visit() the receiver operand is processed twice

Reviewed-by: roland, vladidan
This commit is contained in:
Bill Pittore 2013-01-24 13:27:54 -05:00
parent 4de970006b
commit deceb833bf

View File

@ -814,7 +814,7 @@ void LIR_OpVisitState::visit(LIR_Op* op) {
// only visit register parameters
int n = opJavaCall->_arguments->length();
for (int i = 0; i < n; i++) {
for (int i = opJavaCall->_receiver->is_valid() ? 1 : 0; i < n; i++) {
if (!opJavaCall->_arguments->at(i)->is_pointer()) {
do_input(*opJavaCall->_arguments->adr_at(i));
}