⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 181628 in webkit


Ignore:
Timestamp:
Mar 17, 2015, 2:33:30 AM (11 years ago)
Author:
msaboff@apple.com
Message:

Windows X86-64 should use the fixed executable allocator
https://bugs.webkit.org/show_bug.cgi?id=142749

Reviewed by Filip Pizlo.

Source/JavaScriptCore:

Added jit/ExecutableAllocatorFixedVMPool.cpp to Windows build.

  • JavaScriptCore.vcxproj/JavaScriptCore.vcxproj:
  • JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters:
  • jit/ExecutableAllocatorFixedVMPool.cpp: Don't include unistd.h on Windows.

Source/WTF:

Set ENABLE_EXECUTABLE_ALLOCATOR_FIXED for Windows.
Needed to export MetaAllocator::currentStatistics() for use in JavaScriptCore.

  • wtf/MetaAllocator.h:
  • wtf/Platform.h:
Location:
trunk/Source
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r181625 r181628  
     12015-03-17  Michael Saboff  <msaboff@apple.com>
     2
     3        Windows X86-64 should use the fixed executable allocator
     4        https://bugs.webkit.org/show_bug.cgi?id=142749
     5
     6        Reviewed by Filip Pizlo.
     7
     8        Added jit/ExecutableAllocatorFixedVMPool.cpp to Windows build.
     9
     10        * JavaScriptCore.vcxproj/JavaScriptCore.vcxproj:
     11        * JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters:
     12        * jit/ExecutableAllocatorFixedVMPool.cpp: Don't include unistd.h on Windows.
     13
    1142015-03-17  Matt Baker  <mattbaker@apple.com>
    215
  • trunk/Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCore.vcxproj

    r181458 r181628  
    600600    <ClCompile Include="..\jit\BinarySwitch.cpp" />
    601601    <ClCompile Include="..\jit\ExecutableAllocator.cpp" />
     602    <ClCompile Include="..\jit\ExecutableAllocatorFixedVMPool.cpp" />
    602603    <ClCompile Include="..\jit\GCAwareJITStubRoutine.cpp" />
    603604    <ClCompile Include="..\jit\HostCallReturnValue.cpp" />
  • trunk/Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters

    r181458 r181628  
    17531753      <Filter>jit</Filter>
    17541754    </ClCompile>
    1755     <ClCompile Include="..\dfg\DFGPutLocalSinkingPhase.cpp">
    1756       <Filter>dfg</Filter>
    1757     </ClCompile>
    17581755    <ClCompile Include="..\jit\PolymorphicCallStubRoutine.cpp">
    17591756      <Filter>jit</Filter>
     
    17651762    <ClCompile Include="JavaScriptCoreDLL.cpp">
    17661763      <Filter>API</Filter>
     1764    </ClCompile>
     1765    <ClCompile Include="..\dfg\DFGPutStackSinkingPhase.cpp" />
     1766    <ClCompile Include="..\ftl\FTLJSCallBase.cpp" />
     1767    <ClCompile Include="..\ftl\FTLJSCallVarargs.cpp" />
     1768    <ClCompile Include="..\runtime\JSCatchScope.cpp" />
     1769    <ClCompile Include="..\runtime\JSFunctionNameScope.cpp" />
     1770    <ClCompile Include="..\jit\ExecutableAllocatorFixedVMPool.cpp">
     1771      <Filter>jit</Filter>
    17671772    </ClCompile>
    17681773  </ItemGroup>
     
    42154220      <Filter>dfg</Filter>
    42164221    </ClInclude>
    4217     <ClInclude Include="..\dfg\DFGPutLocalSinkingPhase.h">
    4218       <Filter>dfg</Filter>
    4219     </ClInclude>
    42204222    <ClInclude Include="..\jit\PolymorphicCallStubRoutine.h">
    42214223      <Filter>jit</Filter>
    42224224    </ClInclude>
    42234225    <ClInclude Include="..\jit\SetupVarargsFrame.h" />
     4226    <ClInclude Include="..\dfg\DFGPutStackSinkingPhase.h" />
     4227    <ClInclude Include="..\ftl\FTLJSCallBase.h" />
     4228    <ClInclude Include="..\ftl\FTLJSCallVarargs.h" />
     4229    <ClInclude Include="..\runtime\JSCatchScope.h" />
     4230    <ClInclude Include="..\runtime\JSFunctionNameScope.h" />
     4231    <ClInclude Include="..\runtime\MathCommon.h" />
    42244232  </ItemGroup>
    42254233  <ItemGroup>
  • trunk/Source/JavaScriptCore/jit/ExecutableAllocatorFixedVMPool.cpp

    r179450 r181628  
    3333#include "CodeProfiling.h"
    3434#include <errno.h>
     35#if !PLATFORM(WIN)
    3536#include <unistd.h>
     37#endif
    3638#include <wtf/MetaAllocator.h>
    3739#include <wtf/PageReservation.h>
  • trunk/Source/WTF/ChangeLog

    r181618 r181628  
     12015-03-17  Michael Saboff  <msaboff@apple.com>
     2
     3        Windows X86-64 should use the fixed executable allocator
     4        https://bugs.webkit.org/show_bug.cgi?id=142749
     5
     6        Reviewed by Filip Pizlo.
     7
     8        Set ENABLE_EXECUTABLE_ALLOCATOR_FIXED for Windows.
     9        Needed to export MetaAllocator::currentStatistics() for use in JavaScriptCore.
     10
     11        * wtf/MetaAllocator.h:
     12        * wtf/Platform.h:
     13
    1142015-03-16  Ryosuke Niwa  <rniwa@webkit.org>
    215
  • trunk/Source/WTF/wtf/MetaAllocator.h

    r181485 r181628  
    8787        size_t bytesCommitted;
    8888    };
    89     Statistics currentStatistics();
     89    WTF_EXPORT_PRIVATE Statistics currentStatistics();
    9090
    9191    // Add more free space to the allocator. Call this directly from
  • trunk/Source/WTF/wtf/Platform.h

    r181570 r181628  
    862862   On non-Windows x86-64, iOS, and ARM64 we use a single fixed mmap, on other platforms we mmap on demand. */
    863863#if ENABLE(ASSEMBLER)
    864 #if CPU(X86_64) && !OS(WINDOWS) || PLATFORM(IOS) || CPU(ARM64)
     864#if CPU(X86_64) || PLATFORM(IOS) || CPU(ARM64)
    865865#define ENABLE_EXECUTABLE_ALLOCATOR_FIXED 1
    866866#else
Note: See TracChangeset for help on using the changeset viewer.