1 override of AsInt32
ILCompiler.Compiler (1)
Compiler\TypePreinit.cs (1)
2409
public override int
AsInt32
() => BitConverter.ToInt32(AsExactByteCount(4), 0);
68 references to AsInt32
ILCompiler.Compiler (68)
Compiler\TypePreinit.cs (68)
719
StackValueKind.Int32 => entry.Value.
AsInt32
(),
721
? entry.Value.
AsInt32
() : entry.Value.AsInt64(),
836
int val = popped.Value.
AsInt32
();
1195
? condition.Value.
AsInt32
() == 0 : condition.Value.
AsInt32
() != 0;
1218
ILOpcode.blt_s => value1.Value.
AsInt32
() < value2.Value.
AsInt32
(),
1219
ILOpcode.blt_un_s => (uint)value1.Value.
AsInt32
() < (uint)value2.Value.
AsInt32
(),
1220
ILOpcode.bgt_s => value1.Value.
AsInt32
() > value2.Value.
AsInt32
(),
1221
ILOpcode.bgt_un_s => (uint)value1.Value.
AsInt32
() > (uint)value2.Value.
AsInt32
(),
1222
ILOpcode.bge_s => value1.Value.
AsInt32
() >= value2.Value.
AsInt32
(),
1223
ILOpcode.bge_un_s => (uint)value1.Value.
AsInt32
() >= (uint)value2.Value.
AsInt32
(),
1224
ILOpcode.beq_s => value1.Value.
AsInt32
() == value2.Value.
AsInt32
(),
1225
ILOpcode.bne_un_s => value1.Value.
AsInt32
() != value2.Value.
AsInt32
(),
1226
ILOpcode.ble_s => value1.Value.
AsInt32
() <= value2.Value.
AsInt32
(),
1227
ILOpcode.ble_un_s => (uint)value1.Value.
AsInt32
() <= (uint)value2.Value.
AsInt32
(),
1289
uint target = (uint)val.Value.
AsInt32
();
1343
condition = value1.Value.
AsInt32
() < value2.Value.
AsInt32
();
1345
condition = (uint)value1.Value.
AsInt32
() < (uint)value2.Value.
AsInt32
();
1347
condition = value1.Value.
AsInt32
() > value2.Value.
AsInt32
();
1349
condition = (uint)value1.Value.
AsInt32
() > (uint)value2.Value.
AsInt32
();
1424
stack.Push(value.ValueKind, ValueTypeValue.FromInt32(-value.Value.
AsInt32
()));
1455
if (isDivRem && value2.Value.
AsInt32
() == 0)
1459
&& value1.Value.
AsInt32
() == int.MinValue && value2.Value.
AsInt32
() == -1)
1464
ILOpcode.or => value1.Value.
AsInt32
() | value2.Value.
AsInt32
(),
1465
ILOpcode.shl => value1.Value.
AsInt32
() << value2.Value.
AsInt32
(),
1466
ILOpcode.add => value1.Value.
AsInt32
() + value2.Value.
AsInt32
(),
1467
ILOpcode.sub => value1.Value.
AsInt32
() - value2.Value.
AsInt32
(),
1468
ILOpcode.and => value1.Value.
AsInt32
() & value2.Value.
AsInt32
(),
1469
ILOpcode.mul => value1.Value.
AsInt32
() * value2.Value.
AsInt32
(),
1470
ILOpcode.div => value1.Value.
AsInt32
() / value2.Value.
AsInt32
(),
1471
ILOpcode.div_un => (int)((uint)value1.Value.
AsInt32
() / (uint)value2.Value.
AsInt32
()),
1472
ILOpcode.rem => value1.Value.
AsInt32
() % value2.Value.
AsInt32
(),
1473
ILOpcode.rem_un => (int)((uint)value1.Value.
AsInt32
() % (uint)value2.Value.
AsInt32
()),
1528
long result = value1.Value.AsInt64() << value2.Value.
AsInt32
();
1545
StackValueKind.Int32 => addend.Value.
AsInt32
(),
1546
_ => context.Target.PointerSize == 8 ? addend.Value.AsInt64() : addend.Value.
AsInt32
()
1821
uint sizeBytes = (uint)size.Value.
AsInt32
();
1830
Array.Fill(addressValue.PointedToBytes, (byte)value.Value.
AsInt32
(), addressValue.PointedToOffset, (int)sizeBytes);
2024
value = entry.Value.
AsInt32
();
2041
value = entry.Value.
AsInt32
();
2128
int value = popped.Value.
AsInt32
();
2157
long value = _target.PointerSize == 8 ? popped.Value.AsInt64() : popped.Value.
AsInt32
();
3007
_value._length = value.
AsInt32
() * _value._elementType.InstanceFieldSize.AsInt;