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 } | |
1731 } else { | 1728 } else { |
1732 __ Move(result, left); | 1729 __ Move(result, left); |
1733 } | 1730 } |
1734 break; | 1731 break; |
1735 case Token::SHR: | 1732 case Token::SHR: |
1736 if (shift_count != 0) { | 1733 if (shift_count != 0) { |
1737 __ mov(result, Operand(left, LSR, shift_count)); | 1734 __ mov(result, Operand(left, LSR, shift_count)); |
1738 } else { | 1735 } else { |
1739 if (instr->can_deopt()) { | 1736 if (instr->can_deopt()) { |
1740 __ tst(left, Operand(0x80000000)); | 1737 __ tst(left, Operand(0x80000000)); |
(...skipping 4098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5839 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); | 5836 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); |
5840 __ ldr(result, FieldMemOperand(scratch, | 5837 __ ldr(result, FieldMemOperand(scratch, |
5841 FixedArray::kHeaderSize - kPointerSize)); | 5838 FixedArray::kHeaderSize - kPointerSize)); |
5842 __ bind(&done); | 5839 __ bind(&done); |
5843 } | 5840 } |
5844 | 5841 |
5845 | 5842 |
5846 #undef __ | 5843 #undef __ |
5847 | 5844 |
5848 } } // namespace v8::internal | 5845 } } // namespace v8::internal |
OLD | NEW |