1 write to Value
ILCompiler.Compiler (1)
Compiler\TypePreinit.cs (1)
3717
Value
= value;
206 references to Value
ILCompiler.Compiler (206)
Compiler\TypePreinit.cs (206)
324
entry = new StackEntry(entry.ValueKind, entry.
Value
.Clone());
719
StackValueKind.Int32 => entry.
Value
.AsInt32(),
721
? entry.
Value
.AsInt32() : entry.
Value
.AsInt64(),
755
if (instance.
Value
is not IHasInstanceFields settableInstance
775
var loadableInstance = instance.
Value
as IHasInstanceFields;
803
var loadableInstance = instance.
Value
as IHasInstanceFields;
831
Debug.Assert(popped.
Value
is ByRefValueBase);
832
stack.Push(StackValueKind.NativeInt, popped.
Value
);
836
int val = popped.
Value
.AsInt32();
883
long val = popped.
Value
.AsInt64();
927
double val = popped.
Value
.AsDouble();
1140
|| popped.
Value
is not ByRefValueBase byrefVal
1195
? condition.
Value
.AsInt32() == 0 : condition.
Value
.AsInt32() != 0;
1198
? condition.
Value
.AsInt64() == 0 : condition.
Value
.AsInt64() != 0;
1201
? condition.
Value
== null : condition.
Value
!= null;
1218
ILOpcode.blt_s => value1.
Value
.AsInt32() < value2.
Value
.AsInt32(),
1219
ILOpcode.blt_un_s => (uint)value1.
Value
.AsInt32() < (uint)value2.
Value
.AsInt32(),
1220
ILOpcode.bgt_s => value1.
Value
.AsInt32() > value2.
Value
.AsInt32(),
1221
ILOpcode.bgt_un_s => (uint)value1.
Value
.AsInt32() > (uint)value2.
Value
.AsInt32(),
1222
ILOpcode.bge_s => value1.
Value
.AsInt32() >= value2.
Value
.AsInt32(),
1223
ILOpcode.bge_un_s => (uint)value1.
Value
.AsInt32() >= (uint)value2.
Value
.AsInt32(),
1224
ILOpcode.beq_s => value1.
Value
.AsInt32() == value2.
Value
.AsInt32(),
1225
ILOpcode.bne_un_s => value1.
Value
.AsInt32() != value2.
Value
.AsInt32(),
1226
ILOpcode.ble_s => value1.
Value
.AsInt32() <= value2.
Value
.AsInt32(),
1227
ILOpcode.ble_un_s => (uint)value1.
Value
.AsInt32() <= (uint)value2.
Value
.AsInt32(),
1235
ILOpcode.blt_s => value1.
Value
.AsInt64() < value2.
Value
.AsInt64(),
1236
ILOpcode.blt_un_s => (ulong)value1.
Value
.AsInt64() < (ulong)value2.
Value
.AsInt64(),
1237
ILOpcode.bgt_s => value1.
Value
.AsInt64() > value2.
Value
.AsInt64(),
1238
ILOpcode.bgt_un_s => (ulong)value1.
Value
.AsInt64() > (ulong)value2.
Value
.AsInt64(),
1239
ILOpcode.bge_s => value1.
Value
.AsInt64() >= value2.
Value
.AsInt64(),
1240
ILOpcode.bge_un_s => (ulong)value1.
Value
.AsInt64() >= (ulong)value2.
Value
.AsInt64(),
1241
ILOpcode.beq_s => value1.
Value
.AsInt64() == value2.
Value
.AsInt64(),
1242
ILOpcode.bne_un_s => value1.
Value
.AsInt64() != value2.
Value
.AsInt64(),
1243
ILOpcode.ble_s => value1.
Value
.AsInt64() <= value2.
Value
.AsInt64(),
1244
ILOpcode.ble_un_s => (ulong)value1.
Value
.AsInt64() <= (ulong)value2.
Value
.AsInt64(),
1252
ILOpcode.blt_s => value1.
Value
.AsDouble() < value2.
Value
.AsDouble(),
1253
ILOpcode.blt_un_s => !(value1.
Value
.AsDouble() >= value2.
Value
.AsDouble()),
1254
ILOpcode.bgt_s => value1.
Value
.AsDouble() > value2.
Value
.AsDouble(),
1255
ILOpcode.bgt_un_s => !(value1.
Value
.AsDouble() <= value2.
Value
.AsDouble()),
1256
ILOpcode.bge_s => value1.
Value
.AsDouble() >= value2.
Value
.AsDouble(),
1257
ILOpcode.bge_un_s => !(value1.
Value
.AsDouble() < value2.
Value
.AsDouble()),
1258
ILOpcode.beq_s => value1.
Value
.AsDouble() == value2.
Value
.AsDouble(),
1259
ILOpcode.bne_un_s => value1.
Value
.AsDouble() != value2.
Value
.AsDouble(),
1260
ILOpcode.ble_s => value1.
Value
.AsDouble() <= value2.
Value
.AsDouble(),
1261
ILOpcode.ble_un_s => !(value1.
Value
.AsDouble() > value2.
Value
.AsDouble()),
1289
uint target = (uint)val.
Value
.AsInt32();
1343
condition = value1.
Value
.AsInt32() < value2.
Value
.AsInt32();
1345
condition = (uint)value1.
Value
.AsInt32() < (uint)value2.
Value
.AsInt32();
1347
condition = value1.
Value
.AsInt32() > value2.
Value
.AsInt32();
1349
condition = (uint)value1.
Value
.AsInt32() > (uint)value2.
Value
.AsInt32();
1356
condition = value1.
Value
.AsInt64() < value2.
Value
.AsInt64();
1358
condition = (ulong)value1.
Value
.AsInt64() < (ulong)value2.
Value
.AsInt64();
1360
condition = value1.
Value
.AsInt64() > value2.
Value
.AsInt64();
1362
condition = (ulong)value1.
Value
.AsInt64() > (ulong)value2.
Value
.AsInt64();
1369
condition = value1.
Value
.AsDouble() < value2.
Value
.AsDouble();
1371
condition = !(value1.
Value
.AsDouble() >= value2.
Value
.AsDouble());
1373
condition = value1.
Value
.AsDouble() > value2.
Value
.AsDouble();
1375
condition = !(value1.
Value
.AsDouble() <= value2.
Value
.AsDouble());
1382
condition = value1.
Value
== null && value2.
Value
!= null;
1405
compareResult = value1.
Value
.AsDouble() == value2.
Value
.AsDouble();
1408
|| !Value.TryCompareEquality(value1.
Value
, value2.
Value
, out compareResult))
1424
stack.Push(value.ValueKind, ValueTypeValue.FromInt32(-value.
Value
.AsInt32()));
1426
stack.Push(value.ValueKind, ValueTypeValue.FromInt64(-value.
Value
.AsInt64()));
1428
stack.Push(value.ValueKind, ValueTypeValue.FromDouble(-value.
Value
.AsDouble()));
1455
if (isDivRem && value2.
Value
.AsInt32() == 0)
1459
&& value1.
Value
.AsInt32() == int.MinValue && value2.
Value
.AsInt32() == -1)
1464
ILOpcode.or => value1.
Value
.AsInt32() | value2.
Value
.AsInt32(),
1465
ILOpcode.shl => value1.
Value
.AsInt32() << value2.
Value
.AsInt32(),
1466
ILOpcode.add => value1.
Value
.AsInt32() + value2.
Value
.AsInt32(),
1467
ILOpcode.sub => value1.
Value
.AsInt32() - value2.
Value
.AsInt32(),
1468
ILOpcode.and => value1.
Value
.AsInt32() & value2.
Value
.AsInt32(),
1469
ILOpcode.mul => value1.
Value
.AsInt32() * value2.
Value
.AsInt32(),
1470
ILOpcode.div => value1.
Value
.AsInt32() / value2.
Value
.AsInt32(),
1471
ILOpcode.div_un => (int)((uint)value1.
Value
.AsInt32() / (uint)value2.
Value
.AsInt32()),
1472
ILOpcode.rem => value1.
Value
.AsInt32() % value2.
Value
.AsInt32(),
1473
ILOpcode.rem_un => (int)((uint)value1.
Value
.AsInt32() % (uint)value2.
Value
.AsInt32()),
1481
if (isDivRem && value2.
Value
.AsInt64() == 0)
1485
&& value1.
Value
.AsInt64() == long.MinValue && value2.
Value
.AsInt64() == -1)
1490
ILOpcode.or => value1.
Value
.AsInt64() | value2.
Value
.AsInt64(),
1491
ILOpcode.shl => value1.
Value
.AsInt64() << (int)value2.
Value
.AsInt64(),
1492
ILOpcode.add => value1.
Value
.AsInt64() + value2.
Value
.AsInt64(),
1493
ILOpcode.sub => value1.
Value
.AsInt64() - value2.
Value
.AsInt64(),
1494
ILOpcode.and => value1.
Value
.AsInt64() & value2.
Value
.AsInt64(),
1495
ILOpcode.mul => value1.
Value
.AsInt64() * value2.
Value
.AsInt64(),
1496
ILOpcode.div => value1.
Value
.AsInt64() / value2.
Value
.AsInt64(),
1497
ILOpcode.div_un => (long)((ulong)value1.
Value
.AsInt64() / (ulong)value2.
Value
.AsInt64()),
1498
ILOpcode.rem => value1.
Value
.AsInt64() % value2.
Value
.AsInt64(),
1499
ILOpcode.rem_un => (long)((ulong)value1.
Value
.AsInt64() % (ulong)value2.
Value
.AsInt64()),
1507
if (isDivRem && value2.
Value
.AsDouble() == 0)
1515
ILOpcode.add => value1.
Value
.AsDouble() + value2.
Value
.AsDouble(),
1516
ILOpcode.sub => value1.
Value
.AsDouble() - value2.
Value
.AsDouble(),
1517
ILOpcode.mul => value1.
Value
.AsDouble() * value2.
Value
.AsDouble(),
1518
ILOpcode.div => value1.
Value
.AsDouble() / value2.
Value
.AsDouble(),
1519
ILOpcode.rem => value1.
Value
.AsDouble() % value2.
Value
.AsDouble(),
1528
long result = value1.
Value
.AsInt64() << value2.
Value
.AsInt32();
1545
StackValueKind.Int32 => addend.
Value
.AsInt32(),
1546
_ => context.Target.PointerSize == 8 ? addend.
Value
.AsInt64() : addend.
Value
.AsInt32()
1549
if (reference.
Value
is not ByRefValue previousByRef)
1568
if (popped.
Value
is ArrayInstance arrayInstance)
1572
else if (popped.
Value
== null)
1615
if (array.
Value
is ArrayInstance arrayInstance)
1620
else if (array.
Value
== null)
1669
if (array.
Value
is ArrayInstance arrayInstance)
1676
else if (array.
Value
== null)
1680
else if (array.
Value
is ForeignTypeInstance)
1723
if (entry.
Value
is ObjectInstance objInst
1760
if (entry.
Value
is ByRefValueBase byRefVal
1794
if (location.
Value
is not ByRefValueBase destValue)
1821
uint sizeBytes = (uint)size.
Value
.AsInt32();
1823
if (addr.
Value
is not ByRefValue addressValue)
1830
Array.Fill(addressValue.PointedToBytes, (byte)value.
Value
.AsInt32(), addressValue.PointedToOffset, (int)sizeBytes);
2024
value = entry.
Value
.AsInt32();
2031
long longValue = entry.
Value
.AsInt64();
2041
value = entry.
Value
.AsInt32();
2122
return popped.
Value
;
2128
int value = popped.
Value
.AsInt32();
2144
return popped.
Value
;
2148
if (locationType.IsByRef && popped.
Value
is ByRefValueBase)
2149
return popped.
Value
;
2157
long value = _target.PointerSize == 8 ? popped.
Value
.AsInt64() : popped.
Value
.AsInt32();
2176
return popped.
Value
;
2181
return popped.
Value
;
2187
return ValueTypeValue.FromSingle((float)popped.
Value
.AsDouble());
2195
return popped.
Value
;
2202
return popped.
Value
;
2206
|| ((BaseValueTypeValue)popped.
Value
).Size != ((DefType)locationType).InstanceFieldSize.AsInt)
2210
return popped.
Value
;