Changeset 62511 in webkit for trunk/JavaScriptCore/wtf/Platform.h


Ignore:
Timestamp:
Jul 5, 2010, 5:22:42 PM (15 years ago)
Author:
[email protected]
Message:

https://bugs.webkit.org/show_bug.cgi?id=41641

Reviewed by Sam Weinig.

Update compile flags to allow use of ExecutableAllocatorFixedVMPool on platforms
other than x86-64 (this may be useful on 32-bit platforms, too).

Simplify ifdefs by dividing into thwo broad allocation strategies
(ENABLE_EXECUTABLE_ALLOCATOR_FIXED & ENABLE_EXECUTABLE_ALLOCATOR_DEMAND).

Rename constant used in the code to have names descriptive of their purpose,
rather than their specific value on a given platform.

  • jit/ExecutableAllocator.cpp:

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

  • jit/ExecutableAllocatorFixedVMPool.cpp:

(JSC::FixedVMPoolAllocator::FixedVMPoolAllocator):
(JSC::FixedVMPoolAllocator::free):
(JSC::ExecutablePool::systemAlloc):

  • jit/ExecutableAllocatorPosix.cpp:
  • jit/ExecutableAllocatorSymbian.cpp:
  • jit/ExecutableAllocatorWin.cpp:
  • wtf/Platform.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/Platform.h

    r62422 r62511  
    10441044#endif
    10451045
     1046/* Pick which allocator to use; we only need an executable allocator if the assembler is compiled in.
     1047   On x86-64 we use a single fixed mmap, on other platforms we mmap on demand. */
     1048#if ENABLE(ASSEMBLER)
     1049#if CPU(X86_64)
     1050#define ENABLE_EXECUTABLE_ALLOCATOR_FIXED 1
     1051#else
     1052#define ENABLE_EXECUTABLE_ALLOCATOR_DEMAND 1
     1053#endif
     1054#endif
     1055
    10461056#if !defined(ENABLE_PAN_SCROLLING) && OS(WINDOWS)
    10471057#define ENABLE_PAN_SCROLLING 1
Note: See TracChangeset for help on using the changeset viewer.