Exemple #1
0
 internal protected override void EmitBody(CodeGen cg)
 {
     if (!cg.HasAllocator)
     {
         // In the interpreted case, we do not have an allocator yet
         Debug.Assert(cg.InterpretedMode);
         cg.Allocator = CompilerHelpers.CreateFrameAllocator();
     }
     cg.Allocator.Block = this;
     CreateEnvironmentFactory(true, cg);
     EmitGeneratorBody(cg);
     cg.EmitReturn();
 }