1 write to Value
ILCompiler.Compiler (1)
Compiler\TypePreinit.cs (1)
3724
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();
1149
|| popped.
Value
is not ByRefValueBase byrefVal
1204
? condition.
Value
.AsInt32() == 0 : condition.
Value
.AsInt32() != 0;
1207
? condition.
Value
.AsInt64() == 0 : condition.
Value
.AsInt64() != 0;
1210
? condition.
Value
== null : condition.
Value
!= null;
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(),
1244
ILOpcode.blt_s => value1.
Value
.AsInt64() < value2.
Value
.AsInt64(),
1245
ILOpcode.blt_un_s => (ulong)value1.
Value
.AsInt64() < (ulong)value2.
Value
.AsInt64(),
1246
ILOpcode.bgt_s => value1.
Value
.AsInt64() > value2.
Value
.AsInt64(),
1247
ILOpcode.bgt_un_s => (ulong)value1.
Value
.AsInt64() > (ulong)value2.
Value
.AsInt64(),
1248
ILOpcode.bge_s => value1.
Value
.AsInt64() >= value2.
Value
.AsInt64(),
1249
ILOpcode.bge_un_s => (ulong)value1.
Value
.AsInt64() >= (ulong)value2.
Value
.AsInt64(),
1250
ILOpcode.beq_s => value1.
Value
.AsInt64() == value2.
Value
.AsInt64(),
1251
ILOpcode.bne_un_s => value1.
Value
.AsInt64() != value2.
Value
.AsInt64(),
1252
ILOpcode.ble_s => value1.
Value
.AsInt64() <= value2.
Value
.AsInt64(),
1253
ILOpcode.ble_un_s => (ulong)value1.
Value
.AsInt64() <= (ulong)value2.
Value
.AsInt64(),
1261
ILOpcode.blt_s => value1.
Value
.AsDouble() < value2.
Value
.AsDouble(),
1262
ILOpcode.blt_un_s => !(value1.
Value
.AsDouble() >= value2.
Value
.AsDouble()),
1263
ILOpcode.bgt_s => value1.
Value
.AsDouble() > value2.
Value
.AsDouble(),
1264
ILOpcode.bgt_un_s => !(value1.
Value
.AsDouble() <= value2.
Value
.AsDouble()),
1265
ILOpcode.bge_s => value1.
Value
.AsDouble() >= value2.
Value
.AsDouble(),
1266
ILOpcode.bge_un_s => !(value1.
Value
.AsDouble() < value2.
Value
.AsDouble()),
1267
ILOpcode.beq_s => value1.
Value
.AsDouble() == value2.
Value
.AsDouble(),
1268
ILOpcode.bne_un_s => value1.
Value
.AsDouble() != value2.
Value
.AsDouble(),
1269
ILOpcode.ble_s => value1.
Value
.AsDouble() <= value2.
Value
.AsDouble(),
1270
ILOpcode.ble_un_s => !(value1.
Value
.AsDouble() > value2.
Value
.AsDouble()),
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();
1365
condition = value1.
Value
.AsInt64() < value2.
Value
.AsInt64();
1367
condition = (ulong)value1.
Value
.AsInt64() < (ulong)value2.
Value
.AsInt64();
1369
condition = value1.
Value
.AsInt64() > value2.
Value
.AsInt64();
1371
condition = (ulong)value1.
Value
.AsInt64() > (ulong)value2.
Value
.AsInt64();
1378
condition = value1.
Value
.AsDouble() < value2.
Value
.AsDouble();
1380
condition = !(value1.
Value
.AsDouble() >= value2.
Value
.AsDouble());
1382
condition = value1.
Value
.AsDouble() > value2.
Value
.AsDouble();
1384
condition = !(value1.
Value
.AsDouble() <= value2.
Value
.AsDouble());
1391
condition = value1.
Value
== null && value2.
Value
!= null;
1414
compareResult = value1.
Value
.AsDouble() == value2.
Value
.AsDouble();
1417
|| !Value.TryCompareEquality(value1.
Value
, value2.
Value
, out compareResult))
1433
stack.Push(value.ValueKind, ValueTypeValue.FromInt32(-value.
Value
.AsInt32()));
1435
stack.Push(value.ValueKind, ValueTypeValue.FromInt64(-value.
Value
.AsInt64()));
1437
stack.Push(value.ValueKind, ValueTypeValue.FromDouble(-value.
Value
.AsDouble()));
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()),
1490
if (isDivRem && value2.
Value
.AsInt64() == 0)
1494
&& value1.
Value
.AsInt64() == long.MinValue && value2.
Value
.AsInt64() == -1)
1499
ILOpcode.or => value1.
Value
.AsInt64() | value2.
Value
.AsInt64(),
1500
ILOpcode.shl => value1.
Value
.AsInt64() << (int)value2.
Value
.AsInt64(),
1501
ILOpcode.add => value1.
Value
.AsInt64() + value2.
Value
.AsInt64(),
1502
ILOpcode.sub => value1.
Value
.AsInt64() - value2.
Value
.AsInt64(),
1503
ILOpcode.and => value1.
Value
.AsInt64() & value2.
Value
.AsInt64(),
1504
ILOpcode.mul => value1.
Value
.AsInt64() * value2.
Value
.AsInt64(),
1505
ILOpcode.div => value1.
Value
.AsInt64() / value2.
Value
.AsInt64(),
1506
ILOpcode.div_un => (long)((ulong)value1.
Value
.AsInt64() / (ulong)value2.
Value
.AsInt64()),
1507
ILOpcode.rem => value1.
Value
.AsInt64() % value2.
Value
.AsInt64(),
1508
ILOpcode.rem_un => (long)((ulong)value1.
Value
.AsInt64() % (ulong)value2.
Value
.AsInt64()),
1516
if (isDivRem && value2.
Value
.AsDouble() == 0)
1524
ILOpcode.add => value1.
Value
.AsDouble() + value2.
Value
.AsDouble(),
1525
ILOpcode.sub => value1.
Value
.AsDouble() - value2.
Value
.AsDouble(),
1526
ILOpcode.mul => value1.
Value
.AsDouble() * value2.
Value
.AsDouble(),
1527
ILOpcode.div => value1.
Value
.AsDouble() / value2.
Value
.AsDouble(),
1528
ILOpcode.rem => value1.
Value
.AsDouble() % value2.
Value
.AsDouble(),
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()
1558
if (reference.
Value
is not ByRefValue previousByRef)
1577
if (popped.
Value
is ArrayInstance arrayInstance)
1581
else if (popped.
Value
== null)
1624
if (array.
Value
is ArrayInstance arrayInstance)
1629
else if (array.
Value
== null)
1678
if (array.
Value
is ArrayInstance arrayInstance)
1685
else if (array.
Value
== null)
1689
else if (array.
Value
is ForeignTypeInstance)
1729
if (entry.
Value
is ObjectInstance objInst
1766
if (entry.
Value
is ByRefValueBase byRefVal
1806
_ => stack.Pop().
Value
1813
if (location.
Value
is not ByRefValueBase destValue)
1840
uint sizeBytes = (uint)size.
Value
.AsInt32();
1842
if (addr.
Value
is not ByRefValue addressValue)
1849
Array.Fill(addressValue.PointedToBytes, (byte)value.
Value
.AsInt32(), addressValue.PointedToOffset, (int)sizeBytes);
2042
value = entry.
Value
.AsInt32();
2049
long longValue = entry.
Value
.AsInt64();
2059
value = entry.
Value
.AsInt32();
2140
return popped.
Value
;
2146
int value = popped.
Value
.AsInt32();
2162
return popped.
Value
;
2166
if (locationType.IsByRef && popped.
Value
is ByRefValueBase)
2167
return popped.
Value
;
2175
long value = _target.PointerSize == 8 ? popped.
Value
.AsInt64() : popped.
Value
.AsInt32();
2194
return popped.
Value
;
2199
return popped.
Value
;
2205
return ValueTypeValue.FromSingle((float)popped.
Value
.AsDouble());
2213
return popped.
Value
;
2220
return popped.
Value
;
2224
|| ((BaseValueTypeValue)popped.
Value
).Size != ((DefType)locationType).InstanceFieldSize.AsInt)
2228
return popped.
Value
;