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