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 1660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1671 } | 1671 } |
1672 | 1672 |
1673 | 1673 |
1674 Range* HChange::InferRange(Zone* zone) { | 1674 Range* HChange::InferRange(Zone* zone) { |
1675 Range* input_range = value()->range(); | 1675 Range* input_range = value()->range(); |
1676 if (from().IsInteger32() && | 1676 if (from().IsInteger32() && |
1677 to().IsTagged() && | 1677 to().IsTagged() && |
1678 !value()->CheckFlag(HInstruction::kUint32) && | 1678 !value()->CheckFlag(HInstruction::kUint32) && |
1679 input_range != NULL && input_range->IsInSmiRange()) { | 1679 input_range != NULL && input_range->IsInSmiRange()) { |
1680 set_type(HType::Smi()); | 1680 set_type(HType::Smi()); |
| 1681 ClearGVNFlag(kChangesNewSpacePromotion); |
1681 } | 1682 } |
1682 Range* result = (input_range != NULL) | 1683 Range* result = (input_range != NULL) |
1683 ? input_range->Copy(zone) | 1684 ? input_range->Copy(zone) |
1684 : HValue::InferRange(zone); | 1685 : HValue::InferRange(zone); |
1685 if (to().IsInteger32()) result->set_can_be_minus_zero(false); | 1686 if (to().IsInteger32()) result->set_can_be_minus_zero(false); |
1686 return result; | 1687 return result; |
1687 } | 1688 } |
1688 | 1689 |
1689 | 1690 |
1690 Range* HConstant::InferRange(Zone* zone) { | 1691 Range* HConstant::InferRange(Zone* zone) { |
(...skipping 1929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3620 | 3621 |
3621 | 3622 |
3622 void HCheckFunction::Verify() { | 3623 void HCheckFunction::Verify() { |
3623 HInstruction::Verify(); | 3624 HInstruction::Verify(); |
3624 ASSERT(HasNoUses()); | 3625 ASSERT(HasNoUses()); |
3625 } | 3626 } |
3626 | 3627 |
3627 #endif | 3628 #endif |
3628 | 3629 |
3629 } } // namespace v8::internal | 3630 } } // namespace v8::internal |
OLD | NEW |