private static void EmitConstantsArray(LambdaCompiler lc) { Debug.Assert(lc.CanEmitBoundConstants); // this should've been checked already lc.EmitClosureArgument(); lc.IL.Emit(OpCodes.Ldfld, typeof(Closure).GetField("Constants")); }
private void EmitClosureToVariable(LambdaCompiler lc, HoistedLocals locals) { lc.EmitClosureArgument(); lc.IL.Emit(OpCodes.Ldfld, Closure_Locals); AddLocal(lc, locals.SelfVariable); EmitSet(locals.SelfVariable); }
private void EmitClosureToVariable(LambdaCompiler lc, HoistedLocals locals) { lc.EmitClosureArgument(); lc.IL.Emit(OpCodes.Ldfld, typeof(Closure).GetField("Locals")); AddLocal(lc, locals.SelfVariable); EmitSet(locals.SelfVariable); }
private static void EmitConstantsArray(LambdaCompiler lc) { Debug.Assert(lc.CanEmitBoundConstants); // this should've been checked already lc.EmitClosureArgument(); lc.IL.Emit(OpCodes.Ldfld, CachedReflectionInfo.ClosureConstants); }
private static void EmitConstantsArray(LambdaCompiler lc) { #if FEATURE_COMPILE_TO_METHODBUILDER Debug.Assert(lc.CanEmitBoundConstants); // this should've been checked already #endif lc.EmitClosureArgument(); lc.IL.Emit(OpCodes.Ldfld, Closure_Constants); }
private void EmitClosureToVariable(LambdaCompiler lc, HoistedLocals locals) { lc.EmitClosureArgument(); lc.IL.Emit(OpCodes.Ldfld, typeof(Closure).GetField("Locals")); this.AddLocal(lc, locals.SelfVariable); this.EmitSet(locals.SelfVariable); }
private void EmitClosureToVariable(LambdaCompiler lc, HoistedLocals locals) { lc.EmitClosureArgument(); lc.IL.Emit(OpCodes.Ldfld, Closure_Locals); AddLocal(lc, locals.SelfVariable); EmitSet(locals.SelfVariable); }
private static void EmitConstantsArray(LambdaCompiler lc) { lc.EmitClosureArgument(); lc.IL.Emit(OpCodes.Ldfld, typeof(Closure).GetField("Constants")); }