Ignore:
Timestamp:
Feb 26, 2016, 6:10:29 PM (9 years ago)
Author:
[email protected]
Message:

Remove the on demand executable allocator
https://bugs.webkit.org/show_bug.cgi?id=154749

Reviewed by Geoffrey Garen.

Source/JavaScriptCore:

Remove all the DemandExecutable code and executable allocator ifdefs.

(JSC::DemandExecutableAllocator::DemandExecutableAllocator): Deleted.
(JSC::DemandExecutableAllocator::~DemandExecutableAllocator): Deleted.
(JSC::DemandExecutableAllocator::bytesAllocatedByAllAllocators): Deleted.
(JSC::DemandExecutableAllocator::bytesCommittedByAllocactors): Deleted.
(JSC::DemandExecutableAllocator::dumpProfileFromAllAllocators): Deleted.
(JSC::DemandExecutableAllocator::allocateNewSpace): Deleted.
(JSC::DemandExecutableAllocator::notifyNeedPage): Deleted.
(JSC::DemandExecutableAllocator::notifyPageIsFree): Deleted.
(JSC::DemandExecutableAllocator::allocators): Deleted.
(JSC::DemandExecutableAllocator::allocatorsMutex): Deleted.
(JSC::ExecutableAllocator::initializeAllocator): Deleted.
(JSC::ExecutableAllocator::ExecutableAllocator): Deleted.
(JSC::ExecutableAllocator::~ExecutableAllocator): Deleted.
(JSC::ExecutableAllocator::isValid): Deleted.
(JSC::ExecutableAllocator::underMemoryPressure): Deleted.
(JSC::ExecutableAllocator::memoryPressureMultiplier): Deleted.
(JSC::ExecutableAllocator::allocate): Deleted.
(JSC::ExecutableAllocator::committedByteCount): Deleted.
(JSC::ExecutableAllocator::dumpProfile): Deleted.
(JSC::ExecutableAllocator::getLock): Deleted.
(JSC::ExecutableAllocator::isValidExecutableMemory): Deleted.
(JSC::ExecutableAllocator::reprotectRegion): Deleted.

  • jit/ExecutableAllocator.h:
  • jit/ExecutableAllocatorFixedVMPool.cpp:
  • jit/JITStubRoutine.h:

(JSC::JITStubRoutine::canPerformRangeFilter): Deleted.
(JSC::JITStubRoutine::filteringStartAddress): Deleted.
(JSC::JITStubRoutine::filteringExtentSize): Deleted.

Source/WTF:

Remove the DeamndExecutableAllocator compile flags.

  • wtf/Platform.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/jit/JITStubRoutine.h

    r190735 r197226  
    104104    static bool canPerformRangeFilter()
    105105    {
    106 #if ENABLE(EXECUTABLE_ALLOCATOR_FIXED)
    107106        return true;
    108 #else
    109         return false;
    110 #endif
    111107    }
    112108    static uintptr_t filteringStartAddress()
    113109    {
    114 #if ENABLE(EXECUTABLE_ALLOCATOR_FIXED)
    115110        return startOfFixedExecutableMemoryPool;
    116 #else
    117         UNREACHABLE_FOR_PLATFORM();
    118         return 0;
    119 #endif
    120111    }
    121112    static size_t filteringExtentSize()
    122113    {
    123 #if ENABLE(EXECUTABLE_ALLOCATOR_FIXED)
    124114        return fixedExecutableMemoryPoolSize;
    125 #else
    126         UNREACHABLE_FOR_PLATFORM();
    127         return 0;
    128 #endif
    129115    }
    130116    static bool passesFilter(uintptr_t address)
Note: See TracChangeset for help on using the changeset viewer.