예제 #1
0
 public void LoadCompiledLambdaPointer(CompiledLambda compiledLambda)
 {
     if (TypeBuilder != null)
     {
         Il.Ldftn(compiledLambda.Method);
     }
     else
     {
         var stopwatch = Stopwatch.StartNew();
         var pointer   = DynamicMethodInvokerBuilder.DynamicMethodPointerExtractor((DynamicMethod)compiledLambda.Method);
         LambdaCompiler.TotalJITCompilationTime += stopwatch.Elapsed.TotalSeconds;
         Il.Ldc_IntPtr(pointer);
     }
 }