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 1593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1604 visited->Add(id()); | 1604 visited->Add(id()); |
1605 // Propagate to the left argument. If the left argument cannot be -0, then | 1605 // Propagate to the left argument. If the left argument cannot be -0, then |
1606 // the result of the sub operation cannot be either. | 1606 // the result of the sub operation cannot be either. |
1607 if (range() == NULL || range()->CanBeMinusZero()) { | 1607 if (range() == NULL || range()->CanBeMinusZero()) { |
1608 return left(); | 1608 return left(); |
1609 } | 1609 } |
1610 return NULL; | 1610 return NULL; |
1611 } | 1611 } |
1612 | 1612 |
1613 | 1613 |
| 1614 void HIn::PrintDataTo(StringStream* stream) { |
| 1615 key()->PrintNameTo(stream); |
| 1616 stream->Add(" "); |
| 1617 object()->PrintNameTo(stream); |
| 1618 } |
| 1619 |
| 1620 |
1614 // Node-specific verification code is only included in debug mode. | 1621 // Node-specific verification code is only included in debug mode. |
1615 #ifdef DEBUG | 1622 #ifdef DEBUG |
1616 | 1623 |
1617 void HPhi::Verify() { | 1624 void HPhi::Verify() { |
1618 ASSERT(OperandCount() == block()->predecessors()->length()); | 1625 ASSERT(OperandCount() == block()->predecessors()->length()); |
1619 for (int i = 0; i < OperandCount(); ++i) { | 1626 for (int i = 0; i < OperandCount(); ++i) { |
1620 HValue* value = OperandAt(i); | 1627 HValue* value = OperandAt(i); |
1621 HBasicBlock* defining_block = value->block(); | 1628 HBasicBlock* defining_block = value->block(); |
1622 HBasicBlock* predecessor_block = block()->predecessors()->at(i); | 1629 HBasicBlock* predecessor_block = block()->predecessors()->at(i); |
1623 ASSERT(defining_block == predecessor_block || | 1630 ASSERT(defining_block == predecessor_block || |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1669 | 1676 |
1670 | 1677 |
1671 void HCheckPrototypeMaps::Verify() { | 1678 void HCheckPrototypeMaps::Verify() { |
1672 HInstruction::Verify(); | 1679 HInstruction::Verify(); |
1673 ASSERT(HasNoUses()); | 1680 ASSERT(HasNoUses()); |
1674 } | 1681 } |
1675 | 1682 |
1676 #endif | 1683 #endif |
1677 | 1684 |
1678 } } // namespace v8::internal | 1685 } } // namespace v8::internal |
OLD | NEW |