1 override of AsInt32
ILCompiler.Compiler (1)
Compiler\TypePreinit.cs (1)
2411
public override int
AsInt32
() => BitConverter.ToInt32(AsExactByteCount(4), 0);
68 references to AsInt32
ILCompiler.Compiler (68)
Compiler\TypePreinit.cs (68)
712
StackValueKind.Int32 => entry.Value.
AsInt32
(),
714
? entry.Value.
AsInt32
() : entry.Value.AsInt64(),
829
int val = popped.Value.
AsInt32
();
1188
? condition.Value.
AsInt32
() == 0 : condition.Value.
AsInt32
() != 0;
1211
ILOpcode.blt_s => value1.Value.
AsInt32
() < value2.Value.
AsInt32
(),
1212
ILOpcode.blt_un_s => (uint)value1.Value.
AsInt32
() < (uint)value2.Value.
AsInt32
(),
1213
ILOpcode.bgt_s => value1.Value.
AsInt32
() > value2.Value.
AsInt32
(),
1214
ILOpcode.bgt_un_s => (uint)value1.Value.
AsInt32
() > (uint)value2.Value.
AsInt32
(),
1215
ILOpcode.bge_s => value1.Value.
AsInt32
() >= value2.Value.
AsInt32
(),
1216
ILOpcode.bge_un_s => (uint)value1.Value.
AsInt32
() >= (uint)value2.Value.
AsInt32
(),
1217
ILOpcode.beq_s => value1.Value.
AsInt32
() == value2.Value.
AsInt32
(),
1218
ILOpcode.bne_un_s => value1.Value.
AsInt32
() != value2.Value.
AsInt32
(),
1219
ILOpcode.ble_s => value1.Value.
AsInt32
() <= value2.Value.
AsInt32
(),
1220
ILOpcode.ble_un_s => (uint)value1.Value.
AsInt32
() <= (uint)value2.Value.
AsInt32
(),
1282
uint target = (uint)val.Value.
AsInt32
();
1336
condition = value1.Value.
AsInt32
() < value2.Value.
AsInt32
();
1338
condition = (uint)value1.Value.
AsInt32
() < (uint)value2.Value.
AsInt32
();
1340
condition = value1.Value.
AsInt32
() > value2.Value.
AsInt32
();
1342
condition = (uint)value1.Value.
AsInt32
() > (uint)value2.Value.
AsInt32
();
1417
stack.Push(value.ValueKind, ValueTypeValue.FromInt32(-value.Value.
AsInt32
()));
1448
if (isDivRem && value2.Value.
AsInt32
() == 0)
1452
&& value1.Value.
AsInt32
() == int.MinValue && value2.Value.
AsInt32
() == -1)
1457
ILOpcode.or => value1.Value.
AsInt32
() | value2.Value.
AsInt32
(),
1458
ILOpcode.shl => value1.Value.
AsInt32
() << value2.Value.
AsInt32
(),
1459
ILOpcode.add => value1.Value.
AsInt32
() + value2.Value.
AsInt32
(),
1460
ILOpcode.sub => value1.Value.
AsInt32
() - value2.Value.
AsInt32
(),
1461
ILOpcode.and => value1.Value.
AsInt32
() & value2.Value.
AsInt32
(),
1462
ILOpcode.mul => value1.Value.
AsInt32
() * value2.Value.
AsInt32
(),
1463
ILOpcode.div => value1.Value.
AsInt32
() / value2.Value.
AsInt32
(),
1464
ILOpcode.div_un => (int)((uint)value1.Value.
AsInt32
() / (uint)value2.Value.
AsInt32
()),
1465
ILOpcode.rem => value1.Value.
AsInt32
() % value2.Value.
AsInt32
(),
1466
ILOpcode.rem_un => (int)((uint)value1.Value.
AsInt32
() % (uint)value2.Value.
AsInt32
()),
1521
long result = value1.Value.AsInt64() << value2.Value.
AsInt32
();
1538
StackValueKind.Int32 => addend.Value.
AsInt32
(),
1539
_ => context.Target.PointerSize == 8 ? addend.Value.AsInt64() : addend.Value.
AsInt32
()
1824
uint sizeBytes = (uint)size.Value.
AsInt32
();
1833
Array.Fill(addressValue.PointedToBytes, (byte)value.Value.
AsInt32
(), addressValue.PointedToOffset, (int)sizeBytes);
2026
value = entry.Value.
AsInt32
();
2043
value = entry.Value.
AsInt32
();
2130
int value = popped.Value.
AsInt32
();
2159
long value = _target.PointerSize == 8 ? popped.Value.AsInt64() : popped.Value.
AsInt32
();
2998
_value._length = value.
AsInt32
() * _value._elementType.InstanceFieldSize.AsInt;