diff options
author | Toni Solarin-Sodara <toni.edward@outlook.com> | 2018-08-14 19:50:42 +0300 |
---|---|---|
committer | Michal Strehovský <MichalStrehovsky@users.noreply.github.com> | 2018-08-14 19:50:42 +0300 |
commit | c214863ad3e4da15fb3b56fa9c82ef359fee55fe (patch) | |
tree | 576cbddfcd403739018cc219b4593735ac0d3ff1 /src/System.Private.Jit | |
parent | d55ebfd33d4d45afbdf1a3adedc32a839c5a4a69 (diff) |
Preliminary Interpreter Support (#6182)
Diffstat (limited to 'src/System.Private.Jit')
-rw-r--r-- | src/System.Private.Jit/src/Internal/Runtime/CompilerHelpers/LibraryInitializer.cs | 17 | ||||
-rw-r--r-- | src/System.Private.Jit/src/System.Private.Jit.csproj | 7 |
2 files changed, 21 insertions, 3 deletions
diff --git a/src/System.Private.Jit/src/Internal/Runtime/CompilerHelpers/LibraryInitializer.cs b/src/System.Private.Jit/src/Internal/Runtime/CompilerHelpers/LibraryInitializer.cs new file mode 100644 index 000000000..ff2abd9e8 --- /dev/null +++ b/src/System.Private.Jit/src/Internal/Runtime/CompilerHelpers/LibraryInitializer.cs @@ -0,0 +1,17 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Internal.Runtime.JitSupport; +using Internal.Runtime.TypeLoader; + +namespace Internal.Runtime.CompilerHelpers +{ + public class LibraryInitializer + { + public static void InitializeLibrary() + { + MethodExecutionStrategy.GlobalExecutionStrategy = new RyuJitExecutionStrategy(); + } + } +} diff --git a/src/System.Private.Jit/src/System.Private.Jit.csproj b/src/System.Private.Jit/src/System.Private.Jit.csproj index f49426928..942a0b74b 100644 --- a/src/System.Private.Jit/src/System.Private.Jit.csproj +++ b/src/System.Private.Jit/src/System.Private.Jit.csproj @@ -1,4 +1,4 @@ -<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build"> +<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build"> <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> <PropertyGroup> <AssemblyName>System.Private.Jit</AssemblyName> @@ -31,7 +31,7 @@ </ProjectReference> <ProjectReference Include="..\..\System.Private.Reflection.Metadata\src\System.Private.Reflection.Metadata.csproj" /> <ProjectReference Include="..\..\System.Private.TypeLoader\src\System.Private.TypeLoader.Experimental.csproj" /> - <ProjectReference Include="..\..\System.Private.Interop\src\System.Private.Interop.csproj" /> + <ProjectReference Include="..\..\System.Private.Interop\src\System.Private.Interop.Experimental.csproj" /> </ItemGroup> <PropertyGroup> <NativeFormatCommonPath>..\..\Common\src\Internal\NativeFormat</NativeFormatCommonPath> @@ -43,6 +43,7 @@ <JitInterfaceBasePath>..\..\JitInterface\src</JitInterfaceBasePath> </PropertyGroup> <ItemGroup> + <Compile Include="Internal\Runtime\CompilerHelpers\LibraryInitializer.cs" /> <Compile Include="Internal\Runtime\JitSupport\ExternObjectSymbolNode.cs" /> <Compile Include="Internal\Runtime\JitSupport\FrozenStrings.cs" /> <Compile Include="Internal\Runtime\JitSupport\JitCompilation.cs" /> @@ -155,4 +156,4 @@ <Compile Include="Internal\Runtime\JitSupport\VirtualMethodSlotHelper.cs" /> </ItemGroup> <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> -</Project> +</Project>
\ No newline at end of file |