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

Changeset 236606 in webkit


Ignore:
Timestamp:
Sep 28, 2018, 11:46:52 AM (8 years ago)
Author:
mark.lam@apple.com
Message:

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

Not reviewed.

  • assembler/LinkBuffer.cpp:

(JSC::LinkBuffer::copyCompactAndLinkCode):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r236604 r236606  
     12018-09-28  Mark Lam  <mark.lam@apple.com>
     2
     3        Gardening: speculative build fix.
     4        <rdar://problem/44869924>
     5
     6        Not reviewed.
     7
     8        * assembler/LinkBuffer.cpp:
     9        (JSC::LinkBuffer::copyCompactAndLinkCode):
     10
    1112018-09-28  Guillaume Emont  <guijemont@igalia.com>
    212
  • trunk/Source/JavaScriptCore/assembler/LinkBuffer.cpp

    r236589 r236606  
    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());
    … …  
    128128    unsigned jumpCount = jumpsToLink.size();
    129129
    130 #if CPU(ARM64E)
     130#if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS)
    131131    os_thread_self_restrict_rwx_to_rw();
    132132#endif
    … …  
    145145            ASSERT(!(readPtr % 2));
    146146            ASSERT(!(writePtr % 2));
    147 #if CPU(ARM64E)
     147#if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS)
    148148            unsigned index = readPtr;
    149149#endif
    150150            while (copySource != copyEnd) {
    151151                InstructionType insn = *copySource++;
    152 #if CPU(ARM64E)
     152#if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS)
    153153                static_assert(sizeof(InstructionType) == 4, "");
    154154                verifyUncompactedHash.update(insn, index);
    … …  
    198198        RELEASE_ASSERT(bytes % sizeof(InstructionType) == 0);
    199199
    200 #if CPU(ARM64E)
     200#if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS)
    201201        unsigned index = readPtr;
    202202#endif
    … …  
    204204        for (size_t i = 0; i < bytes; i += sizeof(InstructionType)) {
    205205            InstructionType insn = *src++;
    206 #if CPU(ARM64E)
     206#if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS)
    207207            verifyUncompactedHash.update(insn, index);
    208208            index += sizeof(InstructionType);
    … …  
    212212    }
    213213
    214 #if CPU(ARM64E)
     214#if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS)
    215215    if (verifyUncompactedHash.hash() != assemblerBufferHash.hash()) {
    216216        dataLogLn("Hashes don't match: ", RawPointer(bitwise_cast<void*>(verifyUncompactedHash.hash())), " ", RawPointer(bitwise_cast<void*>(assemblerBufferHash.hash())));
    … …  
    223223       
    224224    for (unsigned i = 0; i < jumpCount; ++i) {
    225 #if CPU(ARM64E)
     225#if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS)
    226226        auto memcpyFunction = memcpy;
    227227#else
    … …  
    240240    }
    241241
    242 #if CPU(ARM64E)
     242#if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS)
    243243    os_thread_self_restrict_rwx_to_rx();
    244244#endif
    … …  
    249249    }
    250250
    251 #if !CPU(ARM64E)
     251#if !CPU(ARM64E) || !ENABLE(FAST_JIT_PERMISSIONS)
    252252    ASSERT(codeOutData != outData);
    253253    performJITMemcpy(codeOutData, outData, m_size);
Note: See TracChangeset for help on using the changeset viewer.