1 write to Value
ILCompiler.Compiler (1)
Compiler\TypePreinit.cs (1)
3718
Value
= value;
206 references to Value
ILCompiler.Compiler (206)
Compiler\TypePreinit.cs (206)
326
entry = new StackEntry(entry.ValueKind, entry.
Value
.Clone());
721
StackValueKind.Int32 => entry.
Value
.AsInt32(),
723
? entry.
Value
.AsInt32() : entry.
Value
.AsInt64(),
757
if (instance.
Value
is not IHasInstanceFields settableInstance
777
var loadableInstance = instance.
Value
as IHasInstanceFields;
805
var loadableInstance = instance.
Value
as IHasInstanceFields;
833
Debug.Assert(popped.
Value
is ByRefValueBase);
834
stack.Push(StackValueKind.NativeInt, popped.
Value
);
838
int val = popped.
Value
.AsInt32();
885
long val = popped.
Value
.AsInt64();
929
double val = popped.
Value
.AsDouble();
1142
|| popped.
Value
is not ByRefValueBase byrefVal
1197
? condition.
Value
.AsInt32() == 0 : condition.
Value
.AsInt32() != 0;
1200
? condition.
Value
.AsInt64() == 0 : condition.
Value
.AsInt64() != 0;
1203
? condition.
Value
== null : condition.
Value
!= null;
1220
ILOpcode.blt_s => value1.
Value
.AsInt32() < value2.
Value
.AsInt32(),
1221
ILOpcode.blt_un_s => (uint)value1.
Value
.AsInt32() < (uint)value2.
Value
.AsInt32(),
1222
ILOpcode.bgt_s => value1.
Value
.AsInt32() > value2.
Value
.AsInt32(),
1223
ILOpcode.bgt_un_s => (uint)value1.
Value
.AsInt32() > (uint)value2.
Value
.AsInt32(),
1224
ILOpcode.bge_s => value1.
Value
.AsInt32() >= value2.
Value
.AsInt32(),
1225
ILOpcode.bge_un_s => (uint)value1.
Value
.AsInt32() >= (uint)value2.
Value
.AsInt32(),
1226
ILOpcode.beq_s => value1.
Value
.AsInt32() == value2.
Value
.AsInt32(),
1227
ILOpcode.bne_un_s => value1.
Value
.AsInt32() != value2.
Value
.AsInt32(),
1228
ILOpcode.ble_s => value1.
Value
.AsInt32() <= value2.
Value
.AsInt32(),
1229
ILOpcode.ble_un_s => (uint)value1.
Value
.AsInt32() <= (uint)value2.
Value
.AsInt32(),
1237
ILOpcode.blt_s => value1.
Value
.AsInt64() < value2.
Value
.AsInt64(),
1238
ILOpcode.blt_un_s => (ulong)value1.
Value
.AsInt64() < (ulong)value2.
Value
.AsInt64(),
1239
ILOpcode.bgt_s => value1.
Value
.AsInt64() > value2.
Value
.AsInt64(),
1240
ILOpcode.bgt_un_s => (ulong)value1.
Value
.AsInt64() > (ulong)value2.
Value
.AsInt64(),
1241
ILOpcode.bge_s => value1.
Value
.AsInt64() >= value2.
Value
.AsInt64(),
1242
ILOpcode.bge_un_s => (ulong)value1.
Value
.AsInt64() >= (ulong)value2.
Value
.AsInt64(),
1243
ILOpcode.beq_s => value1.
Value
.AsInt64() == value2.
Value
.AsInt64(),
1244
ILOpcode.bne_un_s => value1.
Value
.AsInt64() != value2.
Value
.AsInt64(),
1245
ILOpcode.ble_s => value1.
Value
.AsInt64() <= value2.
Value
.AsInt64(),
1246
ILOpcode.ble_un_s => (ulong)value1.
Value
.AsInt64() <= (ulong)value2.
Value
.AsInt64(),
1254
ILOpcode.blt_s => value1.
Value
.AsDouble() < value2.
Value
.AsDouble(),
1255
ILOpcode.blt_un_s => !(value1.
Value
.AsDouble() >= value2.
Value
.AsDouble()),
1256
ILOpcode.bgt_s => value1.
Value
.AsDouble() > value2.
Value
.AsDouble(),
1257
ILOpcode.bgt_un_s => !(value1.
Value
.AsDouble() <= value2.
Value
.AsDouble()),
1258
ILOpcode.bge_s => value1.
Value
.AsDouble() >= value2.
Value
.AsDouble(),
1259
ILOpcode.bge_un_s => !(value1.
Value
.AsDouble() < value2.
Value
.AsDouble()),
1260
ILOpcode.beq_s => value1.
Value
.AsDouble() == value2.
Value
.AsDouble(),
1261
ILOpcode.bne_un_s => value1.
Value
.AsDouble() != value2.
Value
.AsDouble(),
1262
ILOpcode.ble_s => value1.
Value
.AsDouble() <= value2.
Value
.AsDouble(),
1263
ILOpcode.ble_un_s => !(value1.
Value
.AsDouble() > value2.
Value
.AsDouble()),
1291
uint target = (uint)val.
Value
.AsInt32();
1345
condition = value1.
Value
.AsInt32() < value2.
Value
.AsInt32();
1347
condition = (uint)value1.
Value
.AsInt32() < (uint)value2.
Value
.AsInt32();
1349
condition = value1.
Value
.AsInt32() > value2.
Value
.AsInt32();
1351
condition = (uint)value1.
Value
.AsInt32() > (uint)value2.
Value
.AsInt32();
1358
condition = value1.
Value
.AsInt64() < value2.
Value
.AsInt64();
1360
condition = (ulong)value1.
Value
.AsInt64() < (ulong)value2.
Value
.AsInt64();
1362
condition = value1.
Value
.AsInt64() > value2.
Value
.AsInt64();
1364
condition = (ulong)value1.
Value
.AsInt64() > (ulong)value2.
Value
.AsInt64();
1371
condition = value1.
Value
.AsDouble() < value2.
Value
.AsDouble();
1373
condition = !(value1.
Value
.AsDouble() >= value2.
Value
.AsDouble());
1375
condition = value1.
Value
.AsDouble() > value2.
Value
.AsDouble();
1377
condition = !(value1.
Value
.AsDouble() <= value2.
Value
.AsDouble());
1384
condition = value1.
Value
== null && value2.
Value
!= null;
1407
compareResult = value1.
Value
.AsDouble() == value2.
Value
.AsDouble();
1410
|| !Value.TryCompareEquality(value1.
Value
, value2.
Value
, out compareResult))
1426
stack.Push(value.ValueKind, ValueTypeValue.FromInt32(-value.
Value
.AsInt32()));
1428
stack.Push(value.ValueKind, ValueTypeValue.FromInt64(-value.
Value
.AsInt64()));
1430
stack.Push(value.ValueKind, ValueTypeValue.FromDouble(-value.
Value
.AsDouble()));
1457
if (isDivRem && value2.
Value
.AsInt32() == 0)
1461
&& value1.
Value
.AsInt32() == int.MinValue && value2.
Value
.AsInt32() == -1)
1466
ILOpcode.or => value1.
Value
.AsInt32() | value2.
Value
.AsInt32(),
1467
ILOpcode.shl => value1.
Value
.AsInt32() << value2.
Value
.AsInt32(),
1468
ILOpcode.add => value1.
Value
.AsInt32() + value2.
Value
.AsInt32(),
1469
ILOpcode.sub => value1.
Value
.AsInt32() - value2.
Value
.AsInt32(),
1470
ILOpcode.and => value1.
Value
.AsInt32() & value2.
Value
.AsInt32(),
1471
ILOpcode.mul => value1.
Value
.AsInt32() * value2.
Value
.AsInt32(),
1472
ILOpcode.div => value1.
Value
.AsInt32() / value2.
Value
.AsInt32(),
1473
ILOpcode.div_un => (int)((uint)value1.
Value
.AsInt32() / (uint)value2.
Value
.AsInt32()),
1474
ILOpcode.rem => value1.
Value
.AsInt32() % value2.
Value
.AsInt32(),
1475
ILOpcode.rem_un => (int)((uint)value1.
Value
.AsInt32() % (uint)value2.
Value
.AsInt32()),
1483
if (isDivRem && value2.
Value
.AsInt64() == 0)
1487
&& value1.
Value
.AsInt64() == long.MinValue && value2.
Value
.AsInt64() == -1)
1492
ILOpcode.or => value1.
Value
.AsInt64() | value2.
Value
.AsInt64(),
1493
ILOpcode.shl => value1.
Value
.AsInt64() << (int)value2.
Value
.AsInt64(),
1494
ILOpcode.add => value1.
Value
.AsInt64() + value2.
Value
.AsInt64(),
1495
ILOpcode.sub => value1.
Value
.AsInt64() - value2.
Value
.AsInt64(),
1496
ILOpcode.and => value1.
Value
.AsInt64() & value2.
Value
.AsInt64(),
1497
ILOpcode.mul => value1.
Value
.AsInt64() * value2.
Value
.AsInt64(),
1498
ILOpcode.div => value1.
Value
.AsInt64() / value2.
Value
.AsInt64(),
1499
ILOpcode.div_un => (long)((ulong)value1.
Value
.AsInt64() / (ulong)value2.
Value
.AsInt64()),
1500
ILOpcode.rem => value1.
Value
.AsInt64() % value2.
Value
.AsInt64(),
1501
ILOpcode.rem_un => (long)((ulong)value1.
Value
.AsInt64() % (ulong)value2.
Value
.AsInt64()),
1509
if (isDivRem && value2.
Value
.AsDouble() == 0)
1517
ILOpcode.add => value1.
Value
.AsDouble() + value2.
Value
.AsDouble(),
1518
ILOpcode.sub => value1.
Value
.AsDouble() - value2.
Value
.AsDouble(),
1519
ILOpcode.mul => value1.
Value
.AsDouble() * value2.
Value
.AsDouble(),
1520
ILOpcode.div => value1.
Value
.AsDouble() / value2.
Value
.AsDouble(),
1521
ILOpcode.rem => value1.
Value
.AsDouble() % value2.
Value
.AsDouble(),
1530
long result = value1.
Value
.AsInt64() << value2.
Value
.AsInt32();
1547
StackValueKind.Int32 => addend.
Value
.AsInt32(),
1548
_ => context.Target.PointerSize == 8 ? addend.
Value
.AsInt64() : addend.
Value
.AsInt32()
1551
if (reference.
Value
is not ByRefValue previousByRef)
1570
if (popped.
Value
is ArrayInstance arrayInstance)
1574
else if (popped.
Value
== null)
1617
if (array.
Value
is ArrayInstance arrayInstance)
1622
else if (array.
Value
== null)
1671
if (array.
Value
is ArrayInstance arrayInstance)
1678
else if (array.
Value
== null)
1682
else if (array.
Value
is ForeignTypeInstance)
1725
if (entry.
Value
is ObjectInstance objInst
1762
if (entry.
Value
is ByRefValueBase byRefVal
1796
if (location.
Value
is not ByRefValueBase destValue)
1823
uint sizeBytes = (uint)size.
Value
.AsInt32();
1825
if (addr.
Value
is not ByRefValue addressValue)
1832
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
;