Compiler\TypePreinit.cs (42)
334instance = new StringInstance(context.GetWellKnownType(WellKnownType.String), s);
1587ILOpcode.stelem_i => context.GetWellKnownType(WellKnownType.IntPtr),
1588ILOpcode.stelem_i1 => context.GetWellKnownType(WellKnownType.SByte),
1589ILOpcode.stelem_i2 => context.GetWellKnownType(WellKnownType.Int16),
1590ILOpcode.stelem_i4 => context.GetWellKnownType(WellKnownType.Int32),
1591ILOpcode.stelem_i8 => context.GetWellKnownType(WellKnownType.Int64),
1592ILOpcode.stelem_r4 => context.GetWellKnownType(WellKnownType.Single),
1593ILOpcode.stelem_r8 => context.GetWellKnownType(WellKnownType.Double),
1638ILOpcode.ldelem_i => context.GetWellKnownType(WellKnownType.IntPtr),
1639ILOpcode.ldelem_i1 => context.GetWellKnownType(WellKnownType.SByte),
1640ILOpcode.ldelem_u1 => context.GetWellKnownType(WellKnownType.Byte),
1641ILOpcode.ldelem_i2 => context.GetWellKnownType(WellKnownType.Int16),
1642ILOpcode.ldelem_u2 => context.GetWellKnownType(WellKnownType.UInt16),
1643ILOpcode.ldelem_i4 => context.GetWellKnownType(WellKnownType.Int32),
1644ILOpcode.ldelem_u4 => context.GetWellKnownType(WellKnownType.UInt32),
1645ILOpcode.ldelem_i8 => context.GetWellKnownType(WellKnownType.Int64),
1646ILOpcode.ldelem_r4 => context.GetWellKnownType(WellKnownType.Single),
1647ILOpcode.ldelem_r8 => context.GetWellKnownType(WellKnownType.Double),
1736ILOpcode.ldind_i1 => context.GetWellKnownType(WellKnownType.SByte),
1737ILOpcode.ldind_u1 => context.GetWellKnownType(WellKnownType.Byte),
1738ILOpcode.ldind_i2 => context.GetWellKnownType(WellKnownType.Int16),
1739ILOpcode.ldind_u2 => context.GetWellKnownType(WellKnownType.UInt16),
1740ILOpcode.ldind_i4 => context.GetWellKnownType(WellKnownType.Int32),
1741ILOpcode.ldind_u4 => context.GetWellKnownType(WellKnownType.UInt32),
1742ILOpcode.ldind_i8 => context.GetWellKnownType(WellKnownType.Int64),
1785ILOpcode.stind_i1 => stack.PopIntoLocation(context.GetWellKnownType(WellKnownType.Byte)),
1786ILOpcode.stind_i2 => stack.PopIntoLocation(context.GetWellKnownType(WellKnownType.UInt16)),
1787ILOpcode.stind_i4 => stack.PopIntoLocation(context.GetWellKnownType(WellKnownType.UInt32)),
1788ILOpcode.stind_i8 => stack.PopIntoLocation(context.GetWellKnownType(WellKnownType.UInt64)),
1789ILOpcode.stind_i => stack.PopIntoLocation(context.GetWellKnownType(WellKnownType.UIntPtr)),
2119if (!locationType.IsWellKnownType(WellKnownType.Int64)
2120&& !locationType.IsWellKnownType(WellKnownType.UInt64))
2127if (!locationType.IsWellKnownType(WellKnownType.Int32)
2128&& !locationType.IsWellKnownType(WellKnownType.UInt32))
2156&& !locationType.IsWellKnownType(WellKnownType.IntPtr)
2157&& !locationType.IsWellKnownType(WellKnownType.UIntPtr))
2181if (locationType.IsWellKnownType(WellKnownType.Double))
2185else if (!locationType.IsWellKnownType(WellKnownType.Single))
3493Debug.Assert(lengthField.FieldType.IsWellKnownType(WellKnownType.Int32)
3499Debug.Assert(firstCharField.FieldType.IsWellKnownType(WellKnownType.Char)
3671&& (field.FieldType.IsWellKnownType(WellKnownType.IntPtr) || field.FieldType.IsWellKnownType(WellKnownType.UIntPtr)))
parent\parent\Common\TypeSystem\IL\ILImporter.cs (71)
511ImportLoadIndirect(WellKnownType.SByte);
514ImportLoadIndirect(WellKnownType.Byte);
517ImportLoadIndirect(WellKnownType.Int16);
520ImportLoadIndirect(WellKnownType.UInt16);
523ImportLoadIndirect(WellKnownType.Int32);
526ImportLoadIndirect(WellKnownType.UInt32);
529ImportLoadIndirect(WellKnownType.Int64);
532ImportLoadIndirect(WellKnownType.IntPtr);
535ImportLoadIndirect(WellKnownType.Single);
538ImportLoadIndirect(WellKnownType.Double);
547ImportStoreIndirect(WellKnownType.SByte);
550ImportStoreIndirect(WellKnownType.Int16);
553ImportStoreIndirect(WellKnownType.Int32);
556ImportStoreIndirect(WellKnownType.Int64);
559ImportStoreIndirect(WellKnownType.Single);
562ImportStoreIndirect(WellKnownType.Double);
586ImportConvert(WellKnownType.SByte, false, false);
589ImportConvert(WellKnownType.Int16, false, false);
592ImportConvert(WellKnownType.Int32, false, false);
595ImportConvert(WellKnownType.Int64, false, false);
598ImportConvert(WellKnownType.Single, false, false);
601ImportConvert(WellKnownType.Double, false, false);
604ImportConvert(WellKnownType.UInt32, false, true);
607ImportConvert(WellKnownType.UInt64, false, true);
629ImportConvert(WellKnownType.Double, false, true);
660ImportConvert(WellKnownType.SByte, true, true);
663ImportConvert(WellKnownType.Int16, true, true);
666ImportConvert(WellKnownType.Int32, true, true);
669ImportConvert(WellKnownType.Int64, true, true);
672ImportConvert(WellKnownType.Byte, true, true);
675ImportConvert(WellKnownType.UInt16, true, true);
678ImportConvert(WellKnownType.UInt32, true, true);
681ImportConvert(WellKnownType.UInt64, true, true);
684ImportConvert(WellKnownType.IntPtr, true, true);
687ImportConvert(WellKnownType.UIntPtr, true, true);
702ImportLoadElement(WellKnownType.SByte);
705ImportLoadElement(WellKnownType.Byte);
708ImportLoadElement(WellKnownType.Int16);
711ImportLoadElement(WellKnownType.UInt16);
714ImportLoadElement(WellKnownType.Int32);
717ImportLoadElement(WellKnownType.UInt32);
720ImportLoadElement(WellKnownType.Int64);
723ImportLoadElement(WellKnownType.IntPtr);
726ImportLoadElement(WellKnownType.Single);
729ImportLoadElement(WellKnownType.Double);
735ImportStoreElement(WellKnownType.IntPtr);
738ImportStoreElement(WellKnownType.SByte);
741ImportStoreElement(WellKnownType.Int16);
744ImportStoreElement(WellKnownType.Int32);
747ImportStoreElement(WellKnownType.Int64);
750ImportStoreElement(WellKnownType.Single);
753ImportStoreElement(WellKnownType.Double);
768ImportConvert(WellKnownType.SByte, true, false);
771ImportConvert(WellKnownType.Byte, true, true);
774ImportConvert(WellKnownType.Int16, true, false);
777ImportConvert(WellKnownType.UInt16, true, true);
780ImportConvert(WellKnownType.Int32, true, false);
783ImportConvert(WellKnownType.UInt32, true, true);
786ImportConvert(WellKnownType.Int64, true, false);
789ImportConvert(WellKnownType.UInt64, true, true);
804ImportConvert(WellKnownType.UInt16, false, true);
807ImportConvert(WellKnownType.Byte, false, true);
810ImportConvert(WellKnownType.IntPtr, false, false);
813ImportConvert(WellKnownType.IntPtr, true, false);
816ImportConvert(WellKnownType.UIntPtr, true, true);
845ImportStoreIndirect(WellKnownType.IntPtr);
848ImportConvert(WellKnownType.UIntPtr, false, true);
950private void ImportLoadIndirect(WellKnownType wellKnownType)
955private void ImportStoreIndirect(WellKnownType wellKnownType)
960private void ImportLoadElement(WellKnownType wellKnownType)
965private void ImportStoreElement(WellKnownType wellKnownType)
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.Aot.cs (19)
341var vLength = emitter.NewLocal(Context.GetWellKnownType(WellKnownType.Int32));
415ILLocalVariable vIndex = emitter.NewLocal(Context.GetWellKnownType(WellKnownType.Int32));
416ILLocalVariable vLength = emitter.NewLocal(Context.GetWellKnownType(WellKnownType.Int32));
491ILLocalVariable vLength = emitter.NewLocal(Context.GetWellKnownType(WellKnownType.Int32));
502var vIndex = emitter.NewLocal(Context.GetWellKnownType(WellKnownType.Int32));
874ILLocalVariable lSize = emitter.NewLocal(Context.GetWellKnownType(WellKnownType.Int32));
976var int32Type = Context.GetWellKnownType(WellKnownType.Int32);
977var int16Type = Context.GetWellKnownType(WellKnownType.Int16);
978var byteType = Context.GetWellKnownType(WellKnownType.Byte);
982returnType: Context.GetWellKnownType(WellKnownType.Void),
1229new MethodSignature(MethodSignatureFlags.Static, 0, customMarshallerType, [ Context.GetWellKnownType(WellKnownType.String) ]));
1269new MethodSignature(MethodSignatureFlags.None, 0, Context.GetWellKnownType(WellKnownType.IntPtr), [ Context.GetWellKnownType(WellKnownType.Object) ]));
1298new MethodSignature(MethodSignatureFlags.None, 0, Context.GetWellKnownType(WellKnownType.Object), [ Context.GetWellKnownType(WellKnownType.IntPtr) ]));
1316new MethodSignature(MethodSignatureFlags.None, 0, Context.GetWellKnownType(WellKnownType.Void), [ Context.GetWellKnownType(WellKnownType.Object) ]));
1333new MethodSignature(MethodSignatureFlags.None, 0, Context.GetWellKnownType(WellKnownType.Void), [ Context.GetWellKnownType(WellKnownType.IntPtr) ]));
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.cs (30)
1253var vAllocSize = emitter.NewLocal(Context.GetWellKnownType(WellKnownType.Int32));
1286var vIndex = emitter.NewLocal(Context.GetWellKnownType(WellKnownType.Int32));
1287var vSizeOf = emitter.NewLocal(Context.GetWellKnownType(WellKnownType.IntPtr));
1288var vLength = emitter.NewLocal(Context.GetWellKnownType(WellKnownType.Int32));
1345ILLocalVariable vSizeOf = emitter.NewLocal(Context.GetWellKnownType(WellKnownType.Int32));
1346ILLocalVariable vLength = emitter.NewLocal(Context.GetWellKnownType(WellKnownType.IntPtr));
1374var vIndex = emitter.NewLocal(Context.GetWellKnownType(WellKnownType.Int32));
1444var vIndex = emitter.NewLocal(Context.GetWellKnownType(WellKnownType.Int32));
1445ILLocalVariable vLength = emitter.NewLocal(Context.GetWellKnownType(WellKnownType.IntPtr));
1449ILLocalVariable vSizeOf = emitter.NewLocal(Context.GetWellKnownType(WellKnownType.IntPtr));
1649TypeDesc charRefType = Context.GetWellKnownType(WellKnownType.Char).MakeByRefType();
1674Context.GetWellKnownType(WellKnownType.String).
1701var charPtrConstructor = Context.GetWellKnownType(WellKnownType.String).GetMethod(".ctor"u8,
1703MethodSignatureFlags.None, 0, Context.GetWellKnownType(WellKnownType.Void),
1705Context.GetWellKnownType(WellKnownType.Char).MakePointerType() }
1827var vBuffer = emitter.NewLocal(Context.GetWellKnownType(WellKnownType.IntPtr));
1841new TypeDesc[] { Context.GetWellKnownType(WellKnownType.Byte) });
1844new MethodSignature(0, 0, Context.GetWellKnownType(WellKnownType.Void),
1845new TypeDesc[] { Context.GetWellKnownType(WellKnownType.Void).MakePointerType(), Context.GetWellKnownType(WellKnownType.Int32) }))));
1897ManagedType.Context.GetWellKnownType(WellKnownType.Void), TypeDesc.EmptyTypes));
1947var vAddRefed = emitter.NewLocal(Context.GetWellKnownType(WellKnownType.Boolean));
1952new MethodSignature(0, 0, Context.GetWellKnownType(WellKnownType.Void),
1953new TypeDesc[] { Context.GetWellKnownType(WellKnownType.Boolean).MakeByRefType() }))));
1958new MethodSignature(0, 0, Context.GetWellKnownType(WellKnownType.IntPtr), TypeDesc.EmptyTypes))));
1967new MethodSignature(0, 0, Context.GetWellKnownType(WellKnownType.Void), TypeDesc.EmptyTypes))));
2001new MethodSignature(0, 0, Context.GetWellKnownType(WellKnownType.Void),
2002new TypeDesc[] { Context.GetWellKnownType(WellKnownType.IntPtr) }))));
2061new MethodSignature(MethodSignatureFlags.Static, 1, Context.GetWellKnownType(WellKnownType.IntPtr),
2088new TypeDesc[] { Context.GetWellKnownType(WellKnownType.IntPtr) }