1 override of AsInt32
ILCompiler.Compiler (1)
Compiler\TypePreinit.cs (1)
2427
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
();
1204
? condition.Value.
AsInt32
() == 0 : condition.Value.
AsInt32
() != 0;
1227
ILOpcode.blt_s => value1.Value.
AsInt32
() < value2.Value.
AsInt32
(),
1228
ILOpcode.blt_un_s => (uint)value1.Value.
AsInt32
() < (uint)value2.Value.
AsInt32
(),
1229
ILOpcode.bgt_s => value1.Value.
AsInt32
() > value2.Value.
AsInt32
(),
1230
ILOpcode.bgt_un_s => (uint)value1.Value.
AsInt32
() > (uint)value2.Value.
AsInt32
(),
1231
ILOpcode.bge_s => value1.Value.
AsInt32
() >= value2.Value.
AsInt32
(),
1232
ILOpcode.bge_un_s => (uint)value1.Value.
AsInt32
() >= (uint)value2.Value.
AsInt32
(),
1233
ILOpcode.beq_s => value1.Value.
AsInt32
() == value2.Value.
AsInt32
(),
1234
ILOpcode.bne_un_s => value1.Value.
AsInt32
() != value2.Value.
AsInt32
(),
1235
ILOpcode.ble_s => value1.Value.
AsInt32
() <= value2.Value.
AsInt32
(),
1236
ILOpcode.ble_un_s => (uint)value1.Value.
AsInt32
() <= (uint)value2.Value.
AsInt32
(),
1298
uint target = (uint)val.Value.
AsInt32
();
1352
condition = value1.Value.
AsInt32
() < value2.Value.
AsInt32
();
1354
condition = (uint)value1.Value.
AsInt32
() < (uint)value2.Value.
AsInt32
();
1356
condition = value1.Value.
AsInt32
() > value2.Value.
AsInt32
();
1358
condition = (uint)value1.Value.
AsInt32
() > (uint)value2.Value.
AsInt32
();
1433
stack.Push(value.ValueKind, ValueTypeValue.FromInt32(-value.Value.
AsInt32
()));
1464
if (isDivRem && value2.Value.
AsInt32
() == 0)
1468
&& value1.Value.
AsInt32
() == int.MinValue && value2.Value.
AsInt32
() == -1)
1473
ILOpcode.or => value1.Value.
AsInt32
() | value2.Value.
AsInt32
(),
1474
ILOpcode.shl => value1.Value.
AsInt32
() << value2.Value.
AsInt32
(),
1475
ILOpcode.add => value1.Value.
AsInt32
() + value2.Value.
AsInt32
(),
1476
ILOpcode.sub => value1.Value.
AsInt32
() - value2.Value.
AsInt32
(),
1477
ILOpcode.and => value1.Value.
AsInt32
() & value2.Value.
AsInt32
(),
1478
ILOpcode.mul => value1.Value.
AsInt32
() * value2.Value.
AsInt32
(),
1479
ILOpcode.div => value1.Value.
AsInt32
() / value2.Value.
AsInt32
(),
1480
ILOpcode.div_un => (int)((uint)value1.Value.
AsInt32
() / (uint)value2.Value.
AsInt32
()),
1481
ILOpcode.rem => value1.Value.
AsInt32
() % value2.Value.
AsInt32
(),
1482
ILOpcode.rem_un => (int)((uint)value1.Value.
AsInt32
() % (uint)value2.Value.
AsInt32
()),
1537
long result = value1.Value.AsInt64() << value2.Value.
AsInt32
();
1554
StackValueKind.Int32 => addend.Value.
AsInt32
(),
1555
_ => context.Target.PointerSize == 8 ? addend.Value.AsInt64() : addend.Value.
AsInt32
()
1840
uint sizeBytes = (uint)size.Value.
AsInt32
();
1849
Array.Fill(addressValue.PointedToBytes, (byte)value.Value.
AsInt32
(), addressValue.PointedToOffset, (int)sizeBytes);
2042
value = entry.Value.
AsInt32
();
2059
value = entry.Value.
AsInt32
();
2146
int value = popped.Value.
AsInt32
();
2175
long value = _target.PointerSize == 8 ? popped.Value.AsInt64() : popped.Value.
AsInt32
();
3014
_value._length = value.
AsInt32
() * _value._elementType.InstanceFieldSize.AsInt;