Commit dc3fe3ae authored by mjs's avatar mjs
Browse files

JavaScriptCore:

        Reviewed by Geoff and Steve.
        
        - fix some portability issues with TCMalloc.

        * JavaScriptCore.vcproj/WTF/WTF.vcproj:
        * kjs/config.h:
        * wtf/FastMalloc.cpp:
        (WTF::SizeClass):
        (WTF::InitSizeClasses):
        (WTF::TCMalloc_PageHeap::Split):
        (WTF::TCMalloc_PageHeap::RegisterSizeClass):
        (WTF::TCMalloc_Central_FreeList::length):
        (WTF::TCMalloc_ThreadCache::InitTSD):
        (WTF::TCMalloc_ThreadCache::CreateCacheIfNecessary):
        * wtf/TCSpinLock.h:
        * wtf/TCSystemAlloc.cpp:
        (TryVirtualAlloc):
        (TCMalloc_SystemAlloc):

WebCore:

        Reviewed by Geoff and Steve.

        * config.h: Remove unneeded hack.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20229 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 0def9d84
2007-03-15 Maciej Stachowiak <mjs@apple.com>
Reviewed by Geoff and Steve.
- fix some portability issues with TCMalloc.
* JavaScriptCore.vcproj/WTF/WTF.vcproj:
* kjs/config.h:
* wtf/FastMalloc.cpp:
(WTF::SizeClass):
(WTF::InitSizeClasses):
(WTF::TCMalloc_PageHeap::Split):
(WTF::TCMalloc_PageHeap::RegisterSizeClass):
(WTF::TCMalloc_Central_FreeList::length):
(WTF::TCMalloc_ThreadCache::InitTSD):
(WTF::TCMalloc_ThreadCache::CreateCacheIfNecessary):
* wtf/TCSpinLock.h:
* wtf/TCSystemAlloc.cpp:
(TryVirtualAlloc):
(TCMalloc_SystemAlloc):
2007-03-15 Timothy Hatcher <timothy@apple.com>
 
Reviewed by John.
......
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8.00"
Name="WTF"
ProjectGUID="{AA8A5A85-592B-4357-BC60-E0E91E026AF6}"
RootNamespace="WTF"
Keyword="Win32Proj"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(WebKitOutputDir)\lib"
IntermediateDirectory="$(WebKitOutputDir)\obj\$(ProjectName)\$(ConfigurationName)"
ConfigurationType="4"
InheritedPropertySheets="..\debug.vsprops"
CharacterSet="1"
DeleteExtensionsOnClean="*.obj;*.ilk;*.tlb;*.tli;*.tlh;*.tmp;*.rsp;*.pgc;*.pgd;$(TargetPath)"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
Description=""
CommandLine=""
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="&quot;$(WebKitOutputDir)\obj\JavaScriptCore\$(ConfigurationName)\DerivedSources\&quot;;../../;&quot;../../os-win32/&quot;;../../pcre/;../../kjs/;../../wtf/;&quot;$(WebKitSDKDir)\include&quot;;&quot;$(WebKitSDKDir)\include\icu&quot;;../../../icu/include;../../bindings;../../bindings/c;../../bindings/jni;&quot;$(WebKitOutputDir)\include\JavaScriptCore&quot;"
PreprocessorDefinitions="HAVE_CONFIG_H;WIN32;__STD_C;_SCL_SECURE_NO_DEPRECATE;_CRT_SECURE_NO_DEPRECATE"
MinimalRebuild="true"
ExceptionHandling="0"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
RuntimeTypeInfo="false"
UsePrecompiledHeader="0"
WarningLevel="4"
WarnAsError="true"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="4"
DisableSpecificWarnings="4127;4355;4510;4512;4610;4706;4996"
ForcedIncludeFiles=""
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLibrarianTool"
OutputFile="$(OutDir)\$(ProjectName)$(ConfigSuffix).lib"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(WebKitOutputDir)\lib"
IntermediateDirectory="$(WebKitOutputDir)\obj\$(ProjectName)\$(ConfigurationName)"
ConfigurationType="4"
InheritedPropertySheets="..\release.vsprops"
CharacterSet="1"
DeleteExtensionsOnClean="*.obj;*.ilk;*.tlb;*.tli;*.tlh;*.tmp;*.rsp;*.pgc;*.pgd;$(TargetPath)"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
Description=""
CommandLine=""
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="&quot;$(WebKitOutputDir)\obj\JavaScriptCore\$(ConfigurationName)\DerivedSources\&quot;;../../;&quot;../../os-win32/&quot;;../../pcre/;../../kjs/;../../wtf/;&quot;$(WebKitSDKDir)\include&quot;;&quot;$(WebKitSDKDir)\include\icu&quot;;../../../icu/include;../../bindings;../../bindings/c;../../bindings/jni;&quot;$(WebKitOutputDir)\include\JavaScriptCore&quot;"
PreprocessorDefinitions="HAVE_CONFIG_H;WIN32;__STD_C;NDEBUG;_SCL_SECURE_NO_DEPRECATE;_CRT_SECURE_NO_DEPRECATE"
ExceptionHandling="0"
RuntimeLibrary="2"
RuntimeTypeInfo="false"
UsePrecompiledHeader="0"
WarningLevel="4"
WarnAsError="true"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="3"
DisableSpecificWarnings="4127;4355;4510;4512;4610;4706;4996"
ForcedIncludeFiles=""
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLibrarianTool"
OutputFile="$(OutDir)\$(ProjectName)$(ConfigSuffix).lib"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<File
RelativePath="..\..\wtf\AlwaysInline.h"
>
</File>
<File
RelativePath="..\..\wtf\Assertions.cpp"
>
</File>
<File
RelativePath="..\..\wtf\Assertions.h"
>
</File>
<File
RelativePath="..\..\wtf\FastMalloc.cpp"
>
</File>
<File
RelativePath="..\..\wtf\FastMalloc.h"
>
</File>
<File
RelativePath="..\..\wtf\FastMallocInternal.h"
>
</File>
<File
RelativePath="..\..\wtf\Forward.h"
>
</File>
<File
RelativePath="..\..\wtf\GetPtr.h"
>
</File>
<File
RelativePath="..\..\wtf\HashCountedSet.h"
>
</File>
<File
RelativePath="..\..\wtf\HashFunctions.h"
>
</File>
<File
RelativePath="..\..\wtf\HashMap.h"
>
</File>
<File
RelativePath="..\..\wtf\HashSet.h"
>
</File>
<File
RelativePath="..\..\wtf\HashTable.cpp"
>
</File>
<File
RelativePath="..\..\wtf\HashTable.h"
>
</File>
<File
RelativePath="..\..\wtf\HashTraits.h"
>
</File>
<File
RelativePath="..\..\wtf\ListHashSet.h"
>
</File>
<File
RelativePath="..\..\wtf\ListRefPtr.h"
>
</File>
<File
RelativePath="..\..\wtf\MathExtras.h"
>
</File>
<File
RelativePath="..\..\wtf\Noncopyable.h"
>
</File>
<File
RelativePath="..\..\wtf\OwnArrayPtr.h"
>
</File>
<File
RelativePath="..\..\wtf\OwnPtr.h"
>
</File>
<File
RelativePath="..\..\wtf\PassRefPtr.h"
>
</File>
<File
RelativePath="..\..\wtf\Platform.h"
>
</File>
<File
RelativePath="..\..\wtf\RefPtr.h"
>
</File>
<File
RelativePath="..\..\wtf\StringExtras.h"
>
</File>
<File
RelativePath="..\..\wtf\TCPageMap.h"
>
</File>
<File
RelativePath="..\..\wtf\TCSpinLock.h"
>
</File>
<File
RelativePath="..\..\wtf\TCSystemAlloc.h"
>
</File>
<File
RelativePath="..\..\wtf\unicode\Unicode.h"
>
</File>
<File
RelativePath="..\..\wtf\unicode\icu\UnicodeIcu.h"
>
</File>
<File
RelativePath="..\..\wtf\UnusedParam.h"
>
</File>
<File
RelativePath="..\..\wtf\Vector.h"
>
</File>
<File
RelativePath="..\..\wtf\VectorTraits.h"
>
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8.00"
Name="WTF"
ProjectGUID="{AA8A5A85-592B-4357-BC60-E0E91E026AF6}"
RootNamespace="WTF"
Keyword="Win32Proj"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(WebKitOutputDir)\lib"
IntermediateDirectory="$(WebKitOutputDir)\obj\$(ProjectName)\$(ConfigurationName)"
ConfigurationType="4"
InheritedPropertySheets="..\debug.vsprops"
CharacterSet="1"
DeleteExtensionsOnClean="*.obj;*.ilk;*.tlb;*.tli;*.tlh;*.tmp;*.rsp;*.pgc;*.pgd;$(TargetPath)"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
Description=""
CommandLine=""
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="&quot;$(WebKitOutputDir)\obj\JavaScriptCore\$(ConfigurationName)\DerivedSources\&quot;;../../;&quot;../../os-win32/&quot;;../../pcre/;../../kjs/;../../wtf/;&quot;$(WebKitSDKDir)\include&quot;;&quot;$(WebKitSDKDir)\include\icu&quot;;../../../icu/include;../../bindings;../../bindings/c;../../bindings/jni;&quot;$(WebKitOutputDir)\include\JavaScriptCore&quot;;&quot;$(WebKitSDKDir)\include\pthreads&quot;"
PreprocessorDefinitions="HAVE_CONFIG_H;WIN32;__STD_C;_SCL_SECURE_NO_DEPRECATE;_CRT_SECURE_NO_DEPRECATE"
MinimalRebuild="true"
ExceptionHandling="0"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
RuntimeTypeInfo="false"
UsePrecompiledHeader="0"
WarningLevel="4"
WarnAsError="true"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="4"
DisableSpecificWarnings="4127;4355;4510;4512;4610;4706;4996"
ForcedIncludeFiles=""
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLibrarianTool"
OutputFile="$(OutDir)\$(ProjectName)$(ConfigSuffix).lib"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(WebKitOutputDir)\lib"
IntermediateDirectory="$(WebKitOutputDir)\obj\$(ProjectName)\$(ConfigurationName)"
ConfigurationType="4"
InheritedPropertySheets="..\release.vsprops"
CharacterSet="1"
DeleteExtensionsOnClean="*.obj;*.ilk;*.tlb;*.tli;*.tlh;*.tmp;*.rsp;*.pgc;*.pgd;$(TargetPath)"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
Description=""
CommandLine=""
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="&quot;$(WebKitOutputDir)\obj\JavaScriptCore\$(ConfigurationName)\DerivedSources\&quot;;../../;&quot;../../os-win32/&quot;;../../pcre/;../../kjs/;../../wtf/;&quot;$(WebKitSDKDir)\include&quot;;&quot;$(WebKitSDKDir)\include\icu&quot;;../../../icu/include;../../bindings;../../bindings/c;../../bindings/jni;&quot;$(WebKitOutputDir)\include\JavaScriptCore&quot;;&quot;$(WebKitSDKDir)\include\pthreads&quot;"
PreprocessorDefinitions="HAVE_CONFIG_H;WIN32;__STD_C;NDEBUG;_SCL_SECURE_NO_DEPRECATE;_CRT_SECURE_NO_DEPRECATE"
ExceptionHandling="0"
RuntimeLibrary="2"
RuntimeTypeInfo="false"
UsePrecompiledHeader="0"
WarningLevel="4"
WarnAsError="true"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="3"
DisableSpecificWarnings="4127;4355;4510;4512;4610;4706;4996"
ForcedIncludeFiles=""
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLibrarianTool"
OutputFile="$(OutDir)\$(ProjectName)$(ConfigSuffix).lib"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<File
RelativePath="..\..\wtf\AlwaysInline.h"
>
</File>
<File
RelativePath="..\..\wtf\Assertions.cpp"
>
</File>
<File
RelativePath="..\..\wtf\Assertions.h"
>
</File>
<File
RelativePath="..\..\wtf\FastMalloc.cpp"
>
</File>
<File
RelativePath="..\..\wtf\FastMalloc.h"
>
</File>
<File
RelativePath="..\..\wtf\FastMallocInternal.h"
>
</File>
<File
RelativePath="..\..\wtf\Forward.h"
>
</File>
<File
RelativePath="..\..\wtf\GetPtr.h"
>
</File>
<File
RelativePath="..\..\wtf\HashCountedSet.h"
>
</File>
<File
RelativePath="..\..\wtf\HashFunctions.h"
>
</File>
<File
RelativePath="..\..\wtf\HashMap.h"
>
</File>
<File
RelativePath="..\..\wtf\HashSet.h"
>
</File>
<File
RelativePath="..\..\wtf\HashTable.cpp"
>
</File>
<File
RelativePath="..\..\wtf\HashTable.h"
>
</File>
<File
RelativePath="..\..\wtf\HashTraits.h"
>
</File>
<File
RelativePath="..\..\wtf\ListHashSet.h"
>
</File>
<File
RelativePath="..\..\wtf\ListRefPtr.h"
>
</File>
<File
RelativePath="..\..\wtf\MathExtras.h"
>
</File>
<File
RelativePath="..\..\wtf\Noncopyable.h"
>
</File>
<File
RelativePath="..\..\wtf\OwnArrayPtr.h"
>
</File>
<File
RelativePath="..\..\wtf\OwnPtr.h"
>
</File>
<File
RelativePath="..\..\wtf\PassRefPtr.h"
>
</File>
<File
RelativePath="..\..\wtf\Platform.h"
>
</File>
<File
RelativePath="..\..\wtf\RefPtr.h"
>
</File>
<File
RelativePath="..\..\wtf\StringExtras.h"
>
</File>
<File
RelativePath="..\..\wtf\TCPageMap.h"
>
</File>
<File
RelativePath="..\..\wtf\TCSpinLock.h"
>
</File>
<File
RelativePath="..\..\wtf\TCSystemAlloc.cpp"
>
</File>
<File
RelativePath="..\..\wtf\TCSystemAlloc.h"
>
</File>
<File
RelativePath="..\..\wtf\unicode\Unicode.h"
>
</File>
<File
RelativePath="..\..\wtf\unicode\icu\UnicodeIcu.h"
>
</File>
<File
RelativePath="..\..\wtf\UnusedParam.h"
>
</File>
<File