| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1718 case Token::ROR: | 1718 case Token::ROR: |
| 1719 if (shift_count != 0) { | 1719 if (shift_count != 0) { |
| 1720 __ mov(result, Operand(left, ROR, shift_count)); | 1720 __ mov(result, Operand(left, ROR, shift_count)); |
| 1721 } else { | 1721 } else { |
| 1722 __ Move(result, left); | 1722 __ Move(result, left); |
| 1723 } | 1723 } |
| 1724 break; | 1724 break; |
| 1725 case Token::SAR: | 1725 case Token::SAR: |
| 1726 if (shift_count != 0) { | 1726 if (shift_count != 0) { |
| 1727 __ mov(result, Operand(left, ASR, shift_count)); | 1727 __ mov(result, Operand(left, ASR, shift_count)); |
| 1728 if (instr->hydrogen_value()->representation().IsSmi()) { |
| 1729 __ and_(result, result, Operand(~kSmiTagMask)); |
| 1730 } |
| 1728 } else { | 1731 } else { |
| 1729 __ Move(result, left); | 1732 __ Move(result, left); |
| 1730 } | 1733 } |
| 1731 break; | 1734 break; |
| 1732 case Token::SHR: | 1735 case Token::SHR: |
| 1733 if (shift_count != 0) { | 1736 if (shift_count != 0) { |
| 1734 __ mov(result, Operand(left, LSR, shift_count)); | 1737 __ mov(result, Operand(left, LSR, shift_count)); |
| 1735 } else { | 1738 } else { |
| 1736 if (instr->can_deopt()) { | 1739 if (instr->can_deopt()) { |
| 1737 __ tst(left, Operand(0x80000000)); | 1740 __ tst(left, Operand(0x80000000)); |
| (...skipping 4081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5819 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); | 5822 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); |
| 5820 __ ldr(result, FieldMemOperand(scratch, | 5823 __ ldr(result, FieldMemOperand(scratch, |
| 5821 FixedArray::kHeaderSize - kPointerSize)); | 5824 FixedArray::kHeaderSize - kPointerSize)); |
| 5822 __ bind(&done); | 5825 __ bind(&done); |
| 5823 } | 5826 } |
| 5824 | 5827 |
| 5825 | 5828 |
| 5826 #undef __ | 5829 #undef __ |
| 5827 | 5830 |
| 5828 } } // namespace v8::internal | 5831 } } // namespace v8::internal |
| OLD | NEW |