Fix last-minute thinko that I snuck into the last change.

It busted crypto-decrypt.
Review URL: http://codereview.chromium.org/2434005

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4784 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
erik.corry@gmail.com 2010-06-02 10:47:50 +00:00
parent b600905133
commit 9fc31e1fed

View File

@ -869,10 +869,10 @@ void CodeGenerator::GenericBinaryOperation(Token::Value op,
Register smi_test_reg;
Condition cond;
if (!rhs_is_smi || !lhs_is_smi) {
if (!rhs_is_smi) {
smi_test_reg = rhs;
} else if (!lhs_is_smi) {
if (rhs_is_smi) {
smi_test_reg = lhs;
} else if (lhs_is_smi) {
smi_test_reg = rhs;
} else {
smi_test_reg = VirtualFrame::scratch0();
__ orr(smi_test_reg, rhs, Operand(lhs));