| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1631 if (from().IsInteger32()) return NULL; | 1631 if (from().IsInteger32()) return NULL; |
| 1632 if (CanTruncateToInt32()) return NULL; | 1632 if (CanTruncateToInt32()) return NULL; |
| 1633 if (value()->range() == NULL || value()->range()->CanBeMinusZero()) { | 1633 if (value()->range() == NULL || value()->range()->CanBeMinusZero()) { |
| 1634 SetFlag(kBailoutOnMinusZero); | 1634 SetFlag(kBailoutOnMinusZero); |
| 1635 } | 1635 } |
| 1636 ASSERT(!from().IsInteger32() || !to().IsInteger32()); | 1636 ASSERT(!from().IsInteger32() || !to().IsInteger32()); |
| 1637 return NULL; | 1637 return NULL; |
| 1638 } | 1638 } |
| 1639 | 1639 |
| 1640 | 1640 |
| 1641 HValue* HForceRepresentation::EnsureAndPropagateNotMinusZero( |
| 1642 BitVector* visited) { |
| 1643 visited->Add(id()); |
| 1644 return value(); |
| 1645 } |
| 1646 |
| 1647 |
| 1641 HValue* HMod::EnsureAndPropagateNotMinusZero(BitVector* visited) { | 1648 HValue* HMod::EnsureAndPropagateNotMinusZero(BitVector* visited) { |
| 1642 visited->Add(id()); | 1649 visited->Add(id()); |
| 1643 if (range() == NULL || range()->CanBeMinusZero()) { | 1650 if (range() == NULL || range()->CanBeMinusZero()) { |
| 1644 SetFlag(kBailoutOnMinusZero); | 1651 SetFlag(kBailoutOnMinusZero); |
| 1645 return left(); | 1652 return left(); |
| 1646 } | 1653 } |
| 1647 return NULL; | 1654 return NULL; |
| 1648 } | 1655 } |
| 1649 | 1656 |
| 1650 | 1657 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1753 | 1760 |
| 1754 | 1761 |
| 1755 void HCheckPrototypeMaps::Verify() { | 1762 void HCheckPrototypeMaps::Verify() { |
| 1756 HInstruction::Verify(); | 1763 HInstruction::Verify(); |
| 1757 ASSERT(HasNoUses()); | 1764 ASSERT(HasNoUses()); |
| 1758 } | 1765 } |
| 1759 | 1766 |
| 1760 #endif | 1767 #endif |
| 1761 | 1768 |
| 1762 } } // namespace v8::internal | 1769 } } // namespace v8::internal |
| OLD | NEW |