Changeset 236606 in webkit
- Timestamp:
- Sep 28, 2018, 11:46:52 AM (8 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
assembler/LinkBuffer.cpp (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r236604 r236606 1 2018-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 1 11 2018-09-28 Guillaume Emont <guijemont@igalia.com> 2 12 -
trunk/Source/JavaScriptCore/assembler/LinkBuffer.cpp
r236589 r236606 111 111 112 112 uint8_t* codeOutData = m_code.dataLocation<uint8_t*>(); 113 #if CPU(ARM64E) 113 #if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS) 114 114 const ARM64EHash assemblerBufferHash = macroAssembler.m_assembler.buffer().hash(); 115 115 ARM64EHash verifyUncompactedHash(assemblerBufferHash.randomSeed()); … … 128 128 unsigned jumpCount = jumpsToLink.size(); 129 129 130 #if CPU(ARM64E) 130 #if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS) 131 131 os_thread_self_restrict_rwx_to_rw(); 132 132 #endif … … 145 145 ASSERT(!(readPtr % 2)); 146 146 ASSERT(!(writePtr % 2)); 147 #if CPU(ARM64E) 147 #if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS) 148 148 unsigned index = readPtr; 149 149 #endif 150 150 while (copySource != copyEnd) { 151 151 InstructionType insn = *copySource++; 152 #if CPU(ARM64E) 152 #if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS) 153 153 static_assert(sizeof(InstructionType) == 4, ""); 154 154 verifyUncompactedHash.update(insn, index); … … 198 198 RELEASE_ASSERT(bytes % sizeof(InstructionType) == 0); 199 199 200 #if CPU(ARM64E) 200 #if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS) 201 201 unsigned index = readPtr; 202 202 #endif … … 204 204 for (size_t i = 0; i < bytes; i += sizeof(InstructionType)) { 205 205 InstructionType insn = *src++; 206 #if CPU(ARM64E) 206 #if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS) 207 207 verifyUncompactedHash.update(insn, index); 208 208 index += sizeof(InstructionType); … … 212 212 } 213 213 214 #if CPU(ARM64E) 214 #if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS) 215 215 if (verifyUncompactedHash.hash() != assemblerBufferHash.hash()) { 216 216 dataLogLn("Hashes don't match: ", RawPointer(bitwise_cast<void*>(verifyUncompactedHash.hash())), " ", RawPointer(bitwise_cast<void*>(assemblerBufferHash.hash()))); … … 223 223 224 224 for (unsigned i = 0; i < jumpCount; ++i) { 225 #if CPU(ARM64E) 225 #if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS) 226 226 auto memcpyFunction = memcpy; 227 227 #else … … 240 240 } 241 241 242 #if CPU(ARM64E) 242 #if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS) 243 243 os_thread_self_restrict_rwx_to_rx(); 244 244 #endif … … 249 249 } 250 250 251 #if !CPU(ARM64E) 251 #if !CPU(ARM64E) || !ENABLE(FAST_JIT_PERMISSIONS) 252 252 ASSERT(codeOutData != outData); 253 253 performJITMemcpy(codeOutData, outData, m_size);
Note:
See TracChangeset
for help on using the changeset viewer.