1 write to Value
ILCompiler.Compiler (1)
Compiler\TypePreinit.cs (1)
3708
Value
= value;
206 references to Value
ILCompiler.Compiler (206)
Compiler\TypePreinit.cs (206)
712
StackValueKind.Int32 => entry.
Value
.AsInt32(),
714
? entry.
Value
.AsInt32() : entry.
Value
.AsInt64(),
748
if (instance.
Value
is not IHasInstanceFields settableInstance
768
var loadableInstance = instance.
Value
as IHasInstanceFields;
796
var loadableInstance = instance.
Value
as IHasInstanceFields;
824
Debug.Assert(popped.
Value
is ByRefValueBase);
825
stack.Push(StackValueKind.NativeInt, popped.
Value
);
829
int val = popped.
Value
.AsInt32();
876
long val = popped.
Value
.AsInt64();
920
double val = popped.
Value
.AsDouble();
1133
|| popped.
Value
is not ByRefValueBase byrefVal
1188
? condition.
Value
.AsInt32() == 0 : condition.
Value
.AsInt32() != 0;
1191
? condition.
Value
.AsInt64() == 0 : condition.
Value
.AsInt64() != 0;
1194
? condition.
Value
== null : condition.
Value
!= null;
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(),
1228
ILOpcode.blt_s => value1.
Value
.AsInt64() < value2.
Value
.AsInt64(),
1229
ILOpcode.blt_un_s => (ulong)value1.
Value
.AsInt64() < (ulong)value2.
Value
.AsInt64(),
1230
ILOpcode.bgt_s => value1.
Value
.AsInt64() > value2.
Value
.AsInt64(),
1231
ILOpcode.bgt_un_s => (ulong)value1.
Value
.AsInt64() > (ulong)value2.
Value
.AsInt64(),
1232
ILOpcode.bge_s => value1.
Value
.AsInt64() >= value2.
Value
.AsInt64(),
1233
ILOpcode.bge_un_s => (ulong)value1.
Value
.AsInt64() >= (ulong)value2.
Value
.AsInt64(),
1234
ILOpcode.beq_s => value1.
Value
.AsInt64() == value2.
Value
.AsInt64(),
1235
ILOpcode.bne_un_s => value1.
Value
.AsInt64() != value2.
Value
.AsInt64(),
1236
ILOpcode.ble_s => value1.
Value
.AsInt64() <= value2.
Value
.AsInt64(),
1237
ILOpcode.ble_un_s => (ulong)value1.
Value
.AsInt64() <= (ulong)value2.
Value
.AsInt64(),
1245
ILOpcode.blt_s => value1.
Value
.AsDouble() < value2.
Value
.AsDouble(),
1246
ILOpcode.blt_un_s => !(value1.
Value
.AsDouble() >= value2.
Value
.AsDouble()),
1247
ILOpcode.bgt_s => value1.
Value
.AsDouble() > value2.
Value
.AsDouble(),
1248
ILOpcode.bgt_un_s => !(value1.
Value
.AsDouble() <= value2.
Value
.AsDouble()),
1249
ILOpcode.bge_s => value1.
Value
.AsDouble() >= value2.
Value
.AsDouble(),
1250
ILOpcode.bge_un_s => !(value1.
Value
.AsDouble() < value2.
Value
.AsDouble()),
1251
ILOpcode.beq_s => value1.
Value
.AsDouble() == value2.
Value
.AsDouble(),
1252
ILOpcode.bne_un_s => value1.
Value
.AsDouble() != value2.
Value
.AsDouble(),
1253
ILOpcode.ble_s => value1.
Value
.AsDouble() <= value2.
Value
.AsDouble(),
1254
ILOpcode.ble_un_s => !(value1.
Value
.AsDouble() > value2.
Value
.AsDouble()),
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();
1349
condition = value1.
Value
.AsInt64() < value2.
Value
.AsInt64();
1351
condition = (ulong)value1.
Value
.AsInt64() < (ulong)value2.
Value
.AsInt64();
1353
condition = value1.
Value
.AsInt64() > value2.
Value
.AsInt64();
1355
condition = (ulong)value1.
Value
.AsInt64() > (ulong)value2.
Value
.AsInt64();
1362
condition = value1.
Value
.AsDouble() < value2.
Value
.AsDouble();
1364
condition = !(value1.
Value
.AsDouble() >= value2.
Value
.AsDouble());
1366
condition = value1.
Value
.AsDouble() > value2.
Value
.AsDouble();
1368
condition = !(value1.
Value
.AsDouble() <= value2.
Value
.AsDouble());
1375
condition = value1.
Value
== null && value2.
Value
!= null;
1398
compareResult = value1.
Value
.AsDouble() == value2.
Value
.AsDouble();
1401
|| !Value.TryCompareEquality(value1.
Value
, value2.
Value
, out compareResult))
1417
stack.Push(value.ValueKind, ValueTypeValue.FromInt32(-value.
Value
.AsInt32()));
1419
stack.Push(value.ValueKind, ValueTypeValue.FromInt64(-value.
Value
.AsInt64()));
1421
stack.Push(value.ValueKind, ValueTypeValue.FromDouble(-value.
Value
.AsDouble()));
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()),
1474
if (isDivRem && value2.
Value
.AsInt64() == 0)
1478
&& value1.
Value
.AsInt64() == long.MinValue && value2.
Value
.AsInt64() == -1)
1483
ILOpcode.or => value1.
Value
.AsInt64() | value2.
Value
.AsInt64(),
1484
ILOpcode.shl => value1.
Value
.AsInt64() << (int)value2.
Value
.AsInt64(),
1485
ILOpcode.add => value1.
Value
.AsInt64() + value2.
Value
.AsInt64(),
1486
ILOpcode.sub => value1.
Value
.AsInt64() - value2.
Value
.AsInt64(),
1487
ILOpcode.and => value1.
Value
.AsInt64() & value2.
Value
.AsInt64(),
1488
ILOpcode.mul => value1.
Value
.AsInt64() * value2.
Value
.AsInt64(),
1489
ILOpcode.div => value1.
Value
.AsInt64() / value2.
Value
.AsInt64(),
1490
ILOpcode.div_un => (long)((ulong)value1.
Value
.AsInt64() / (ulong)value2.
Value
.AsInt64()),
1491
ILOpcode.rem => value1.
Value
.AsInt64() % value2.
Value
.AsInt64(),
1492
ILOpcode.rem_un => (long)((ulong)value1.
Value
.AsInt64() % (ulong)value2.
Value
.AsInt64()),
1500
if (isDivRem && value2.
Value
.AsDouble() == 0)
1508
ILOpcode.add => value1.
Value
.AsDouble() + value2.
Value
.AsDouble(),
1509
ILOpcode.sub => value1.
Value
.AsDouble() - value2.
Value
.AsDouble(),
1510
ILOpcode.mul => value1.
Value
.AsDouble() * value2.
Value
.AsDouble(),
1511
ILOpcode.div => value1.
Value
.AsDouble() / value2.
Value
.AsDouble(),
1512
ILOpcode.rem => value1.
Value
.AsDouble() % value2.
Value
.AsDouble(),
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()
1542
if (reference.
Value
is not ByRefValue previousByRef)
1561
if (popped.
Value
is ArrayInstance arrayInstance)
1565
else if (popped.
Value
== null)
1608
if (array.
Value
is ArrayInstance arrayInstance)
1613
else if (array.
Value
== null)
1662
if (array.
Value
is ArrayInstance arrayInstance)
1669
else if (array.
Value
== null)
1673
else if (array.
Value
is ForeignTypeInstance)
1713
if (entry.
Value
is ObjectInstance objInst
1750
if (entry.
Value
is ByRefValueBase byRefVal
1790
_ => stack.Pop().
Value
1797
if (location.
Value
is not ByRefValueBase destValue)
1824
uint sizeBytes = (uint)size.
Value
.AsInt32();
1826
if (addr.
Value
is not ByRefValue addressValue)
1833
Array.Fill(addressValue.PointedToBytes, (byte)value.
Value
.AsInt32(), addressValue.PointedToOffset, (int)sizeBytes);
2026
value = entry.
Value
.AsInt32();
2033
long longValue = entry.
Value
.AsInt64();
2043
value = entry.
Value
.AsInt32();
2124
return popped.
Value
;
2130
int value = popped.
Value
.AsInt32();
2146
return popped.
Value
;
2150
if (locationType.IsByRef && popped.
Value
is ByRefValueBase)
2151
return popped.
Value
;
2159
long value = _target.PointerSize == 8 ? popped.
Value
.AsInt64() : popped.
Value
.AsInt32();
2178
return popped.
Value
;
2183
return popped.
Value
;
2189
return ValueTypeValue.FromSingle((float)popped.
Value
.AsDouble());
2197
return popped.
Value
;
2204
return popped.
Value
;
2208
|| ((BaseValueTypeValue)popped.
Value
).Size != ((DefType)locationType).InstanceFieldSize.AsInt)
2212
return popped.
Value
;