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

Changeset 155399 in webkit


Ignore:
Timestamp:
Sep 9, 2013, 4:03:19 PM (13 years ago)
Author:
msaboff@apple.com
Message:

Wrong for SlowPathCall to load callFrame reg from vm.topCallFrame after call
https://bugs.webkit.org/show_bug.cgi?id=120537

Reviewed by Geoffrey Garen.

Changed JITSlowPathCall::call() to update vm.topCallFrame from the callFrameRegister instead of the
other way around.

  • jit/JIT.h:
  • jit/JITInlines.h:
  • jit/SlowPathCall.h:

(JSC::JITSlowPathCall::call):

Location:
trunk/Source/JavaScriptCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r155395 r155399  
     12013-09-09  Michael Saboff  <msaboff@apple.com>
     2
     3        Wrong for SlowPathCall to load callFrame reg from vm.topCallFrame after call
     4        https://bugs.webkit.org/show_bug.cgi?id=120537
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        Changed JITSlowPathCall::call() to update vm.topCallFrame from the callFrameRegister instead of the
     9        other way around.
     10
     11        * jit/JIT.h:
     12        * jit/JITInlines.h:
     13        * jit/SlowPathCall.h:
     14        (JSC::JITSlowPathCall::call):
     15
    1162013-08-29  Mark Hahnenberg  <mhahnenberg@apple.com>
    217
  • trunk/Source/JavaScriptCore/jit/JIT.h

    r154833 r155399  
    839839        void restoreArgumentReferenceForTrampoline();
    840840        void updateTopCallFrame();
    841         void reloadCallFrameFromTopCallFrame();
    842841
    843842        Call emitNakedCall(CodePtr function = CodePtr());
  • trunk/Source/JavaScriptCore/jit/JITInlines.h

    r154156 r155399  
    192192}
    193193
    194 ALWAYS_INLINE void JIT::reloadCallFrameFromTopCallFrame()
    195 {
    196     loadPtr(&m_vm->topCallFrame, callFrameRegister);
    197 }
    198 
    199194ALWAYS_INLINE void JIT::restoreArgumentReferenceForTrampoline()
    200195{
  • trunk/Source/JavaScriptCore/jit/SlowPathCall.h

    r154797 r155399  
    8989        JIT::Jump noException = m_jit->branchTest64(JIT::Zero, JIT::AbsoluteAddress(m_jit->m_codeBlock->vm()->addressOfException()));
    9090#endif
    91         m_jit->reloadCallFrameFromTopCallFrame();
     91        m_jit->updateTopCallFrame();
    9292        m_jit->move(JIT::TrustedImmPtr(FunctionPtr(ctiVMHandleException).value()), JIT::regT1);
    9393        m_jit->jump(JIT::regT1);
Note: See TracChangeset for help on using the changeset viewer.