Changeset 156016 in webkit for trunk/Source/JavaScriptCore/ftl/FTLLowerDFGToLLVM.cpp
- Timestamp:
- Sep 17, 2013, 6:04:31 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ftl/FTLLowerDFGToLLVM.cpp
r155793 r156016 1018 1018 if (bytecodeCanTruncateInteger(m_node->arithNodeFlags())) 1019 1019 result = m_out.neg(value); 1020 else {1020 else if (bytecodeCanIgnoreNegativeZero(m_node->arithNodeFlags())) { 1021 1021 // We don't have a negate-with-overflow intrinsic. Hopefully this 1022 1022 // does the trick, though. … … 1024 1024 speculate(Overflow, noValue(), 0, m_out.extractValue(overflowResult, 1)); 1025 1025 result = m_out.extractValue(overflowResult, 0); 1026 speculate(NegativeZero, noValue(), 0, m_out.isZero32(result)); 1026 } else { 1027 speculate(Overflow, noValue(), 0, m_out.testIsZero32(value, m_out.constInt32(0x7fffffff))); 1028 result = m_out.neg(value); 1027 1029 } 1028 1030
Note:
See TracChangeset
for help on using the changeset viewer.