Chromium Code Reviews| Index: src/arm/lithium-arm.cc |
| =================================================================== |
| --- src/arm/lithium-arm.cc (revision 6704) |
| +++ src/arm/lithium-arm.cc (working copy) |
| @@ -186,6 +186,9 @@ |
| case Token::BIT_AND: return "bit-and-t"; |
| case Token::BIT_OR: return "bit-or-t"; |
| case Token::BIT_XOR: return "bit-xor-t"; |
| + case Token::SHL: return "sal-t"; |
|
Mads Ager (chromium)
2011/02/10 16:27:45
sal -> shl
Søren Thygesen Gjesse
2011/02/10 20:22:17
Done.
|
| + case Token::SAR: return "sar-t"; |
| + case Token::SHR: return "shr-t"; |
| default: |
| UNREACHABLE(); |
| return NULL; |
| @@ -802,6 +805,16 @@ |
| LInstruction* LChunkBuilder::DoShift(Token::Value op, |
| HBitwiseBinaryOperation* instr) { |
| + if (instr->representation().IsTagged()) { |
| + ASSERT(instr->left()->representation().IsTagged()); |
| + ASSERT(instr->right()->representation().IsTagged()); |
| + |
| + LOperand* left = UseFixed(instr->left(), r1); |
| + LOperand* right = UseFixed(instr->right(), r0); |
| + LArithmeticT* result = new LArithmeticT(op, left, right); |
| + return MarkAsCall(DefineFixed(result, r0), instr); |
| + } |
| + |
| ASSERT(instr->representation().IsInteger32()); |
| ASSERT(instr->OperandAt(0)->representation().IsInteger32()); |
| ASSERT(instr->OperandAt(1)->representation().IsInteger32()); |