⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 179875 in webkit


Ignore:
Timestamp:
Feb 10, 2015, 11:48:56 AM (12 years ago)
Author:
fpizlo@apple.com
Message:

Remove unused DFG::SpeculativeJIT::calleeFrameOffset().

Rubber stamped by Michael Saboff.

Not only was this not used, I believe that the math was wrong. The callee frame doesn't
actually land past m_nextMachineLocal; instead it lands just below wherever we put SP and
that decision is made elsewhere. Also, it makes no sense to subtract 1 from
m_nextMachineLocal when trying to deduce the number of in-use stack slots.

  • dfg/DFGSpeculativeJIT.h:

(JSC::DFG::SpeculativeJIT::calleeFrameOffset): Deleted.

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r179873 r179875  
     12015-02-10  Filip Pizlo  <fpizlo@apple.com>
     2
     3        Remove unused DFG::SpeculativeJIT::calleeFrameOffset().
     4
     5        Rubber stamped by Michael Saboff.
     6       
     7        Not only was this not used, I believe that the math was wrong. The callee frame doesn't
     8        actually land past m_nextMachineLocal; instead it lands just below wherever we put SP and
     9        that decision is made elsewhere. Also, it makes no sense to subtract 1 from
     10        m_nextMachineLocal when trying to deduce the number of in-use stack slots.
     11
     12        * dfg/DFGSpeculativeJIT.h:
     13        (JSC::DFG::SpeculativeJIT::calleeFrameOffset): Deleted.
     14
    1152015-02-10  Saam Barati  <saambarati1@gmail.com>
    216
  • trunk/Source/JavaScriptCore/dfg/DFGSpeculativeJIT.h

    r177146 r179875  
    717717    void compileInstanceOfForObject(Node*, GPRReg valueReg, GPRReg prototypeReg, GPRReg scratchAndResultReg, GPRReg scratch2Reg);
    718718    void compileInstanceOf(Node*);
    719    
    720     ptrdiff_t calleeFrameOffset(int numArgs)
    721     {
    722         return virtualRegisterForLocal(m_jit.graph().m_nextMachineLocal - 1 + JSStack::CallFrameHeaderSize + numArgs).offset() * sizeof(Register);
    723     }
    724719   
    725720    // Access to our fixed callee CallFrame.
Note: See TracChangeset for help on using the changeset viewer.