fix use of clobbered stack register in multianewarray

This commit is contained in:
Joel Dice 2008-01-03 14:28:29 -07:00
parent e81a534986
commit ce2f5dd375

View File

@ -2997,12 +2997,17 @@ compile(MyThread* t, Frame* initialFrame, unsigned ip)
if (UNLIKELY(t->exception)) return;
PROTECT(t, class_);
Operand* stack = c->temporary();
c->mov(c->stack(), stack);
c->indirectCall
(c->constant(reinterpret_cast<intptr_t>(makeMultidimensionalArray)),
frame->trace(0, false),
4, c->thread(), frame->append(class_), c->stack(),
4, c->thread(), frame->append(class_), stack,
c->constant(dimensions));
c->release(stack);
Operand* result = ::result(c);
frame->pop(dimensions);