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

Changeset 194072 in webkit


Ignore:
Timestamp:
Dec 14, 2015, 4:30:53 PM (11 years ago)
Author:
fpizlo@apple.com
Message:

FTL B3 should be able to run n-body.js
https://bugs.webkit.org/show_bug.cgi?id=152281

Reviewed by Benjamin Poulain.

Fix a bug where m_captured was pointing to the start of the captured vars slot rather than the
end, like the rest of the FTL expected.

  • ftl/FTLLowerDFGToLLVM.cpp:

(JSC::FTL::DFG::LowerDFGToLLVM::lower):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r194071 r194072  
     12015-12-14  Filip Pizlo  <fpizlo@apple.com>
     2
     3        FTL B3 should be able to run n-body.js
     4        https://bugs.webkit.org/show_bug.cgi?id=152281
     5
     6        Reviewed by Benjamin Poulain.
     7
     8        Fix a bug where m_captured was pointing to the start of the captured vars slot rather than the
     9        end, like the rest of the FTL expected.
     10
     11        * ftl/FTLLowerDFGToLLVM.cpp:
     12        (JSC::FTL::DFG::LowerDFGToLLVM::lower):
     13
    1142015-12-14  Benjamin Poulain  <bpoulain@apple.com>
    215
  • trunk/Source/JavaScriptCore/ftl/FTLLowerDFGToLLVM.cpp

    r194067 r194072  
    187187
    188188#if FTL_USES_B3
    189         m_captured = m_out.lockedStackSlot(sizeof(JSValue) * m_graph.m_nextMachineLocal);
     189        size_t sizeOfCaptured = sizeof(JSValue) * m_graph.m_nextMachineLocal;
     190        LValue capturedBase = m_out.lockedStackSlot(sizeOfCaptured);
     191        m_captured = m_out.add(capturedBase, m_out.constIntPtr(sizeOfCaptured));
    190192        m_ftlState.capturedValue = m_captured;
    191193#else // FTL_USES_B3
Note: See TracChangeset for help on using the changeset viewer.