Changeset 192795 in webkit


Ignore:
Timestamp:
Nov 30, 2015 8:56:27 AM (8 years ago)
Author:
mark.lam@apple.com
Message:

[ARM64] stress/op_div.js is failing on some divide by 0 cases.
https://bugs.webkit.org/show_bug.cgi?id=151515

Reviewed by Saam Barati.

  • dfg/DFGSpeculativeJIT.cpp:

(JSC::DFG::SpeculativeJIT::compileArithDiv):

  • Added a check for the divide by zero case.
  • tests/stress/op_div.js:
  • Un-skipped the test.
Location:
trunk/Source/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r192781 r192795  
     12015-11-26  Mark Lam  <mark.lam@apple.com>
     2
     3        [ARM64] stress/op_div.js is failing on some divide by 0 cases.
     4        https://bugs.webkit.org/show_bug.cgi?id=151515
     5
     6        Reviewed by Saam Barati.
     7
     8        * dfg/DFGSpeculativeJIT.cpp:
     9        (JSC::DFG::SpeculativeJIT::compileArithDiv):
     10        - Added a check for the divide by zero case.
     11        * tests/stress/op_div.js:
     12        - Un-skipped the test.
     13
    1142015-11-27  Csaba Osztrogonác  <ossy@webkit.org>
    215
  • trunk/Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp

    r192671 r192795  
    35563556            numeratorNonZero.link(&m_jit);
    35573557        }
     3558
     3559        if (shouldCheckOverflow(node->arithMode()))
     3560            speculationCheck(Overflow, JSValueRegs(), nullptr, m_jit.branchTest32(MacroAssembler::Zero, op2GPR));
    35583561
    35593562        m_jit.assembler().sdiv<32>(quotient.gpr(), op1GPR, op2GPR);
  • trunk/Source/JavaScriptCore/tests/stress/op_div.js

    r192708 r192795  
    1 //@ skip
    2 // FIXME: https://bugs.webkit.org/show_bug.cgi?id=151515
     1//@ runFTLNoCJIT
    32
    43// If all goes well, this test module will terminate silently. If not, it will print
Note: See TracChangeset for help on using the changeset viewer.