Changeset 214300 in webkit


Ignore:
Timestamp:
Mar 23, 2017 2:25:06 AM (7 years ago)
Author:
commit-queue@webkit.org
Message:

[jsc] Add MacroAssemblerMIPS::storeFence()
https://bugs.webkit.org/show_bug.cgi?id=169705

Patch by Guillaume Emont <guijemont@igalia.com> on 2017-03-23
Reviewed by Yusuke Suzuki.

There doesn't seem to be anything more fine grained than "sync" that
guarantees that all memory operations following it are going to happen
after all stores before it, so we just use sync.

  • assembler/MIPSAssembler.h:

(JSC::MIPSAssembler::sync): Added a FIXME about SYNC_MB.

  • assembler/MacroAssemblerMIPS.h:

(JSC::MacroAssemblerMIPS::storeFence): Added.

Location:
trunk/Source/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r214296 r214300  
     12017-03-23  Guillaume Emont  <guijemont@igalia.com>
     2
     3        [jsc] Add MacroAssemblerMIPS::storeFence()
     4        https://bugs.webkit.org/show_bug.cgi?id=169705
     5
     6        Reviewed by Yusuke Suzuki.
     7
     8        There doesn't seem to be anything more fine grained than "sync" that
     9        guarantees that all memory operations following it are going to happen
     10        after all stores before it, so we just use sync.
     11
     12        * assembler/MIPSAssembler.h:
     13        (JSC::MIPSAssembler::sync): Added a FIXME about SYNC_MB.
     14        * assembler/MacroAssemblerMIPS.h:
     15        (JSC::MacroAssemblerMIPS::storeFence): Added.
     16
    1172017-03-22  Yusuke Suzuki  <utatane.tea@gmail.com>
    218
  • trunk/Source/JavaScriptCore/assembler/MIPSAssembler.h

    r214022 r214300  
    208208    void sync()
    209209    {
     210        // FIXME: https://bugs.webkit.org/show_bug.cgi?id=169984
     211        // We might get a performance improvements by using SYNC_MB in some or
     212        // all cases.
    210213        emitInst(0x0000000f);
    211214    }
  • trunk/Source/JavaScriptCore/assembler/MacroAssemblerMIPS.h

    r214213 r214300  
    29762976    }
    29772977
     2978    void storeFence()
     2979    {
     2980        m_assembler.sync();
     2981    }
     2982
    29782983    void abortWithReason(AbortReason reason, intptr_t misc)
    29792984    {
Note: See TracChangeset for help on using the changeset viewer.