diff options
author | jfrijters <jfrijters> | 2011-03-11 18:15:25 +0300 |
---|---|---|
committer | jfrijters <jfrijters> | 2011-03-11 18:15:25 +0300 |
commit | 31f752b003187987db76c29918410a955b004478 (patch) | |
tree | 95f2674d746567f3ff821706ce93f571a9954662 /reflect/Emit | |
parent | e33cc869b91c70b1528831b98ca3a701e810633e (diff) |
Added API extension to get/set stack reserve.
Diffstat (limited to 'reflect/Emit')
-rw-r--r-- | reflect/Emit/ModuleBuilder.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/reflect/Emit/ModuleBuilder.cs b/reflect/Emit/ModuleBuilder.cs index f5f7a68d..2dca991c 100644 --- a/reflect/Emit/ModuleBuilder.cs +++ b/reflect/Emit/ModuleBuilder.cs @@ -40,6 +40,7 @@ namespace IKVM.Reflection.Emit private static readonly bool usePublicKeyAssemblyReference = false; private Guid mvid = Guid.NewGuid(); private long imageBaseAddress = 0x00400000; + private long stackReserve = -1; private readonly AssemblyBuilder asm; internal readonly string moduleName; internal readonly string fileName; @@ -1182,6 +1183,21 @@ namespace IKVM.Reflection.Emit return imageBaseAddress; } + public override long __StackReserve + { + get { return stackReserve; } + } + + public void __SetStackReserve(long stackReserve) + { + this.stackReserve = stackReserve; + } + + internal ulong GetStackReserve(ulong defaultValue) + { + return stackReserve == -1 ? defaultValue : (ulong)stackReserve; + } + public override int MDStreamVersion { get { return asm.mdStreamVersion; } |