Skip to content

Commit 675aae0

Browse files
author
Mark Lam
committed
Remove some no longer needed code.
https://bugs.webkit.org/show_bug.cgi?id=328262 rdar://190557249 Reviewed by Marcus Plutowski. No new tests because this is just removal of unused code. There is no behavior change. * Source/JavaScriptCore/assembler/JITOperationValidation.h: * Source/JavaScriptCore/jit/ExecutableAllocator.cpp: (JSC::initializeJITPageReservation): * Source/JavaScriptCore/runtime/Options.cpp: (JSC::canUseJITCage): Canonical link: https://commits.webkit.org/324311@main
1 parent 0976f3a commit 675aae0

3 files changed

Lines changed: 1 addition & 11 deletions

File tree

‎Source/JavaScriptCore/assembler/JITOperationValidation.h‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,6 @@
4343
#endif // OS(DARWIN)
4444
#endif
4545

46-
#if !defined(JSC_FORCE_USE_JIT_CAGE)
47-
#define JSC_FORCE_USE_JIT_CAGE 0
48-
#endif
49-
50-
#if !defined(JSC_ALLOW_JIT_CAGE_SPECIFIC_RESERVATION)
51-
#define JSC_ALLOW_JIT_CAGE_SPECIFIC_RESERVATION 1
52-
#endif
53-
5446
namespace JSC {
5547

5648
#ifndef JIT_OPERATION_VALIDATION_FUNCTOR

‎Source/JavaScriptCore/jit/ExecutableAllocator.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ static ALWAYS_INLINE JITReservation initializeJITPageReservation()
380380
if (Options::useJITDump())
381381
return PageReservation::tryReserveWithGuardPages(reservationSize, OSAllocator::JSJITCodePages, hintAddress, EXECUTABLE_POOL_WRITABLE, true, true, false);
382382
#endif
383-
if (Options::useJITCage() && JSC_ALLOW_JIT_CAGE_SPECIFIC_RESERVATION)
383+
if (Options::useJITCage())
384384
return PageReservation::tryReserve(reservationSize, OSAllocator::JSJITCodePages, hintAddress, EXECUTABLE_POOL_WRITABLE, true, false, Options::useJITCage());
385385
return PageReservation::tryReserveWithGuardPages(reservationSize, OSAllocator::JSJITCodePages, hintAddress, EXECUTABLE_POOL_WRITABLE, true, false, false);
386386
};

‎Source/JavaScriptCore/runtime/Options.cpp‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,8 +1547,6 @@ bool Option::operator==(const Option& other) const
15471547
#if ENABLE(JIT_CAGE)
15481548
SUPPRESS_ASAN bool canUseJITCage()
15491549
{
1550-
if (JSC_FORCE_USE_JIT_CAGE)
1551-
return true;
15521550
return JSC_JIT_CAGE_VERSION() && !ASAN_ENABLED && WTF::processHasEntitlement("com.apple.private.verified-jit"_s);
15531551
}
15541552
#else

0 commit comments

Comments
 (0)