1 write to Value
ILCompiler.Compiler (1)
Compiler\TypePreinit.cs (1)
3665
Value
= value;
206 references to Value
ILCompiler.Compiler (206)
Compiler\TypePreinit.cs (206)
701
StackValueKind.Int32 => entry.
Value
.AsInt32(),
703
? entry.
Value
.AsInt32() : entry.
Value
.AsInt64(),
737
if (instance.
Value
is not IHasInstanceFields settableInstance
757
var loadableInstance = instance.
Value
as IHasInstanceFields;
785
var loadableInstance = instance.
Value
as IHasInstanceFields;
813
Debug.Assert(popped.
Value
is ByRefValueBase);
814
stack.Push(StackValueKind.NativeInt, popped.
Value
);
818
int val = popped.
Value
.AsInt32();
865
long val = popped.
Value
.AsInt64();
909
double val = popped.
Value
.AsDouble();
1122
|| popped.
Value
is not ByRefValueBase byrefVal
1177
? condition.
Value
.AsInt32() == 0 : condition.
Value
.AsInt32() != 0;
1180
? condition.
Value
.AsInt64() == 0 : condition.
Value
.AsInt64() != 0;
1183
? condition.
Value
== null : condition.
Value
!= null;
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(),
1217
ILOpcode.blt_s => value1.
Value
.AsInt64() < value2.
Value
.AsInt64(),
1218
ILOpcode.blt_un_s => (ulong)value1.
Value
.AsInt64() < (ulong)value2.
Value
.AsInt64(),
1219
ILOpcode.bgt_s => value1.
Value
.AsInt64() > value2.
Value
.AsInt64(),
1220
ILOpcode.bgt_un_s => (ulong)value1.
Value
.AsInt64() > (ulong)value2.
Value
.AsInt64(),
1221
ILOpcode.bge_s => value1.
Value
.AsInt64() >= value2.
Value
.AsInt64(),
1222
ILOpcode.bge_un_s => (ulong)value1.
Value
.AsInt64() >= (ulong)value2.
Value
.AsInt64(),
1223
ILOpcode.beq_s => value1.
Value
.AsInt64() == value2.
Value
.AsInt64(),
1224
ILOpcode.bne_un_s => value1.
Value
.AsInt64() != value2.
Value
.AsInt64(),
1225
ILOpcode.ble_s => value1.
Value
.AsInt64() <= value2.
Value
.AsInt64(),
1226
ILOpcode.ble_un_s => (ulong)value1.
Value
.AsInt64() <= (ulong)value2.
Value
.AsInt64(),
1234
ILOpcode.blt_s => value1.
Value
.AsDouble() < value2.
Value
.AsDouble(),
1235
ILOpcode.blt_un_s => !(value1.
Value
.AsDouble() >= value2.
Value
.AsDouble()),
1236
ILOpcode.bgt_s => value1.
Value
.AsDouble() > value2.
Value
.AsDouble(),
1237
ILOpcode.bgt_un_s => !(value1.
Value
.AsDouble() <= value2.
Value
.AsDouble()),
1238
ILOpcode.bge_s => value1.
Value
.AsDouble() >= value2.
Value
.AsDouble(),
1239
ILOpcode.bge_un_s => !(value1.
Value
.AsDouble() < value2.
Value
.AsDouble()),
1240
ILOpcode.beq_s => value1.
Value
.AsDouble() == value2.
Value
.AsDouble(),
1241
ILOpcode.bne_un_s => value1.
Value
.AsDouble() != value2.
Value
.AsDouble(),
1242
ILOpcode.ble_s => value1.
Value
.AsDouble() <= value2.
Value
.AsDouble(),
1243
ILOpcode.ble_un_s => !(value1.
Value
.AsDouble() > value2.
Value
.AsDouble()),
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();
1338
condition = value1.
Value
.AsInt64() < value2.
Value
.AsInt64();
1340
condition = (ulong)value1.
Value
.AsInt64() < (ulong)value2.
Value
.AsInt64();
1342
condition = value1.
Value
.AsInt64() > value2.
Value
.AsInt64();
1344
condition = (ulong)value1.
Value
.AsInt64() > (ulong)value2.
Value
.AsInt64();
1351
condition = value1.
Value
.AsDouble() < value2.
Value
.AsDouble();
1353
condition = !(value1.
Value
.AsDouble() >= value2.
Value
.AsDouble());
1355
condition = value1.
Value
.AsDouble() > value2.
Value
.AsDouble();
1357
condition = !(value1.
Value
.AsDouble() <= value2.
Value
.AsDouble());
1364
condition = value1.
Value
== null && value2.
Value
!= null;
1387
compareResult = value1.
Value
.AsDouble() == value2.
Value
.AsDouble();
1390
|| !Value.TryCompareEquality(value1.
Value
, value2.
Value
, out compareResult))
1406
stack.Push(value.ValueKind, ValueTypeValue.FromInt32(-value.
Value
.AsInt32()));
1408
stack.Push(value.ValueKind, ValueTypeValue.FromInt64(-value.
Value
.AsInt64()));
1410
stack.Push(value.ValueKind, ValueTypeValue.FromDouble(-value.
Value
.AsDouble()));
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()),
1463
if (isDivRem && value2.
Value
.AsInt64() == 0)
1467
&& value1.
Value
.AsInt64() == long.MinValue && value2.
Value
.AsInt64() == -1)
1472
ILOpcode.or => value1.
Value
.AsInt64() | value2.
Value
.AsInt64(),
1473
ILOpcode.shl => value1.
Value
.AsInt64() << (int)value2.
Value
.AsInt64(),
1474
ILOpcode.add => value1.
Value
.AsInt64() + value2.
Value
.AsInt64(),
1475
ILOpcode.sub => value1.
Value
.AsInt64() - value2.
Value
.AsInt64(),
1476
ILOpcode.and => value1.
Value
.AsInt64() & value2.
Value
.AsInt64(),
1477
ILOpcode.mul => value1.
Value
.AsInt64() * value2.
Value
.AsInt64(),
1478
ILOpcode.div => value1.
Value
.AsInt64() / value2.
Value
.AsInt64(),
1479
ILOpcode.div_un => (long)((ulong)value1.
Value
.AsInt64() / (ulong)value2.
Value
.AsInt64()),
1480
ILOpcode.rem => value1.
Value
.AsInt64() % value2.
Value
.AsInt64(),
1481
ILOpcode.rem_un => (long)((ulong)value1.
Value
.AsInt64() % (ulong)value2.
Value
.AsInt64()),
1489
if (isDivRem && value2.
Value
.AsDouble() == 0)
1497
ILOpcode.add => value1.
Value
.AsDouble() + value2.
Value
.AsDouble(),
1498
ILOpcode.sub => value1.
Value
.AsDouble() - value2.
Value
.AsDouble(),
1499
ILOpcode.mul => value1.
Value
.AsDouble() * value2.
Value
.AsDouble(),
1500
ILOpcode.div => value1.
Value
.AsDouble() / value2.
Value
.AsDouble(),
1501
ILOpcode.rem => value1.
Value
.AsDouble() % value2.
Value
.AsDouble(),
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()
1531
if (reference.
Value
is not ByRefValue previousByRef)
1550
if (popped.
Value
is ArrayInstance arrayInstance)
1554
else if (popped.
Value
== null)
1597
if (array.
Value
is ArrayInstance arrayInstance)
1602
else if (array.
Value
== null)
1651
if (array.
Value
is ArrayInstance arrayInstance)
1658
else if (array.
Value
== null)
1662
else if (array.
Value
is ForeignTypeInstance)
1702
if (entry.
Value
is ObjectInstance objInst
1739
if (entry.
Value
is ByRefValueBase byRefVal
1779
_ => stack.Pop().
Value
1786
if (location.
Value
is not ByRefValueBase destValue)
1813
uint sizeBytes = (uint)size.
Value
.AsInt32();
1815
if (addr.
Value
is not ByRefValue addressValue)
1822
Array.Fill(addressValue.PointedToBytes, (byte)value.
Value
.AsInt32(), addressValue.PointedToOffset, (int)sizeBytes);
2015
value = entry.
Value
.AsInt32();
2022
long longValue = entry.
Value
.AsInt64();
2032
value = entry.
Value
.AsInt32();
2113
return popped.
Value
;
2119
int value = popped.
Value
.AsInt32();
2135
return popped.
Value
;
2139
if (locationType.IsByRef && popped.
Value
is ByRefValueBase)
2140
return popped.
Value
;
2148
long value = _target.PointerSize == 8 ? popped.
Value
.AsInt64() : popped.
Value
.AsInt32();
2167
return popped.
Value
;
2172
return popped.
Value
;
2178
return ValueTypeValue.FromSingle((float)popped.
Value
.AsDouble());
2186
return popped.
Value
;
2193
return popped.
Value
;
2197
|| ((BaseValueTypeValue)popped.
Value
).Size != ((DefType)locationType).InstanceFieldSize.AsInt)
2201
return popped.
Value
;