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 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1117 Range* result = new(zone) Range(); | 1117 Range* result = new(zone) Range(); |
1118 result->set_can_be_minus_zero(!representation().IsInteger32()); | 1118 result->set_can_be_minus_zero(!representation().IsInteger32()); |
1119 return result; | 1119 return result; |
1120 } | 1120 } |
1121 | 1121 |
1122 | 1122 |
1123 Range* HChange::InferRange(Zone* zone) { | 1123 Range* HChange::InferRange(Zone* zone) { |
1124 Range* input_range = value()->range(); | 1124 Range* input_range = value()->range(); |
1125 if (from().IsInteger32() && | 1125 if (from().IsInteger32() && |
1126 to().IsTagged() && | 1126 to().IsTagged() && |
| 1127 !value()->CheckFlag(HInstruction::kUint32) && |
1127 input_range != NULL && input_range->IsInSmiRange()) { | 1128 input_range != NULL && input_range->IsInSmiRange()) { |
1128 set_type(HType::Smi()); | 1129 set_type(HType::Smi()); |
1129 } | 1130 } |
1130 Range* result = (input_range != NULL) | 1131 Range* result = (input_range != NULL) |
1131 ? input_range->Copy(zone) | 1132 ? input_range->Copy(zone) |
1132 : HValue::InferRange(zone); | 1133 : HValue::InferRange(zone); |
1133 if (to().IsInteger32()) result->set_can_be_minus_zero(false); | 1134 if (to().IsInteger32()) result->set_can_be_minus_zero(false); |
1134 return result; | 1135 return result; |
1135 } | 1136 } |
1136 | 1137 |
(...skipping 1489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2626 | 2627 |
2627 | 2628 |
2628 void HCheckPrototypeMaps::Verify() { | 2629 void HCheckPrototypeMaps::Verify() { |
2629 HInstruction::Verify(); | 2630 HInstruction::Verify(); |
2630 ASSERT(HasNoUses()); | 2631 ASSERT(HasNoUses()); |
2631 } | 2632 } |
2632 | 2633 |
2633 #endif | 2634 #endif |
2634 | 2635 |
2635 } } // namespace v8::internal | 2636 } } // namespace v8::internal |
OLD | NEW |