101 references to Emit
System.Linq.Expressions (101)
System\Linq\Expressions\Interpreter\InstructionList.cs (94)
336
Emit
(s_true ??= new LoadObjectInstruction(Utils.BoxedTrue));
340
Emit
(s_false ??= new LoadObjectInstruction(Utils.BoxedFalse));
348
Emit
(s_null ??= new LoadObjectInstruction(null));
366
Emit
(s_Ints[i] ??= new LoadObjectInstruction(value));
382
Emit
(s_loadObjectCached[index] ??= new LoadCachedObjectInstruction(index));
386
Emit
(new LoadObjectInstruction(value));
392
Emit
(DupInstruction.Instance);
397
Emit
(PopInstruction.Instance);
434
Emit
(s_loadLocal[index] ??= new LoadLocalInstruction(index));
438
Emit
(new LoadLocalInstruction(index));
444
Emit
(LoadLocalBoxed(index));
467
Emit
(s_loadLocalFromClosure[index] ??= new LoadLocalFromClosureInstruction(index));
471
Emit
(new LoadLocalFromClosureInstruction(index));
481
Emit
(s_loadLocalFromClosureBoxed[index] ??= new LoadLocalFromClosureBoxedInstruction(index));
485
Emit
(new LoadLocalFromClosureBoxedInstruction(index));
495
Emit
(s_assignLocal[index] ??= new AssignLocalInstruction(index));
499
Emit
(new AssignLocalInstruction(index));
509
Emit
(s_storeLocal[index] ??= new StoreLocalInstruction(index));
513
Emit
(new StoreLocalInstruction(index));
519
Emit
(AssignLocalBoxed(index));
538
Emit
(StoreLocalBoxed(index));
561
Emit
(s_assignLocalToClosure[index] ??= new AssignLocalToClosureInstruction(index));
565
Emit
(new AssignLocalToClosureInstruction(index));
580
Emit
(new InitializeLocalInstruction.ImmutableValue(index, value));
584
Emit
(new InitializeLocalInstruction.MutableValue(index, type));
588
Emit
(InitReference(index));
594
Emit
(Parameter(index));
619
Emit
(new RuntimeVariablesInstruction(count));
628
Emit
(GetArrayItemInstruction.Instance);
633
Emit
(SetArrayItemInstruction.Instance);
637
public void EmitNewArray(Type elementType) =>
Emit
(new NewArrayInstruction(elementType));
642
Emit
(new NewArrayBoundsInstruction(elementType, rank));
648
Emit
(new NewArrayInitInstruction(elementType, elementCount));
657
Emit
(@checked ? AddOvfInstruction.Create(type) : AddInstruction.Create(type));
662
Emit
(@checked ? SubOvfInstruction.Create(type) : SubInstruction.Create(type));
667
Emit
(@checked ? MulOvfInstruction.Create(type) : MulInstruction.Create(type));
672
Emit
(DivInstruction.Create(type));
677
Emit
(ModuloInstruction.Create(type));
686
Emit
(ExclusiveOrInstruction.Create(type));
691
Emit
(AndInstruction.Create(type));
696
Emit
(OrInstruction.Create(type));
701
Emit
(LeftShiftInstruction.Create(type));
706
Emit
(RightShiftInstruction.Create(type));
711
Emit
(EqualInstruction.Create(type, liftedToNull));
716
Emit
(NotEqualInstruction.Create(type, liftedToNull));
721
Emit
(LessThanInstruction.Create(type, liftedToNull));
726
Emit
(LessThanOrEqualInstruction.Create(type, liftedToNull));
731
Emit
(GreaterThanInstruction.Create(type, liftedToNull));
736
Emit
(GreaterThanOrEqualInstruction.Create(type, liftedToNull));
745
Emit
(new NumericConvertInstruction.Checked(from, to, isLiftedToNull));
750
Emit
(new NumericConvertInstruction.Unchecked(from, to, isLiftedToNull));
755
Emit
(new NumericConvertInstruction.ToUnderlying(to, isLiftedToNull));
760
Emit
(CastInstruction.Create(toType));
765
Emit
(new CastToEnumInstruction(toType));
771
Emit
(new CastReferenceToEnumInstruction(toType));
780
Emit
(NotInstruction.Create(type));
789
Emit
(new DefaultValueInstruction(type));
794
Emit
(new NewInstruction(constructorInfo, parameters.Length));
799
Emit
(new ByRefNewInstruction(constructorInfo, parameters.Length, updaters));
804
Emit
(new CreateDelegateInstruction(creator));
809
Emit
(TypeEqualsInstruction.Instance);
814
Emit
(ArrayLengthInstruction.Instance);
819
Emit
(NegateInstruction.Create(type));
824
Emit
(NegateCheckedInstruction.Create(type));
829
Emit
(IncrementInstruction.Create(type));
834
Emit
(DecrementInstruction.Create(type));
839
Emit
(new TypeIsInstruction(type));
844
Emit
(new TypeAsInstruction(type));
855
Emit
(GetLoadField(field));
882
Emit
(new StoreStaticFieldInstruction(field));
886
Emit
(new StoreFieldInstruction(field));
897
Emit
(CallInstruction.Create(method, parameters));
902
Emit
(new ByRefMethodInfoCallInstruction(method, method.IsStatic ? parameters.Length : parameters.Length + 1, byrefArgs));
907
Emit
(NullableMethodCallInstruction.Create(method.Name, parameters.Length, method));
976
Emit
(GotoInstruction.Create(EnsureLabelIndex(label), hasResult, hasValue, labelTargetGetsValue));
981
Emit
(instruction);
1012
Emit
(ThrowInstruction.Throw);
1017
Emit
(ThrowInstruction.VoidThrow);
1022
Emit
(ThrowInstruction.Rethrow);
1027
Emit
(ThrowInstruction.VoidRethrow);
1032
Emit
(EnterTryCatchFinallyInstruction.CreateTryFinally(EnsureLabelIndex(finallyStartLabel)));
1037
Emit
(EnterTryCatchFinallyInstruction.CreateTryCatch());
1043
Emit
(instruction);
1049
Emit
(EnterFinallyInstruction.Create(EnsureLabelIndex(finallyStartLabel)));
1054
Emit
(LeaveFinallyInstruction.Instance);
1059
Emit
(EnterFaultInstruction.Create(EnsureLabelIndex(faultStartLabel)));
1064
Emit
(LeaveFaultInstruction.Instance);
1069
Emit
(EnterExceptionFilterInstruction.Instance);
1074
Emit
(LeaveExceptionFilterInstruction.Instance);
1079
Emit
(EnterExceptionHandlerInstruction.NonVoid);
1084
Emit
(EnterExceptionHandlerInstruction.Void);
1089
Emit
(LeaveExceptionHandlerInstruction.Create(EnsureLabelIndex(tryExpressionEndLabel), hasValue));
1094
Emit
(new IntSwitchInstruction<T>(cases));
1099
Emit
(new StringSwitchInstruction(cases, nullCase));
System\Linq\Expressions\Interpreter\LightCompiler.cs (7)
424
_instructions.
Emit
(ValueTypeCopyInstruction.Instruction);
1080
_instructions.
Emit
(NullableMethodCallInstruction.CreateGetValue());
1135
_instructions.
Emit
(NullableMethodCallInstruction.CreateGetValue());
1170
_instructions.
Emit
(NullableMethodCallInstruction.CreateGetValue());
1204
_instructions.
Emit
(NullCheckInstruction.Instance);
2783
_instructions.
Emit
(new QuoteInstruction(unary.Operand, mapping.Count > 0 ? mapping : null));
2894
_instructions.
Emit
(NullCheckInstruction.Instance);