summaryrefslogtreecommitdiff
path: root/Binaries
diff options
context:
space:
mode:
authorGravatar Rustan Leino <leino@microsoft.com>2012-01-04 16:03:05 -0800
committerGravatar Rustan Leino <leino@microsoft.com>2012-01-04 16:03:05 -0800
commitea80326b2b2744221e5635b423ad6c6afe0845c7 (patch)
treed70286ecf6156f95ebf92a80773f2973db3aba22 /Binaries
parentd9de0e5c94b7077830c7c9f92ac234bca8137f0d (diff)
Dafny: added comment about how to mark the run-time expression-sequencing method as a good candidate for inlining (supported in .NET 4.5)
Diffstat (limited to 'Binaries')
-rw-r--r--Binaries/DafnyRuntime.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Binaries/DafnyRuntime.cs b/Binaries/DafnyRuntime.cs
index 36341f68..2f8d2764 100644
--- a/Binaries/DafnyRuntime.cs
+++ b/Binaries/DafnyRuntime.cs
@@ -455,6 +455,9 @@ namespace Dafny
public static Sequence<T> SeqFromArray<T>(T[] array) {
return new Sequence<T>(array);
}
+ // In .NET version 4.5, it it possible to mark a method with "AggressiveInlining", which says to inline the
+ // method if possible. Method "ExpressionSequence" would be a good candidate for it:
+ // [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
public static U ExpressionSequence<T, U>(T t, U u)
{
return u;