Ignore:
Timestamp:
Oct 6, 2017, 3:12:41 PM (8 years ago)
Author:
Ryan Haddad
Message:

Unreviewed, rolling out r222791 and r222873.
https://bugs.webkit.org/show_bug.cgi?id=178031

Caused crashes with workers/wasm LayoutTests (Requested by
ryanhaddad on #webkit).

Reverted changesets:

"WebAssembly: no VM / JS version of everything but Instance"
https://bugs.webkit.org/show_bug.cgi?id=177473
http://trac.webkit.org/changeset/222791

"WebAssembly: address no VM / JS follow-ups"
https://bugs.webkit.org/show_bug.cgi?id=177887
http://trac.webkit.org/changeset/222873

Patch by Commit Queue <[email protected]> on 2017-10-06

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/jit/AssemblyHelpers.cpp

    r222791 r223002  
    583583#endif
    584584
    585 void AssemblyHelpers::restoreCalleeSavesFromEntryFrameCalleeSavesBuffer(EntryFrame*& topEntryFrame)
     585void AssemblyHelpers::restoreCalleeSavesFromVMEntryFrameCalleeSavesBuffer(VM& vm)
    586586{
    587587#if NUMBER_OF_CALLEE_SAVES_REGISTERS > 0
     
    606606    ASSERT(scratch != InvalidGPRReg);
    607607
    608     loadPtr(&topEntryFrame, scratch);
    609     addPtr(TrustedImm32(EntryFrame::calleeSaveRegistersBufferOffset()), scratch);
     608    loadPtr(&vm.topVMEntryFrame, scratch);
     609    addPtr(TrustedImm32(VMEntryFrame::calleeSaveRegistersBufferOffset()), scratch);
    610610
    611611    // Restore all callee saves except for the scratch.
     
    628628    loadPtr(Address(scratch, entry.offset()), scratch);
    629629#else
    630     UNUSED_PARAM(topEntryFrame);
     630    UNUSED_PARAM(vm);
    631631#endif
    632632}
     
    779779
    780780#if ENABLE(WEBASSEMBLY)
    781 void AssemblyHelpers::loadWasmContextInstance(GPRReg dst)
     781void AssemblyHelpers::loadWasmContext(GPRReg dst)
    782782{
    783783#if ENABLE(FAST_TLS_JIT)
    784     if (Wasm::Context::useFastTLS()) {
     784    if (Wasm::useFastTLSForContext()) {
    785785        loadFromTLSPtr(fastTLSOffsetForKey(WTF_WASM_CONTEXT_KEY), dst);
    786786        return;
    787787    }
    788788#endif
    789     move(Wasm::PinnedRegisterInfo::get().wasmContextInstancePointer, dst);
    790 }
    791 
    792 void AssemblyHelpers::storeWasmContextInstance(GPRReg src)
     789    move(Wasm::PinnedRegisterInfo::get().wasmContextPointer, dst);
     790}
     791
     792void AssemblyHelpers::storeWasmContext(GPRReg src)
    793793{
    794794#if ENABLE(FAST_TLS_JIT)
    795     if (Wasm::Context::useFastTLS()) {
     795    if (Wasm::useFastTLSForContext()) {
    796796        storeToTLSPtr(src, fastTLSOffsetForKey(WTF_WASM_CONTEXT_KEY));
    797797        return;
    798798    }
    799799#endif
    800     move(src, Wasm::PinnedRegisterInfo::get().wasmContextInstancePointer);
    801 }
    802 
    803 bool AssemblyHelpers::loadWasmContextInstanceNeedsMacroScratchRegister()
     800    move(src, Wasm::PinnedRegisterInfo::get().wasmContextPointer);
     801}
     802
     803bool AssemblyHelpers::loadWasmContextNeedsMacroScratchRegister()
    804804{
    805805#if ENABLE(FAST_TLS_JIT)
    806     if (Wasm::Context::useFastTLS())
     806    if (Wasm::useFastTLSForContext())
    807807        return loadFromTLSPtrNeedsMacroScratchRegister();
    808808#endif
     
    810810}
    811811
    812 bool AssemblyHelpers::storeWasmContextInstanceNeedsMacroScratchRegister()
     812bool AssemblyHelpers::storeWasmContextNeedsMacroScratchRegister()
    813813{
    814814#if ENABLE(FAST_TLS_JIT)
    815     if (Wasm::Context::useFastTLS())
     815    if (Wasm::useFastTLSForContext())
    816816        return storeToTLSPtrNeedsMacroScratchRegister();
    817817#endif
     
    876876}
    877877
    878 void AssemblyHelpers::copyCalleeSavesToEntryFrameCalleeSavesBufferImpl(GPRReg calleeSavesBuffer)
     878void AssemblyHelpers::copyCalleeSavesToVMEntryFrameCalleeSavesBufferImpl(GPRReg calleeSavesBuffer)
    879879{
    880880#if NUMBER_OF_CALLEE_SAVES_REGISTERS > 0
    881     addPtr(TrustedImm32(EntryFrame::calleeSaveRegistersBufferOffset()), calleeSavesBuffer);
     881    addPtr(TrustedImm32(VMEntryFrame::calleeSaveRegistersBufferOffset()), calleeSavesBuffer);
    882882
    883883    RegisterAtOffsetList* allCalleeSaves = VM::getAllCalleeSaveRegisterOffsets();
Note: See TracChangeset for help on using the changeset viewer.