| 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 1567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1578 } | 1578 } |
| 1579 __ Move(result, left); | 1579 __ Move(result, left); |
| 1580 } | 1580 } |
| 1581 break; | 1581 break; |
| 1582 case Token::SHL: | 1582 case Token::SHL: |
| 1583 if (shift_count != 0) { | 1583 if (shift_count != 0) { |
| 1584 if (instr->hydrogen_value()->representation().IsSmi() && | 1584 if (instr->hydrogen_value()->representation().IsSmi() && |
| 1585 instr->can_deopt()) { | 1585 instr->can_deopt()) { |
| 1586 if (shift_count != 1) { | 1586 if (shift_count != 1) { |
| 1587 __ sll(result, left, shift_count - 1); | 1587 __ sll(result, left, shift_count - 1); |
| 1588 __ SmiTagCheckOverflow(result, result, scratch); |
| 1589 } else { |
| 1590 __ SmiTagCheckOverflow(result, left, scratch); |
| 1588 } | 1591 } |
| 1589 __ SmiTagCheckOverflow(result, result, scratch); | |
| 1590 DeoptimizeIf(lt, instr->environment(), scratch, Operand(zero_reg)); | 1592 DeoptimizeIf(lt, instr->environment(), scratch, Operand(zero_reg)); |
| 1591 } else { | 1593 } else { |
| 1592 __ sll(result, left, shift_count); | 1594 __ sll(result, left, shift_count); |
| 1593 } | 1595 } |
| 1594 } else { | 1596 } else { |
| 1595 __ Move(result, left); | 1597 __ Move(result, left); |
| 1596 } | 1598 } |
| 1597 break; | 1599 break; |
| 1598 default: | 1600 default: |
| 1599 UNREACHABLE(); | 1601 UNREACHABLE(); |
| (...skipping 4247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5847 __ Subu(scratch, result, scratch); | 5849 __ Subu(scratch, result, scratch); |
| 5848 __ lw(result, FieldMemOperand(scratch, | 5850 __ lw(result, FieldMemOperand(scratch, |
| 5849 FixedArray::kHeaderSize - kPointerSize)); | 5851 FixedArray::kHeaderSize - kPointerSize)); |
| 5850 __ bind(&done); | 5852 __ bind(&done); |
| 5851 } | 5853 } |
| 5852 | 5854 |
| 5853 | 5855 |
| 5854 #undef __ | 5856 #undef __ |
| 5855 | 5857 |
| 5856 } } // namespace v8::internal | 5858 } } // namespace v8::internal |
| OLD | NEW |