using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ILRuntime.Runtime { public static class ILRuntimeJITFlags { public const int None = 0; /// /// Method will be JIT when method is called multiple time /// public const int JITOnDemand = 1; /// /// Method will be JIT immediately when called, instead of progressively warm up /// public const int JITImmediately = 2; /// /// Method will not be JIT when called /// public const int NoJIT = 4; /// /// Method will always be inlined when called /// 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; } } }