Thanks to Akos Palfi for finding the bug.
BUG=
R=ulan@chromium.org
Review URL: https://chromiumcodereview.appspot.com/
22388002
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16068
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters);
__ push(object);
CallRuntimeFromDeferred(Runtime::kMigrateInstance, 1, instr);
- __ StoreToSafepointRegisterSlot(scratch0(), r0);
+ __ StoreToSafepointRegisterSlot(r0, scratch0());
}
__ tst(scratch0(), Operand(kSmiTagMask));
DeoptimizeIf(eq, instr->environment());