Commit e5e01005 authored by danno@chromium.org's avatar danno@chromium.org

Fix overzealous casting that erroneously lead to ASSERTs

R=verwaest@chromium.org

Review URL: https://chromiumcodereview.appspot.com/21372002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15991 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 4cdffbf4
...@@ -7729,7 +7729,7 @@ HInstruction* HOptimizedGraphBuilder::BuildBinaryOperation( ...@@ -7729,7 +7729,7 @@ HInstruction* HOptimizedGraphBuilder::BuildBinaryOperation(
break; break;
case Token::BIT_XOR: case Token::BIT_XOR:
case Token::BIT_AND: case Token::BIT_AND:
instr = New<HBitwise>(expr->op(), left, right); instr = NewUncasted<HBitwise>(expr->op(), left, right);
break; break;
case Token::BIT_OR: { case Token::BIT_OR: {
HValue* operand, *shift_amount; HValue* operand, *shift_amount;
...@@ -7738,7 +7738,7 @@ HInstruction* HOptimizedGraphBuilder::BuildBinaryOperation( ...@@ -7738,7 +7738,7 @@ HInstruction* HOptimizedGraphBuilder::BuildBinaryOperation(
MatchRotateRight(left, right, &operand, &shift_amount)) { MatchRotateRight(left, right, &operand, &shift_amount)) {
instr = new(zone()) HRor(context, operand, shift_amount); instr = new(zone()) HRor(context, operand, shift_amount);
} else { } else {
instr = New<HBitwise>(expr->op(), left, right); instr = NewUncasted<HBitwise>(expr->op(), left, right);
} }
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment