Chromium Code Reviews| Index: src/arm/lithium-codegen-arm.cc |
| diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
| index 057ca1ef2bae528deba94161f7478d26203a4d8c..376d4b3fff90fd38eab111c9143cba374bd6f885 100644 |
| --- a/src/arm/lithium-codegen-arm.cc |
| +++ b/src/arm/lithium-codegen-arm.cc |
| @@ -1725,6 +1725,9 @@ void LCodeGen::DoShiftI(LShiftI* instr) { |
| case Token::SAR: |
| if (shift_count != 0) { |
| __ mov(result, Operand(left, ASR, shift_count)); |
| + if (instr->hydrogen_value()->representation().IsSmi()) { |
| + __ and_(result, result, Operand(-2)); |
|
mvstanton
2013/07/29 11:30:34
Same comment here as in ia32, use ~kSmiTagMask.
|
| + } |
| } else { |
| __ Move(result, left); |
| } |