Ignore:
Timestamp:
Jul 26, 2010, 7:53:06 PM (15 years ago)
Author:
[email protected]
Message:

Rolling out r64097:64100, oops, more b0rked than I relized by my last changes, sorry!

(JSC::ExecutableAllocator::reprotectRegion):
(JSC::ExecutableAllocator::cacheFlush):

  • jit/ExecutableAllocator.h:

(JSC::ExecutablePool::ExecutablePool):
(JSC::ExecutablePool::poolAllocate):

  • jit/ExecutableAllocatorFixedVMPool.cpp:

(JSC::FixedVMPoolAllocator::release):
(JSC::FixedVMPoolAllocator::reuse):
(JSC::FixedVMPoolAllocator::FixedVMPoolAllocator):
(JSC::FixedVMPoolAllocator::alloc):
(JSC::FixedVMPoolAllocator::free):
(JSC::FixedVMPoolAllocator::isValid):
(JSC::FixedVMPoolAllocator::isWithinVMPool):
(JSC::ExecutablePool::systemAlloc):
(JSC::ExecutablePool::systemRelease):

  • jit/ExecutableAllocatorPosix.cpp: Added.

(JSC::ExecutableAllocator::intializePageSize):
(JSC::ExecutablePool::systemAlloc):
(JSC::ExecutablePool::systemRelease):
(JSC::ExecutableAllocator::isValid):

  • jit/ExecutableAllocatorSymbian.cpp: Added.

(JSC::ExecutableAllocator::intializePageSize):
(JSC::ExecutablePool::systemAlloc):
(JSC::ExecutablePool::systemRelease):
(JSC::ExecutableAllocator::isValid):

  • jit/ExecutableAllocatorWin.cpp: Added.

(JSC::ExecutableAllocator::intializePageSize):
(JSC::ExecutablePool::systemAlloc):
(JSC::ExecutablePool::systemRelease):
(JSC::ExecutableAllocator::isValid):

  • wscript:
  • wtf/PageAllocation.cpp: Removed.
  • wtf/PageAllocation.h: Removed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/jit/ExecutableAllocator.cpp

    r64098 r64101  
    3434size_t ExecutableAllocator::pageSize = 0;
    3535
    36 #if ENABLE(EXECUTABLE_ALLOCATOR_DEMAND)
    37 
    38 void ExecutableAllocator::intializePageSize()
    39 {
    40 #if CPU(ARMV5_OR_LOWER)
    41     // The moving memory model (as used in ARMv5 and earlier platforms)
    42     // on Symbian OS limits the number of chunks for each process to 16.
    43     // To mitigate this limitation increase the pagesize to allocate
    44     // fewer, larger chunks. Set the page size to 256 Kb to compensate
    45     // for moving memory model limitation
    46     ExecutableAllocator::pageSize = 256 * 1024;
    47 #else
    48     ExecutableAllocator::pageSize = PageAllocation::pagesize();
    49 #endif
    50 }
    51 
    52 ExecutablePool::Allocation ExecutablePool::systemAlloc(size_t size)
    53 {
    54     PageAllocation allocation = PageAllocation::allocate(size, PageAllocation::JSJITCodePages, EXECUTABLE_POOL_WRITABLE, true);
    55     if (!allocation)
    56         CRASH();
    57     return allocation;
    58 }
    59 
    60 void ExecutablePool::systemRelease(const ExecutablePool::Allocation& allocation)
    61 {
    62     allocation.deallocate();
    63 }
    64 
    65 bool ExecutableAllocator::isValid() const
    66 {
    67     return true;
    68 }
    69 
    70 #endif
    71 
    7236#if ENABLE(ASSEMBLER_WX_EXCLUSIVE)
    73 
    74 #if OS(WINDOWS) || OS(SYMBIAN)
    75 #error "ASSEMBLER_WX_EXCLUSIVE not yet suported on this platform."
    76 #endif
    77 
    7837void ExecutableAllocator::reprotectRegion(void* start, size_t size, ProtectionSeting setting)
    7938{
     
    9453    mprotect(pageStart, size, (setting == Writable) ? PROTECTION_FLAGS_RW : PROTECTION_FLAGS_RX);
    9554}
    96 
    9755#endif
    9856
    9957#if CPU(ARM_TRADITIONAL) && OS(LINUX) && COMPILER(RVCT)
    100 
    10158__asm void ExecutableAllocator::cacheFlush(void* code, size_t size)
    10259{
     
    11168    bx lr
    11269}
    113 
    11470#endif
    11571
Note: See TracChangeset for help on using the changeset viewer.