1 override of AsInt32
ILCompiler.Compiler (1)
Compiler\TypePreinit.cs (1)
2400
public override int
AsInt32
() => BitConverter.ToInt32(AsExactByteCount(4), 0);
68 references to AsInt32
ILCompiler.Compiler (68)
Compiler\TypePreinit.cs (68)
701
StackValueKind.Int32 => entry.Value.
AsInt32
(),
703
? entry.Value.
AsInt32
() : entry.Value.AsInt64(),
818
int val = popped.Value.
AsInt32
();
1177
? condition.Value.
AsInt32
() == 0 : condition.Value.
AsInt32
() != 0;
1200
ILOpcode.blt_s => value1.Value.
AsInt32
() < value2.Value.
AsInt32
(),
1201
ILOpcode.blt_un_s => (uint)value1.Value.
AsInt32
() < (uint)value2.Value.
AsInt32
(),
1202
ILOpcode.bgt_s => value1.Value.
AsInt32
() > value2.Value.
AsInt32
(),
1203
ILOpcode.bgt_un_s => (uint)value1.Value.
AsInt32
() > (uint)value2.Value.
AsInt32
(),
1204
ILOpcode.bge_s => value1.Value.
AsInt32
() >= value2.Value.
AsInt32
(),
1205
ILOpcode.bge_un_s => (uint)value1.Value.
AsInt32
() >= (uint)value2.Value.
AsInt32
(),
1206
ILOpcode.beq_s => value1.Value.
AsInt32
() == value2.Value.
AsInt32
(),
1207
ILOpcode.bne_un_s => value1.Value.
AsInt32
() != value2.Value.
AsInt32
(),
1208
ILOpcode.ble_s => value1.Value.
AsInt32
() <= value2.Value.
AsInt32
(),
1209
ILOpcode.ble_un_s => (uint)value1.Value.
AsInt32
() <= (uint)value2.Value.
AsInt32
(),
1271
uint target = (uint)val.Value.
AsInt32
();
1325
condition = value1.Value.
AsInt32
() < value2.Value.
AsInt32
();
1327
condition = (uint)value1.Value.
AsInt32
() < (uint)value2.Value.
AsInt32
();
1329
condition = value1.Value.
AsInt32
() > value2.Value.
AsInt32
();
1331
condition = (uint)value1.Value.
AsInt32
() > (uint)value2.Value.
AsInt32
();
1406
stack.Push(value.ValueKind, ValueTypeValue.FromInt32(-value.Value.
AsInt32
()));
1437
if (isDivRem && value2.Value.
AsInt32
() == 0)
1441
&& value1.Value.
AsInt32
() == int.MinValue && value2.Value.
AsInt32
() == -1)
1446
ILOpcode.or => value1.Value.
AsInt32
() | value2.Value.
AsInt32
(),
1447
ILOpcode.shl => value1.Value.
AsInt32
() << value2.Value.
AsInt32
(),
1448
ILOpcode.add => value1.Value.
AsInt32
() + value2.Value.
AsInt32
(),
1449
ILOpcode.sub => value1.Value.
AsInt32
() - value2.Value.
AsInt32
(),
1450
ILOpcode.and => value1.Value.
AsInt32
() & value2.Value.
AsInt32
(),
1451
ILOpcode.mul => value1.Value.
AsInt32
() * value2.Value.
AsInt32
(),
1452
ILOpcode.div => value1.Value.
AsInt32
() / value2.Value.
AsInt32
(),
1453
ILOpcode.div_un => (int)((uint)value1.Value.
AsInt32
() / (uint)value2.Value.
AsInt32
()),
1454
ILOpcode.rem => value1.Value.
AsInt32
() % value2.Value.
AsInt32
(),
1455
ILOpcode.rem_un => (int)((uint)value1.Value.
AsInt32
() % (uint)value2.Value.
AsInt32
()),
1510
long result = value1.Value.AsInt64() << value2.Value.
AsInt32
();
1527
StackValueKind.Int32 => addend.Value.
AsInt32
(),
1528
_ => context.Target.PointerSize == 8 ? addend.Value.AsInt64() : addend.Value.
AsInt32
()
1813
uint sizeBytes = (uint)size.Value.
AsInt32
();
1822
Array.Fill(addressValue.PointedToBytes, (byte)value.Value.
AsInt32
(), addressValue.PointedToOffset, (int)sizeBytes);
2015
value = entry.Value.
AsInt32
();
2032
value = entry.Value.
AsInt32
();
2119
int value = popped.Value.
AsInt32
();
2148
long value = _target.PointerSize == 8 ? popped.Value.AsInt64() : popped.Value.
AsInt32
();
2987
_value._length = value.
AsInt32
() * _value._elementType.InstanceFieldSize.AsInt;