Changeset 237472 in webkit
- Timestamp:
- Oct 26, 2018, 11:51:25 AM (8 years ago)
- Location:
- branches/safari-606-branch/Source/JavaScriptCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
assembler/LinkBuffer.cpp (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-606-branch/Source/JavaScriptCore/ChangeLog
r237471 r237472 1 2018-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 1 27 2018-10-23 Kocsen Chung <kocsen_chung@apple.com> 2 28 -
branches/safari-606-branch/Source/JavaScriptCore/assembler/LinkBuffer.cpp
r237470 r237472 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()); … … 124 124 unsigned jumpCount = jumpsToLink.size(); 125 125 126 #if CPU(ARM64E) 126 #if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS) 127 127 os_thread_self_restrict_rwx_to_rw(); 128 128 #endif … … 141 141 ASSERT(!(readPtr % 2)); 142 142 ASSERT(!(writePtr % 2)); 143 #if CPU(ARM64E) 143 #if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS) 144 144 unsigned index = readPtr; 145 145 #endif 146 146 while (copySource != copyEnd) { 147 147 InstructionType insn = *copySource++; 148 #if CPU(ARM64E) 148 #if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS) 149 149 static_assert(sizeof(InstructionType) == 4, ""); 150 150 verifyUncompactedHash.update(insn, index); … … 194 194 RELEASE_ASSERT(bytes % sizeof(InstructionType) == 0); 195 195 196 #if CPU(ARM64E) 196 #if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS) 197 197 unsigned index = readPtr; 198 198 #endif … … 200 200 for (size_t i = 0; i < bytes; i += sizeof(InstructionType)) { 201 201 InstructionType insn = *src++; 202 #if CPU(ARM64E) 202 #if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS) 203 203 verifyUncompactedHash.update(insn, index); 204 204 index += sizeof(InstructionType); … … 208 208 } 209 209 210 #if CPU(ARM64E) 210 #if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS) 211 211 if (verifyUncompactedHash.hash() != assemblerBufferHash.hash()) { 212 212 dataLogLn("Hashes don't match: ", RawPointer(bitwise_cast<void*>(verifyUncompactedHash.hash())), " ", RawPointer(bitwise_cast<void*>(assemblerBufferHash.hash()))); … … 219 219 220 220 for (unsigned i = 0; i < jumpCount; ++i) { 221 #if CPU(ARM64E) 221 #if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS) 222 222 auto memcpyFunction = memcpy; 223 223 #else … … 236 236 } 237 237 238 #if CPU(ARM64E) 238 #if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS) 239 239 os_thread_self_restrict_rwx_to_rx(); 240 240 #endif … … 245 245 } 246 246 247 #if !CPU(ARM64E) 247 #if !CPU(ARM64E) || !ENABLE(FAST_JIT_PERMISSIONS) 248 248 ASSERT(codeOutData != outData); 249 249 performJITMemcpy(codeOutData, outData, m_size);
Note:
See TracChangeset
for help on using the changeset viewer.