WebKit Bugzilla
Attachment 359968 Details for
Bug 193744
: ARM64E should not ENABLE(SEPARATED_WX_HEAP).
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch.
bug-193744.patch (text/plain), 5.48 KB, created by
Mark Lam
on 2019-01-23 16:12:29 PST
(
hide
)
Description:
proposed patch.
Filename:
MIME Type:
Creator:
Mark Lam
Created:
2019-01-23 16:12:29 PST
Size:
5.48 KB
patch
obsolete
>Index: Source/JavaScriptCore/ChangeLog >=================================================================== >--- Source/JavaScriptCore/ChangeLog (revision 240363) >+++ Source/JavaScriptCore/ChangeLog (working copy) >@@ -1,3 +1,14 @@ >+2019-01-23 Mark Lam <mark.lam@apple.com> >+ >+ ARM64E should not ENABLE(SEPARATED_WX_HEAP). >+ https://bugs.webkit.org/show_bug.cgi?id=193744 >+ <rdar://problem/46262952> >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * assembler/LinkBuffer.cpp: >+ (JSC::LinkBuffer::copyCompactAndLinkCode): >+ > 2019-01-23 David Kilzer <ddkilzer@apple.com> > > [JSC] Duplicate global variables: JSC::opcodeLengths >Index: Source/JavaScriptCore/assembler/LinkBuffer.cpp >=================================================================== >--- Source/JavaScriptCore/assembler/LinkBuffer.cpp (revision 240363) >+++ Source/JavaScriptCore/assembler/LinkBuffer.cpp (working copy) >@@ -1,5 +1,5 @@ > /* >- * Copyright (C) 2012-2018 Apple Inc. All rights reserved. >+ * Copyright (C) 2012-2019 Apple Inc. All rights reserved. > * > * Redistribution and use in source and binary forms, with or without > * modification, are permitted provided that the following conditions >@@ -41,10 +41,6 @@ > > namespace JSC { > >-#if ENABLE(SEPARATED_WX_HEAP) >-extern JS_EXPORT_PRIVATE bool useFastPermisionsJITCopy; >-#endif // ENABLE(SEPARATED_WX_HEAP) >- > bool shouldDumpDisassemblyFor(CodeBlock* codeBlock) > { > if (codeBlock && JITCode::isOptimizingJIT(codeBlock->jitType()) && Options::dumpDFGDisassembly()) >@@ -120,14 +116,6 @@ static ALWAYS_INLINE void recordLinkOffs > template <typename InstructionType> > void LinkBuffer::copyCompactAndLinkCode(MacroAssembler& macroAssembler, void* ownerUID, JITCompilationEffort effort) > { >-#if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS) >-#if ENABLE(SEPARATED_WX_HEAP) >- const bool isUsingFastPermissionsJITCopy = useFastPermisionsJITCopy; >-#else >- const bool isUsingFastPermissionsJITCopy = true; >-#endif >-#endif >- > allocate(macroAssembler, ownerUID, effort); > const size_t initialSize = macroAssembler.m_assembler.codeSize(); > if (didFailToAllocate()) >@@ -142,11 +130,6 @@ void LinkBuffer::copyCompactAndLinkCode( > const uint32_t expectedFinalHash = macroAssembler.m_assembler.buffer().hash().finalHash(); > ARM64EHash verifyUncompactedHash; > uint8_t* outData = codeOutData; >-#if ENABLE(SEPARATED_WX_HEAP) >- AssemblerData outBuffer(m_size); >- if (!isUsingFastPermissionsJITCopy) >- outData = reinterpret_cast<uint8_t*>(outBuffer.buffer()); >-#endif // ENABLE(SEPARATED_WX_HEAP) > #else > AssemblerData outBuffer(m_size); > uint8_t* outData = reinterpret_cast<uint8_t*>(outBuffer.buffer()); >@@ -161,8 +144,7 @@ void LinkBuffer::copyCompactAndLinkCode( > unsigned jumpCount = jumpsToLink.size(); > > #if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS) >- if (isUsingFastPermissionsJITCopy) >- os_thread_self_restrict_rwx_to_rw(); >+ os_thread_self_restrict_rwx_to_rw(); > #endif > > if (m_shouldPerformBranchCompaction) { >@@ -249,8 +231,6 @@ void LinkBuffer::copyCompactAndLinkCode( > for (unsigned i = 0; i < jumpCount; ++i) { > #if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS) > auto memcpyFunction = memcpy; >- if (!isUsingFastPermissionsJITCopy) >- memcpyFunction = performJITMemcpy; > #else > auto memcpyFunction = performJITMemcpy; > #endif >@@ -267,8 +247,7 @@ void LinkBuffer::copyCompactAndLinkCode( > } > > #if CPU(ARM64E) && ENABLE(FAST_JIT_PERMISSIONS) >- if (isUsingFastPermissionsJITCopy) >- os_thread_self_restrict_rwx_to_rx(); >+ os_thread_self_restrict_rwx_to_rx(); > #endif > > if (m_executableMemory) { >@@ -280,12 +259,7 @@ void LinkBuffer::copyCompactAndLinkCode( > ASSERT(codeOutData != outData); > performJITMemcpy(codeOutData, outData, m_size); > #else >- if (isUsingFastPermissionsJITCopy) >- ASSERT(codeOutData == outData); >- else { >- ASSERT(codeOutData != outData); >- performJITMemcpy(codeOutData, outData, m_size); >- } >+ ASSERT(codeOutData == outData); > #endif > > jumpsToLink.clear(); >Index: Source/WTF/ChangeLog >=================================================================== >--- Source/WTF/ChangeLog (revision 240363) >+++ Source/WTF/ChangeLog (working copy) >@@ -1,3 +1,13 @@ >+2019-01-23 Mark Lam <mark.lam@apple.com> >+ >+ ARM64E should not ENABLE(SEPARATED_WX_HEAP). >+ https://bugs.webkit.org/show_bug.cgi?id=193744 >+ <rdar://problem/46262952> >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * wtf/Platform.h: >+ > 2019-01-23 David Kilzer <ddkilzer@apple.com> > > Switch remaining CoreMedia soft-linking in WebKit over to CoreMediaSoftLink.{cpp,h} >Index: Source/WTF/wtf/Platform.h >=================================================================== >--- Source/WTF/wtf/Platform.h (revision 240363) >+++ Source/WTF/wtf/Platform.h (working copy) >@@ -1,5 +1,5 @@ > /* >- * Copyright (C) 2006-2018 Apple Inc. All rights reserved. >+ * Copyright (C) 2006-2019 Apple Inc. All rights reserved. > * Copyright (C) 2007-2009 Torch Mobile, Inc. > * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved. > * >@@ -958,13 +958,11 @@ > #define JIT_OPERATION > #endif > >-#ifndef ENABLE_SEPARATED_WX_HEAP >-#if (!ENABLE(FAST_JIT_PERMISSIONS) || !CPU(ARM64E)) && PLATFORM(IOS_FAMILY) && CPU(ARM64) >+#if PLATFORM(IOS_FAMILY) && CPU(ARM64) && (!ENABLE(FAST_JIT_PERMISSIONS) || !CPU(ARM64E)) > #define ENABLE_SEPARATED_WX_HEAP 1 > #else > #define ENABLE_SEPARATED_WX_HEAP 0 > #endif >-#endif > > /* Configure the interpreter */ > #if COMPILER(GCC_COMPATIBLE)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
saam
:
review+
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 193744
: 359968