Changeset 204840 in webkit


Ignore:
Timestamp:
Aug 23, 2016 10:32:52 AM (8 years ago)
Author:
sbarati@apple.com
Message:

JIT::updateTopCallframe() in the baseline JIT should use PC instead of PC+1
https://bugs.webkit.org/show_bug.cgi?id=158955

Reviewed by Mark Lam.

This will make the baseline JIT consistent with the rest of the tiers.

  • jit/JITInlines.h:

(JSC::JIT::updateTopCallFrame):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r204769 r204840  
     12016-08-23  Saam Barati  <sbarati@apple.com>
     2
     3        JIT::updateTopCallframe() in the baseline JIT should use PC instead of PC+1
     4        https://bugs.webkit.org/show_bug.cgi?id=158955
     5
     6        Reviewed by Mark Lam.
     7
     8        This will make the baseline JIT consistent with the rest of the tiers.
     9
     10        * jit/JITInlines.h:
     11        (JSC::JIT::updateTopCallFrame):
     12
    1132016-08-22  Per Arne Vollan  <pvollan@apple.com>
    214
  • trunk/Source/JavaScriptCore/jit/JITInlines.h

    r203699 r204840  
    138138    ASSERT(static_cast<int>(m_bytecodeOffset) >= 0);
    139139#if USE(JSVALUE32_64)
    140     Instruction* instruction = m_codeBlock->instructions().begin() + m_bytecodeOffset + 1;
     140    Instruction* instruction = m_codeBlock->instructions().begin() + m_bytecodeOffset;
    141141    uint32_t locationBits = CallSiteIndex(instruction).bits();
    142142#else
    143     uint32_t locationBits = CallSiteIndex(m_bytecodeOffset + 1).bits();
     143    uint32_t locationBits = CallSiteIndex(m_bytecodeOffset).bits();
    144144#endif
    145145    store32(TrustedImm32(locationBits), intTagFor(CallFrameSlot::argumentCount));
Note: See TracChangeset for help on using the changeset viewer.