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

Changeset 237472 in webkit


Ignore:
Timestamp:
Oct 26, 2018, 11:51:25 AM (8 years ago)
Author:
Alan Coon
Message:

Cherry-pick r236606. rdar://problem/45285669

Gardening: speculative build fix.
<rdar://problem/44869924>

Not reviewed.

  • assembler/LinkBuffer.cpp: (JSC::LinkBuffer::copyCompactAndLinkCode):

git-svn-id: ​https://svn.webkit.org/repository/webkit/trunk@236606 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-606-branch/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-606-branch/Source/JavaScriptCore/ChangeLog

    r237471 r237472  
     12018-10-23  Kocsen Chung  <kocsen_chung@apple.com>
     2
     3        Cherry-pick r236606. rdar://problem/45285669
     4
     5    Gardening: speculative build fix.
     6    <rdar://problem/44869924>
     7   
     8    Not reviewed.
     9   
     10    * assembler/LinkBuffer.cpp:
     11    (JSC::LinkBuffer::copyCompactAndLinkCode):
     12   
     13   
     14   
     15    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@236606 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     16
     17    2018-09-28  Mark Lam  <mark.lam@apple.com>
     18
     19            Gardening: speculative build fix.
     20            <rdar://problem/44869924>
     21
     22            Not reviewed.
     23
     24            * assembler/LinkBuffer.cpp:
     25            (JSC::LinkBuffer::copyCompactAndLinkCode):
     26
    1272018-10-23  Kocsen Chung  <kocsen_chung@apple.com>
    228
  • branches/safari-606-branch/Source/JavaScriptCore/assembler/LinkBuffer.cpp

    r237470 r237472  
    111111
    112112    uint8_t* codeOutData = m_code.dataLocation<uint8_t*>();
    113 #if CPU(ARM64E)
     113#if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS)
    114114    const ARM64EHash assemblerBufferHash = macroAssembler.m_assembler.buffer().hash();
    115115    ARM64EHash verifyUncompactedHash(assemblerBufferHash.randomSeed());
    … …  
    124124    unsigned jumpCount = jumpsToLink.size();
    125125
    126 #if CPU(ARM64E)
     126#if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS)
    127127    os_thread_self_restrict_rwx_to_rw();
    128128#endif
    … …  
    141141            ASSERT(!(readPtr % 2));
    142142            ASSERT(!(writePtr % 2));
    143 #if CPU(ARM64E)
     143#if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS)
    144144            unsigned index = readPtr;
    145145#endif
    146146            while (copySource != copyEnd) {
    147147                InstructionType insn = *copySource++;
    148 #if CPU(ARM64E)
     148#if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS)
    149149                static_assert(sizeof(InstructionType) == 4, "");
    150150                verifyUncompactedHash.update(insn, index);
    … …  
    194194        RELEASE_ASSERT(bytes % sizeof(InstructionType) == 0);
    195195
    196 #if CPU(ARM64E)
     196#if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS)
    197197        unsigned index = readPtr;
    198198#endif
    … …  
    200200        for (size_t i = 0; i < bytes; i += sizeof(InstructionType)) {
    201201            InstructionType insn = *src++;
    202 #if CPU(ARM64E)
     202#if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS)
    203203            verifyUncompactedHash.update(insn, index);
    204204            index += sizeof(InstructionType);
    … …  
    208208    }
    209209
    210 #if CPU(ARM64E)
     210#if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS)
    211211    if (verifyUncompactedHash.hash() != assemblerBufferHash.hash()) {
    212212        dataLogLn("Hashes don't match: ", RawPointer(bitwise_cast<void*>(verifyUncompactedHash.hash())), " ", RawPointer(bitwise_cast<void*>(assemblerBufferHash.hash())));
    … …  
    219219       
    220220    for (unsigned i = 0; i < jumpCount; ++i) {
    221 #if CPU(ARM64E)
     221#if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS)
    222222        auto memcpyFunction = memcpy;
    223223#else
    … …  
    236236    }
    237237
    238 #if CPU(ARM64E)
     238#if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS)
    239239    os_thread_self_restrict_rwx_to_rx();
    240240#endif
    … …  
    245245    }
    246246
    247 #if !CPU(ARM64E)
     247#if !CPU(ARM64E) || !ENABLE(FAST_JIT_PERMISSIONS)
    248248    ASSERT(codeOutData != outData);
    249249    performJITMemcpy(codeOutData, outData, m_size);
Note: See TracChangeset for help on using the changeset viewer.