Ignore:
Timestamp:
Jan 7, 2014, 11:14:59 AM (12 years ago)
Author:
[email protected]
Message:

ASSERT in compileArithNegate on pdfjs
https://bugs.webkit.org/show_bug.cgi?id=126584

Reviewed by Mark Hahnenberg.

Check negative zero when we should check it, not when we shouldn't check it. :-/

  • dfg/DFGSpeculativeJIT.cpp:

(JSC::DFG::SpeculativeJIT::compileArithNegate):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp

    r161399 r161438  
    29012901            m_jit.move(op1GPR, resultGPR);
    29022902            m_jit.neg64(resultGPR);
    2903             if (!shouldCheckNegativeZero(node->arithMode())) {
     2903            if (shouldCheckNegativeZero(node->arithMode())) {
    29042904                speculationCheck(
    29052905                    NegativeZero, JSValueRegs(), 0,
     
    29182918            Int52Overflow, JSValueRegs(), 0,
    29192919            m_jit.branchNeg64(MacroAssembler::Overflow, resultGPR));
    2920         if (!shouldCheckNegativeZero(node->arithMode())) {
     2920        if (shouldCheckNegativeZero(node->arithMode())) {
    29212921            speculationCheck(
    29222922                NegativeZero, JSValueRegs(), 0,
Note: See TracChangeset for help on using the changeset viewer.