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

Changeset 271489 in webkit


Ignore:
Timestamp:
Jan 14, 2021, 10:10:38 AM (6 years ago)
Author:
sbarati@apple.com
Message:

Baseline JIT should emit mutatorFence after inline allocations
https://bugs.webkit.org/show_bug.cgi?id=220572

Reviewed by Yusuke Suzuki.

  • jit/JITOpcodes.cpp:

(JSC::JIT::emit_op_new_object):
(JSC::JIT::emit_op_create_this):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r271449 r271489  
     12021-01-14  Saam Barati  <sbarati@apple.com>
     2
     3        Baseline JIT should emit mutatorFence after inline allocations
     4        https://bugs.webkit.org/show_bug.cgi?id=220572
     5
     6        Reviewed by Yusuke Suzuki.
     7
     8        * jit/JITOpcodes.cpp:
     9        (JSC::JIT::emit_op_new_object):
     10        (JSC::JIT::emit_op_create_this):
     11
    1122021-01-13  Xan Lopez  <xan@igalia.com>
    213
  • trunk/Source/JavaScriptCore/jit/JITOpcodes.cpp

    r271279 r271489  
    102102        emitAllocateJSObject(resultReg, JITAllocator::constant(allocator), allocatorReg, TrustedImmPtr(structure), butterfly, scratchReg, slowCases);
    103103        emitInitializeInlineStorage(resultReg, structure->inlineCapacity());
     104        mutatorFence(*m_vm);
    104105        addSlowCase(slowCases);
    105106        emitPutVirtualRegister(bytecode.m_dst);
     
    10861087    load8(Address(structureReg, Structure::inlineCapacityOffset()), scratchReg);
    10871088    emitInitializeInlineStorage(resultReg, scratchReg);
     1089    mutatorFence(*m_vm);
    10881090    addSlowCase(slowCases);
    10891091    emitPutVirtualRegister(bytecode.m_dst);
Note: See TracChangeset for help on using the changeset viewer.