You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.2 KiB
44 lines
1.2 KiB
using System; |
|
using System.Collections.Generic; |
|
using System.Linq; |
|
using System.Text; |
|
|
|
namespace ILRuntime.Runtime |
|
{ |
|
public static class ILRuntimeJITFlags |
|
{ |
|
public const int None = 0; |
|
/// <summary> |
|
/// Method will be JIT when method is called multiple time |
|
/// </summary> |
|
public const int JITOnDemand = 1; |
|
/// <summary> |
|
/// Method will be JIT immediately when called, instead of progressively warm up |
|
/// </summary> |
|
public const int JITImmediately = 2; |
|
/// <summary> |
|
/// Method will not be JIT when called |
|
/// </summary> |
|
public const int NoJIT = 4; |
|
/// <summary> |
|
/// Method will always be inlined when called |
|
/// </summary> |
|
public const int ForceInline = 8; |
|
} |
|
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, AllowMultiple = false, Inherited = false)] |
|
public class ILRuntimeJITAttribute : Attribute |
|
{ |
|
int flags; |
|
|
|
public int Flags { get { return flags; } } |
|
public ILRuntimeJITAttribute() |
|
{ |
|
this.flags = ILRuntimeJITFlags.JITOnDemand; |
|
} |
|
|
|
public ILRuntimeJITAttribute(int flags) |
|
{ |
|
this.flags = flags; |
|
} |
|
} |
|
}
|
|
|