Changeset 278476 in webkit


Ignore:
Timestamp:
Jun 4, 2021 11:14:46 AM (3 years ago)
Author:
fpizlo@apple.com
Message:

Don't emit the NotDouble checks if we're already NotDouble.

Rubber stamped by Saam Barati.

  • dfg/DFGSpeculativeJIT.cpp:

(JSC::DFG::SpeculativeJIT::speculateNotDouble):

  • ftl/FTLLowerDFGToB3.cpp:

(JSC::FTL::DFG::LowerDFGToB3::speculateNotDouble):

Location:
trunk/Source/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r278473 r278476  
     12021-06-04  Filip Pizlo  <fpizlo@apple.com>
     2
     3        Don't emit the NotDouble checks if we're already NotDouble.
     4
     5        Rubber stamped by Saam Barati.
     6
     7        * dfg/DFGSpeculativeJIT.cpp:
     8        (JSC::DFG::SpeculativeJIT::speculateNotDouble):
     9        * ftl/FTLLowerDFGToB3.cpp:
     10        (JSC::FTL::DFG::LowerDFGToB3::speculateNotDouble):
     11
    1122021-06-04  Mark Lam  <mark.lam@apple.com>
    213
  • trunk/Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp

    r278465 r278476  
    1143511435void SpeculativeJIT::speculateNotDouble(Edge edge)
    1143611436{
     11437    if (!needsTypeCheck(edge, ~SpecFullDouble))
     11438        return;
     11439   
    1143711440    JSValueOperand operand(this, edge, ManualOperandSpeculation);
    1143811441    GPRTemporary temp(this);
  • trunk/Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp

    r278465 r278476  
    1845418454    void speculateNotDouble(Edge edge)
    1845518455    {
     18456        if (!m_interpreter.needsTypeCheck(edge))
     18457            return;
     18458   
    1845618459        LValue value = lowJSValue(edge, ManualOperandSpeculation);
    1845718460       
Note: See TracChangeset for help on using the changeset viewer.