Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
Update chakracore to 1.7
Browse files Browse the repository at this point in the history
Updated chakracore to chakra-core/ChakraCore@165d3ce

PR-URL: #335
Reviewed-By: Kyle Farnung <kfarnung@microsoft.com>
Reviewed-By: Hitesh Kanwathirtha <hiteshk@microsoft.com>
  • Loading branch information
kunalspathak authored and kfarnung committed Jul 19, 2017
1 parent 5e9409c commit a932bee
Show file tree
Hide file tree
Showing 2,721 changed files with 133,071 additions and 123,591 deletions.
5 changes: 5 additions & 0 deletions deps/chakrashim/core/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*.baseline -crlf
*.cmd -crlf
test/**/*.js -crlf
test/es6/HTMLComments.js binary diff=cpp
*.wasm binary
6 changes: 5 additions & 1 deletion deps/chakrashim/core/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
*.vcxproj.user
*.vspscc
*.wrn
.vs/

# Visual Studio Extensions
*.vadbg
Expand All @@ -36,7 +37,6 @@
build_*.err
build_*.log
build_*.wrn
Build/.vs/
Build/ipch/
Build/swum-cache.txt
Build/VCBuild.NoJIT/
Expand Down Expand Up @@ -94,10 +94,14 @@ pal/src/config.h
DbgController.js.h

# Generated by other tools
*.lldb.cmd
*.orig
deps/

.DS_Store
android-toolchain-arm/
cc-toolchain/
/TraceOutput.txt
Build/VcBuild
Build/VcBuild.NoJIT
Build/VcBuild.SWB
18 changes: 14 additions & 4 deletions deps/chakrashim/core/Build/Chakra.Build.Default.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,21 @@
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="Common.Build.Default.props"/>
<Import Condition="'$(Clang)'!=''" Project="Chakra.Build.Clang.Default.props"/>
<PropertyGroup Condition="'$(WindowsTargetPlatformVersion)'==''">
<!-- Default the installed latest Win10 SDK -->
<WindowsSdkInstallFolder_10 Condition="'$(WindowsSdkInstallFolder_10)' == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@InstallationFolder)</WindowsSdkInstallFolder_10>
<WindowsSdkInstallFolder_10 Condition="'$(WindowsSdkInstallFolder_10)' == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0@InstallationFolder)</WindowsSdkInstallFolder_10>
<WindowsTargetPlatformVersion_10 Condition="'$(WindowsTargetPlatformVersion_10)' == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)</WindowsTargetPlatformVersion_10>
<WindowsTargetPlatformVersion_10 Condition="'$(WindowsTargetPlatformVersion_10)' == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)</WindowsTargetPlatformVersion_10>
<!-- Sometimes the version in the registry has to .0 suffix, and sometimes it doesn't. Check and add it -->
<WindowsTargetPlatformVersion_10 Condition="'$(WindowsTargetPlatformVersion_10)' != '' and !$(WindowsTargetPlatformVersion_10.EndsWith('.0'))">$(WindowsTargetPlatformVersion_10).0</WindowsTargetPlatformVersion_10>

<WindowsTargetPlatformVersion>$(WindowsTargetPlatformVersion_10)</WindowsTargetPlatformVersion>

<!-- Default back to 10.0.10240.0 if the ARM version of the Win10 SDK is not installed -->
<WindowsTargetPlatformVersion Condition="'$(Platform)'=='ARM' and !Exists('$(WindowsSdkInstallFolder_10)\Include\$(WindowsTargetPlatformVersion_10)\shared\ksarm.h')">10.0.10240.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<PropertyGroup>
<WindowsTargetPlatformVersion Condition="'$(Platform)'=='ARM'">10.0.10240.0</WindowsTargetPlatformVersion>

<!-- Always use Platform SDK for core builds -->
<EventManifestXmlPath>$(WindowsSDK80Path)Include\um</EventManifestXmlPath>
<!-- Unless indicated otherwise, statically link the C++ Runtime into ChakraCore.dll -->
<RuntimeLib Condition="'$(RuntimeLib)'==''">static_library</RuntimeLib>

Expand Down
8 changes: 7 additions & 1 deletion deps/chakrashim/core/Build/Chakra.Build.Paths.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
<BuildConfigPropsPath>$(MSBuildThisFileDirectory)</BuildConfigPropsPath>

<ChakraBuildPathImported>true</ChakraBuildPathImported>

</PropertyGroup>
<PropertyGroup Label="ICU">
<!-- IcuLibDir can be set in environment or with "/p:IcuLibDir=..." -->
<IcuLibDir Condition="'$(IcuLibDir)'=='' AND '$(Configuration)'=='Debug'">$(ChakraCoreRootDirectory)\deps\static\icu-small\debug</IcuLibDir>
<IcuLibDir Condition="'$(IcuLibDir)'=='' AND ('$(Configuration)'=='Test' or '$(Configuration)'=='Release')">$(ChakraCoreRootDirectory)\deps\static\icu-small\release</IcuLibDir>
<!-- IcuIncludeDir can be set in environment or with "/p:IcuIncludeDir=..." -->
<IcuIncludeDir Condition="'$(IcuIncludeDir)'==''">$(ChakraCoreRootDirectory)\deps\icu-small\source</IcuIncludeDir>
</PropertyGroup>
</Project>
22 changes: 9 additions & 13 deletions deps/chakrashim/core/Build/Chakra.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
<Win32_WinNTVersion Condition="'$(NtTargetVersion)'=='$(NtTargetVersion_Win7)'">0x0601</Win32_WinNTVersion>
<Win32_WinNTVersion Condition="'$(NtTargetVersion)'=='$(NtTargetVersion_Win8)'">0x0602</Win32_WinNTVersion>
<Win32_WinNTVersion Condition="'$(NtTargetVersion)'=='$(NtTargetVersion_Win10)'">0x0A00</Win32_WinNTVersion>

<!-- Always use Platform SDK for core builds -->
<EventManifestXmlPath Condition="'$(TargetPlatformVersion)'=='8.1'">$(WindowsSdkDir)Include\um</EventManifestXmlPath>
<EventManifestXmlPath Condition="'$(TargetPlatformVersion)'!='8.1'">$(WindowsSdkDir)Include\$(TargetPlatformVersion)\um</EventManifestXmlPath>
</PropertyGroup>
<PropertyGroup>
<NoThrowNewLib>nothrownew.obj</NoThrowNewLib>
Expand All @@ -25,13 +29,13 @@
%(PreprocessorDefinitions);
DISABLE_JIT=1
</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(ForceSWB)'=='true'">
<PreprocessorDefinitions Condition="'$(IntlICU)'=='true'">
%(PreprocessorDefinitions);
GLOBAL_ENABLE_WRITE_BARRIER=1
INTL_ICU=1
</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(ENABLE_CODECOVERAGE)'=='true'">
<PreprocessorDefinitions Condition="'$(ForceSWB)'=='true'">
%(PreprocessorDefinitions);
BYTECODE_TESTING=1
GLOBAL_ENABLE_WRITE_BARRIER=1
</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(NTDDIVersion)'!=''" >%(PreprocessorDefinitions);NTDDI_VERSION=$(NTDDIVersion)</PreprocessorDefinitions>
<!-- REVIEW: These are warning are introduced when moving to VS2015 tools, may want to clean these up -->
Expand All @@ -48,19 +52,11 @@
$(IntDir)..\CoreManifests\
%(AdditionalIncludeDirectories)
</AdditionalIncludeDirectories>

<!-- ======== For Code Coverage ======== -->
<Optimization Condition="'$(ENABLE_CODECOVERAGE)'=='true'">Disabled</Optimization>
</ClCompile>

<ResourceCompile>
<PreprocessorDefinitions>%(PreprocessorDefinitions);_CHAKRACOREBUILD</PreprocessorDefinitions>
</ResourceCompile>

<Link>
<!-- ======== For Code Coverage ======== -->
<AdditionalOptions Condition="'$(ENABLE_CODECOVERAGE)'=='true'">%(AdditionalOptions) /DEBUGTYPE:CV,FIXUP</AdditionalOptions>
</Link>
</ItemDefinitionGroup>

<!-- Link dependencies for projects that link with Chakra libraries -->
Expand All @@ -74,7 +70,7 @@
ole32.lib
</RLCommonLinkDependencies>
</PropertyGroup>
<PropertyGroup Condition="'$(OptimizedBuild)'!='true'">
<PropertyGroup Condition="'$(DebugBuild)'=='true'">
<ChakraCommonLinkDependencies>
$(ChakraCommonLinkDependencies);
dbghelp.lib;
Expand Down
22 changes: 19 additions & 3 deletions deps/chakrashim/core/Build/Chakra.Core.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
# Visual Studio 15
VisualStudioVersion = 15.0.26228.4
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ChakraCore", "..\bin\ChakraCore\ChakraCore.vcxproj", "{EA882C8D-81FC-42FE-ABD5-2666DB933FDB}"
ProjectSection(ProjectDependencies) = postProject
Expand Down Expand Up @@ -104,7 +104,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Chakra.Runtime.Math", "..\l
{2F6A1847-BFAF-4B8A-9463-AC39FB46B96A} = {2F6A1847-BFAF-4B8A-9463-AC39FB46B96A}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Chakra.Common.Util", "..\lib\Common\Util\Chakra.Common.Util.vcxproj", "{6979EC58-7A28-465C-A694-F3323A1F5401}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Chakra.Common.Util", "..\lib\Common\util\Chakra.Common.Util.vcxproj", "{6979EC58-7A28-465C-A694-F3323A1F5401}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Core", "Core", "{158C8616-750C-4E0E-BD3D-5721D3C555E6}"
EndProject
Expand Down Expand Up @@ -153,6 +153,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CoreManifests", "..\manifes
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pal", "..\pal\pal.vcxproj", "{02D4FD92-AD34-40CA-85DF-4D6C7E3A1F22}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "wabt", "..\lib\wabt\wabt.vcxproj", "{F48B3491-81DF-4F49-B35F-3308CBE6A379}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM = Debug|ARM
Expand Down Expand Up @@ -697,6 +699,19 @@ Global
{02D4FD92-AD34-40CA-85DF-4D6C7E3A1F22}.Test|ARM.ActiveCfg = Release|x64
{02D4FD92-AD34-40CA-85DF-4D6C7E3A1F22}.Test|x64.ActiveCfg = Release|x64
{02D4FD92-AD34-40CA-85DF-4D6C7E3A1F22}.Test|x86.ActiveCfg = Release|Win32
{F48B3491-81DF-4F49-B35F-3308CBE6A379}.Debug|ARM.ActiveCfg = Debug|ARM
{F48B3491-81DF-4F49-B35F-3308CBE6A379}.Debug|x64.ActiveCfg = Debug|x64
{F48B3491-81DF-4F49-B35F-3308CBE6A379}.Debug|x64.Build.0 = Debug|x64
{F48B3491-81DF-4F49-B35F-3308CBE6A379}.Debug|x86.ActiveCfg = Debug|Win32
{F48B3491-81DF-4F49-B35F-3308CBE6A379}.Debug|x86.Build.0 = Debug|Win32
{F48B3491-81DF-4F49-B35F-3308CBE6A379}.Release|ARM.ActiveCfg = Release|ARM
{F48B3491-81DF-4F49-B35F-3308CBE6A379}.Release|x64.ActiveCfg = Release|x64
{F48B3491-81DF-4F49-B35F-3308CBE6A379}.Release|x86.ActiveCfg = Release|Win32
{F48B3491-81DF-4F49-B35F-3308CBE6A379}.Test|ARM.ActiveCfg = Test|ARM
{F48B3491-81DF-4F49-B35F-3308CBE6A379}.Test|x64.ActiveCfg = Test|x64
{F48B3491-81DF-4F49-B35F-3308CBE6A379}.Test|x64.Build.0 = Test|x64
{F48B3491-81DF-4F49-B35F-3308CBE6A379}.Test|x86.ActiveCfg = Test|Win32
{F48B3491-81DF-4F49-B35F-3308CBE6A379}.Test|x86.Build.0 = Test|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -738,5 +753,6 @@ Global
{984BE359-87F7-4BD7-A823-AD8A59739801} = {158C8616-750C-4E0E-BD3D-5721D3C555E6}
{2F6A1847-BFAF-4B8A-9463-AC39FB46B96A} = {984BE359-87F7-4BD7-A823-AD8A59739801}
{02D4FD92-AD34-40CA-85DF-4D6C7E3A1F22} = {546172B2-F084-4363-BE35-06010663D319}
{F48B3491-81DF-4F49-B35F-3308CBE6A379} = {D8216B93-BD6E-4293-8D98-79CEF7CF66BC}
EndGlobalSection
EndGlobal
26 changes: 20 additions & 6 deletions deps/chakrashim/core/Build/Common.Build.Default.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@

<!-- Auto tool set selection -->
<PropertyGroup>
<PlatformToolset Condition="'$(VisualStudioVersion)'=='11.0' or '$(MSBuildToolsVersion)'=='11.0'">v110</PlatformToolset>
<PlatformToolset Condition="'$(VisualStudioVersion)'=='12.0' or '$(MSBuildToolsVersion)'=='12.0'">v120</PlatformToolset>
<PlatformToolset Condition="'$(VisualStudioVersion)'=='14.0' or '$(MSBuildToolsVersion)'=='14.0'">v140</PlatformToolset>
<PlatformToolset Condition="'$(VisualStudioVersion)'=='15.0' or '$(MSBuildToolsVersion)'=='15.0'">v141</PlatformToolset>
<BuildToolVersion>$(VisualStudioVersion)</BuildToolVersion>
<BuildToolVersion Condition="'$(BuildToolVersion)'==''">$(MSBuildToolsVersion)</BuildToolVersion>
<PlatformToolset Condition="'$(BuildToolVersion)'=='11.0'">v110</PlatformToolset>
<PlatformToolset Condition="'$(BuildToolVersion)'=='12.0'">v120</PlatformToolset>
<PlatformToolset Condition="'$(BuildToolVersion)'=='14.0'">v140</PlatformToolset>
<PlatformToolset Condition="'$(BuildToolVersion)'=='15.0'">v141</PlatformToolset>
</PropertyGroup>

<!-- Default ChakraDevConfigDir -->
Expand All @@ -27,8 +29,9 @@

<!-- Common build settings -->
<PropertyGroup>
<OptimizedBuild />
<OptimizedBuild Condition="'$(Configuration)'=='Release' or '$(Configuration)'=='Test'">true</OptimizedBuild>
<DebugBuild />
<DebugBuild Condition="'$(Configuration)'!='Release' and '$(Configuration)'!='Test'">true</DebugBuild>
<OptimizedBuild Condition="'$(OptimizedBuild)'=='' and '$(DebugBuild)'!='true'">true</OptimizedBuild>
<WindowsSDKDesktopARMSupport Condition="'$(Platform)'=='ARM'">true</WindowsSDKDesktopARMSupport>
</PropertyGroup>
<PropertyGroup Label="Configuration">
Expand Down Expand Up @@ -82,4 +85,15 @@
<ChakraParserIntDir>$(IntDir)..\Chakra.Parser</ChakraParserIntDir>
<ChakraJITIDLIntDir>$(IntDir)..\Chakra.JITIDL</ChakraJITIDLIntDir>
</PropertyGroup>

<!-- Determine if the build should include wabt -->
<PropertyGroup>
<BuildWabt>true</BuildWabt>
<!-- Only build wabt on x64/x86, the only platform supporting WebAssembly at this time -->
<BuildWabt Condition="'$(Platform)'!='x64' and '$(Platform)'!='win32'">false</BuildWabt>
<!-- Wabt is a test tool, do not include it in the Release build -->
<BuildWabt Condition="'$(Configuration)'!='Debug' and '$(Configuration)'!='Test'">false</BuildWabt>
<!-- Wabt uses c++11 features only available in recent toolset (v140 and above) -->
<BuildWabt Condition="'$(BuildToolVersion)'&lt;'14.0'">false</BuildWabt>
</PropertyGroup>
</Project>
32 changes: 26 additions & 6 deletions deps/chakrashim/core/Build/Common.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@

<ProgramDataBaseFileName Condition="'$(ConfigurationType)'=='StaticLibrary'">$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
<ProgramDataBaseFileName Condition="'$(ConfigurationType)'!='StaticLibrary'">$(IntDir)</ProgramDataBaseFileName>

<!-- ======== For Code Covearge ======== -->
<PreprocessorDefinitions Condition="'$(ENABLE_CODECOVERAGE)'=='true'">
%(PreprocessorDefinitions);
BYTECODE_TESTING=1
</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(BuildWabt)'=='true'">%(PreprocessorDefinitions);CAN_BUILD_WABT=1</PreprocessorDefinitions>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions Condition="'$(ChakraVersionBuildNumber)'!=''">%(PreprocessorDefinitions);CHAKRA_VERSION_BUILD_NUMBER=$(ChakraVersionBuildNumber)</PreprocessorDefinitions>
Expand All @@ -93,7 +100,7 @@
<Link>
<TreatLinkerWarningAsErrors>true</TreatLinkerWarningAsErrors>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding Condition="'$(OptimizedBuild)'=='true'">true</EnableCOMDATFolding>
<EnableCOMDATFolding Condition="'$(OptimizedBuild)'=='true' AND '$(ENABLE_CODECOVERAGE)'!='true'">true</EnableCOMDATFolding>
<OptimizeReferences Condition="'$(OptimizedBuild)'=='true'">true</OptimizeReferences>

<MinimumRequiredVersion Condition="'$(NtTargetVersion)'=='$(NtTargetVersion_Win7)'" >6.1</MinimumRequiredVersion>
Expand All @@ -104,16 +111,31 @@
<AdditionalOptions>%(AdditionalOptions) /release</AdditionalOptions>
<!-- Ignore Linker warning: This object file does not define any previously undefined public symbols -->
<AdditionalOptions>%(AdditionalOptions) /ignore:4221</AdditionalOptions>
<!-- ======== For Code Covearge ======== -->
<AdditionalOptions Condition="'$(ENABLE_CODECOVERAGE)'=='true'">%(AdditionalOptions) /DEBUGTYPE:CV,FIXUP</AdditionalOptions>
</Link>
<Lib>
<!-- Ignore Linker warning: This object file does not define any previously undefined public symbols -->
<AdditionalOptions>%(AdditionalOptions) /ignore:4221</AdditionalOptions>
</Lib>
</ItemDefinitionGroup>
<!-- chk build flags -->
<ItemDefinitionGroup Condition="'$(OptimizedBuild)'!='true'">

<!--Optimization flags-->
<ItemDefinitionGroup Condition="'$(OptimizedBuild)'!='true' OR '$(ENABLE_CODECOVERAGE)'=='true'">
<ClCompile>
<Optimization>Disabled</Optimization>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(OptimizedBuild)'=='true' AND '$(ENABLE_CODECOVERAGE)'!='true'">
<ClCompile>
<Optimization>MaxSpeed</Optimization>
<WholeProgramOptimization>true</WholeProgramOptimization>
</ClCompile>
</ItemDefinitionGroup>

<!-- chk build flags -->
<ItemDefinitionGroup Condition="'$(DebugBuild)'=='true'">
<ClCompile>
<PreprocessorDefinitions>%(PreprocessorDefinitions);_DEBUG;DBG;DBG_DUMP</PreprocessorDefinitions>
</ClCompile>
<ResourceCompile>
Expand All @@ -124,12 +146,10 @@
</Midl>
</ItemDefinitionGroup>
<!-- fre and fretest build flags -->
<ItemDefinitionGroup Condition="'$(OptimizedBuild)'=='true'">
<ItemDefinitionGroup Condition="'$(DebugBuild)'!='true'">
<ClCompile>
<PreprocessorDefinitions>%(PreprocessorDefinitions);NDEBUG</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)'=='Test'">%(PreprocessorDefinitions);ENABLE_DEBUG_CONFIG_OPTIONS=1</PreprocessorDefinitions>
<Optimization>MaxSpeed</Optimization>
<WholeProgramOptimization>true</WholeProgramOptimization>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions Condition="'$(Configuration)'=='Test'">%(PreprocessorDefinitions);ENABLE_DEBUG_CONFIG_OPTIONS=1</PreprocessorDefinitions>
Expand Down
2 changes: 1 addition & 1 deletion deps/chakrashim/core/Build/NuGet/.pack-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.3
1.7.0
Loading

0 comments on commit a932bee

Please sign in to comment.