| 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 2171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2182 return left(); | 2182 return left(); |
| 2183 } | 2183 } |
| 2184 return NULL; | 2184 return NULL; |
| 2185 } | 2185 } |
| 2186 | 2186 |
| 2187 | 2187 |
| 2188 bool HStoreKeyedFastDoubleElement::NeedsCanonicalization() { | 2188 bool HStoreKeyedFastDoubleElement::NeedsCanonicalization() { |
| 2189 // If value was loaded from unboxed double backing store or | 2189 // If value was loaded from unboxed double backing store or |
| 2190 // converted from an integer then we don't have to canonicalize it. | 2190 // converted from an integer then we don't have to canonicalize it. |
| 2191 if (value()->IsLoadKeyedFastDoubleElement() || | 2191 if (value()->IsLoadKeyedFastDoubleElement() || |
| 2192 SkipCanonicalization::decode(bit_field_) || |
| 2192 (value()->IsChange() && HChange::cast(value())->from().IsInteger32())) { | 2193 (value()->IsChange() && HChange::cast(value())->from().IsInteger32())) { |
| 2193 return false; | 2194 return false; |
| 2194 } | 2195 } |
| 2195 return true; | 2196 return true; |
| 2196 } | 2197 } |
| 2197 | 2198 |
| 2198 | 2199 |
| 2199 #define H_CONSTANT_INT32(val) \ | 2200 #define H_CONSTANT_INT32(val) \ |
| 2200 new(zone) HConstant(FACTORY->NewNumberFromInt(val, TENURED), \ | 2201 new(zone) HConstant(FACTORY->NewNumberFromInt(val, TENURED), \ |
| 2201 Representation::Integer32()) | 2202 Representation::Integer32()) |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2451 | 2452 |
| 2452 | 2453 |
| 2453 void HCheckPrototypeMaps::Verify() { | 2454 void HCheckPrototypeMaps::Verify() { |
| 2454 HInstruction::Verify(); | 2455 HInstruction::Verify(); |
| 2455 ASSERT(HasNoUses()); | 2456 ASSERT(HasNoUses()); |
| 2456 } | 2457 } |
| 2457 | 2458 |
| 2458 #endif | 2459 #endif |
| 2459 | 2460 |
| 2460 } } // namespace v8::internal | 2461 } } // namespace v8::internal |
| OLD | NEW |