@@ -767,6 +767,7 @@ class BinaryOperation : public ByteCode {
767
767
const ByteCodeStackOffset* srcOffset () const { return m_srcOffset; }
768
768
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
769
769
void setDstOffset (ByteCodeStackOffset o) { m_dstOffset = o; }
770
+ void setSrcOffset (ByteCodeStackOffset o, size_t index) { m_srcOffset[index] = o; }
770
771
#if !defined(NDEBUG)
771
772
void dump (size_t pos)
772
773
{
@@ -809,6 +810,14 @@ class UnaryOperation : public ByteCode {
809
810
}
810
811
ByteCodeStackOffset srcOffset () const { return m_srcOffset; }
811
812
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
813
+ void setDstOffset (ByteCodeStackOffset newOffset)
814
+ {
815
+ m_dstOffset = newOffset;
816
+ }
817
+ void setSrcOffset (ByteCodeStackOffset newOffset)
818
+ {
819
+ m_srcOffset = newOffset;
820
+ }
812
821
#if !defined(NDEBUG)
813
822
void dump (size_t pos)
814
823
{
@@ -860,7 +869,9 @@ class Move : public ByteCode {
860
869
}
861
870
862
871
ByteCodeStackOffset srcOffset () const { return m_srcOffset; }
872
+ void setSrcOffset (ByteCodeStackOffset o) { m_srcOffset = o; }
863
873
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
874
+ void setDstOffset (ByteCodeStackOffset o) { m_dstOffset = o; }
864
875
865
876
protected:
866
877
ByteCodeStackOffset m_srcOffset;
@@ -1015,7 +1026,9 @@ class Load32 : public ByteCode {
1015
1026
}
1016
1027
1017
1028
ByteCodeStackOffset srcOffset () const { return m_srcOffset; }
1029
+ void setSrcOffset (ByteCodeStackOffset o) { m_srcOffset = o; }
1018
1030
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
1031
+ void setDstOffset (ByteCodeStackOffset o) { m_dstOffset = o; }
1019
1032
1020
1033
#if !defined(NDEBUG)
1021
1034
void dump (size_t pos)
@@ -1067,7 +1080,9 @@ class Store32 : public ByteCode {
1067
1080
}
1068
1081
1069
1082
ByteCodeStackOffset src0Offset () const { return m_src0Offset; }
1083
+ void setSrc0Offset (ByteCodeStackOffset o) { m_src0Offset = o; }
1070
1084
ByteCodeStackOffset src1Offset () const { return m_src1Offset; }
1085
+ void setSrc1Offset (ByteCodeStackOffset o) { m_src1Offset = o; }
1071
1086
1072
1087
#if !defined(NDEBUG)
1073
1088
void dump (size_t pos)
@@ -1144,6 +1159,7 @@ class JumpIfTrue : public ByteCode {
1144
1159
}
1145
1160
1146
1161
ByteCodeStackOffset srcOffset () const { return m_srcOffset; }
1162
+ void setSrcOffset (ByteCodeStackOffset o) { m_srcOffset = o; }
1147
1163
int32_t offset () const { return m_offset; }
1148
1164
void setOffset (int32_t offset)
1149
1165
{
@@ -1174,6 +1190,7 @@ class JumpIfFalse : public ByteCode {
1174
1190
}
1175
1191
1176
1192
ByteCodeStackOffset srcOffset () const { return m_srcOffset; }
1193
+ void setSrcOffset (ByteCodeStackOffset o) { m_srcOffset = o; }
1177
1194
int32_t offset () const { return m_offset; }
1178
1195
void setOffset (int32_t offset)
1179
1196
{
@@ -1208,11 +1225,15 @@ class Select : public ByteCode {
1208
1225
}
1209
1226
1210
1227
ByteCodeStackOffset condOffset () const { return m_condOffset; }
1228
+ void setCondOffset (ByteCodeStackOffset o) { m_condOffset = o; }
1211
1229
uint16_t valueSize () const { return m_valueSize; }
1212
1230
bool isFloat () const { return m_isFloat != 0 ; }
1213
1231
ByteCodeStackOffset src0Offset () const { return m_src0Offset; }
1232
+ void setSrc0Offset (ByteCodeStackOffset o) { m_src0Offset = o; }
1214
1233
ByteCodeStackOffset src1Offset () const { return m_src1Offset; }
1234
+ void setSrc1Offset (ByteCodeStackOffset o) { m_src1Offset = o; }
1215
1235
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
1236
+ void setDstOffset (ByteCodeStackOffset o) { m_dstOffset = o; }
1216
1237
1217
1238
#if !defined(NDEBUG)
1218
1239
void dump (size_t pos)
@@ -1245,6 +1266,7 @@ class BrTable : public ByteCode {
1245
1266
}
1246
1267
1247
1268
ByteCodeStackOffset condOffset () const { return m_condOffset; }
1269
+ void setCondOffset (ByteCodeStackOffset o) { m_condOffset = o; }
1248
1270
int32_t defaultOffset () const { return m_defaultOffset; }
1249
1271
static inline size_t offsetOfDefault () { return offsetof (BrTable, m_defaultOffset); }
1250
1272
@@ -1283,6 +1305,7 @@ class MemorySize : public ByteCode {
1283
1305
}
1284
1306
1285
1307
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
1308
+ void setDstOffset (ByteCodeStackOffset o) { m_dstOffset = o; }
1286
1309
1287
1310
#if !defined(NDEBUG)
1288
1311
void dump (size_t pos)
@@ -1315,6 +1338,10 @@ class MemoryInit : public ByteCode {
1315
1338
{
1316
1339
return m_srcOffsets;
1317
1340
}
1341
+ void setSrcOffset (ByteCodeStackOffset o, size_t idx)
1342
+ {
1343
+ m_srcOffsets[idx] = o;
1344
+ }
1318
1345
1319
1346
#if !defined(NDEBUG)
1320
1347
void dump (size_t pos)
@@ -1346,6 +1373,10 @@ class MemoryCopy : public ByteCode {
1346
1373
{
1347
1374
return m_srcOffsets;
1348
1375
}
1376
+ void setSrcOffset (ByteCodeStackOffset o, size_t idx)
1377
+ {
1378
+ m_srcOffsets[idx] = o;
1379
+ }
1349
1380
1350
1381
#if !defined(NDEBUG)
1351
1382
void dump (size_t pos)
@@ -1373,6 +1404,10 @@ class MemoryFill : public ByteCode {
1373
1404
{
1374
1405
return m_srcOffsets;
1375
1406
}
1407
+ void setSrcOffset (ByteCodeStackOffset o, size_t idx)
1408
+ {
1409
+ m_srcOffsets[idx] = o;
1410
+ }
1376
1411
1377
1412
#if !defined(NDEBUG)
1378
1413
void dump (size_t pos)
@@ -1423,7 +1458,9 @@ class MemoryGrow : public ByteCode {
1423
1458
}
1424
1459
1425
1460
ByteCodeStackOffset srcOffset () const { return m_srcOffset; }
1461
+ void setSrcOffset (ByteCodeStackOffset o) { m_srcOffset = o; }
1426
1462
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
1463
+ void setDstOffset (ByteCodeStackOffset o) { m_dstOffset = o; }
1427
1464
1428
1465
#if !defined(NDEBUG)
1429
1466
void dump (size_t pos)
@@ -1452,7 +1489,9 @@ class MemoryLoad : public ByteCode {
1452
1489
1453
1490
uint32_t offset () const { return m_offset; }
1454
1491
ByteCodeStackOffset srcOffset () const { return m_srcOffset; }
1492
+ void setSrcOffset (ByteCodeStackOffset o) { m_srcOffset = o; }
1455
1493
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
1494
+ void setDstOffset (ByteCodeStackOffset o) { m_dstOffset = o; }
1456
1495
1457
1496
#if !defined(NDEBUG)
1458
1497
void dump (size_t pos)
@@ -1481,8 +1520,11 @@ class SIMDMemoryLoad : public ByteCode {
1481
1520
uint32_t offset () const { return m_offset; }
1482
1521
ByteCodeStackOffset index () const { return m_index; }
1483
1522
ByteCodeStackOffset src0Offset () const { return m_src0Offset; }
1523
+ void setSrc0Offset (ByteCodeStackOffset o) { m_src0Offset = o; }
1484
1524
ByteCodeStackOffset src1Offset () const { return m_src1Offset; }
1525
+ void setSrc1Offset (ByteCodeStackOffset o) { m_src1Offset = o; }
1485
1526
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
1527
+ void setDstOffset (ByteCodeStackOffset o) { m_dstOffset = o; }
1486
1528
1487
1529
#if !defined(NDEBUG)
1488
1530
void dump (size_t pos)
@@ -1550,7 +1592,9 @@ class MemoryStore : public ByteCode {
1550
1592
1551
1593
uint32_t offset () const { return m_offset; }
1552
1594
ByteCodeStackOffset src0Offset () const { return m_src0Offset; }
1595
+ void setSrc0Offset (ByteCodeStackOffset o) { m_src0Offset = o; }
1553
1596
ByteCodeStackOffset src1Offset () const { return m_src1Offset; }
1597
+ void setSrc1Offset (ByteCodeStackOffset o) { m_src1Offset = o; }
1554
1598
1555
1599
#if !defined(NDEBUG)
1556
1600
void dump (size_t pos)
@@ -1577,8 +1621,11 @@ class SIMDMemoryStore : public ByteCode {
1577
1621
1578
1622
uint32_t offset () const { return m_offset; }
1579
1623
ByteCodeStackOffset index () const { return m_index; }
1624
+ void setIndex (ByteCodeStackOffset o) { m_index = o; }
1580
1625
ByteCodeStackOffset src0Offset () const { return m_src0Offset; }
1626
+ void setSrc0Offset (ByteCodeStackOffset o) { m_src0Offset = o; }
1581
1627
ByteCodeStackOffset src1Offset () const { return m_src1Offset; }
1628
+ void setSrc1Offset (ByteCodeStackOffset o) { m_src1Offset = o; }
1582
1629
1583
1630
#if !defined(NDEBUG)
1584
1631
void dump (size_t pos)
@@ -1604,8 +1651,11 @@ class SIMDExtractLane : public ByteCode {
1604
1651
}
1605
1652
1606
1653
ByteCodeStackOffset index () const { return m_index; }
1654
+ void setIndex (ByteCodeStackOffset o) { m_index = o; }
1607
1655
ByteCodeStackOffset srcOffset () const { return m_srcOffset; }
1656
+ void setSrcOffset (ByteCodeStackOffset o) { m_srcOffset = o; }
1608
1657
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
1658
+ void setDstOffset (ByteCodeStackOffset o) { m_dstOffset = o; }
1609
1659
1610
1660
#if !defined(NDEBUG)
1611
1661
void dump (size_t pos)
@@ -1631,7 +1681,9 @@ class SIMDReplaceLane : public ByteCode {
1631
1681
1632
1682
uint32_t index () const { return m_index; }
1633
1683
const ByteCodeStackOffset* srcOffsets () const { return m_srcOffsets; }
1684
+ void setSrcOffset (ByteCodeStackOffset o, size_t idx) { m_srcOffsets[idx] = o; }
1634
1685
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
1686
+ void setDstOffset (ByteCodeStackOffset o) { m_dstOffset = o; }
1635
1687
1636
1688
#if !defined(NDEBUG)
1637
1689
void dump (size_t pos)
@@ -1954,7 +2006,12 @@ class V128BitSelect : public ByteCode {
1954
2006
{
1955
2007
return m_srcOffsets;
1956
2008
}
2009
+ void setSrcOffset (ByteCodeStackOffset o, size_t idx)
2010
+ {
2011
+ m_srcOffsets[idx] = o;
2012
+ }
1957
2013
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
2014
+ void setDstOffset (ByteCodeStackOffset o) { m_dstOffset = o; }
1958
2015
1959
2016
#if !defined(NDEBUG)
1960
2017
void dump (size_t pos)
@@ -2010,7 +2067,9 @@ class I8X16Shuffle : public ByteCode {
2010
2067
}
2011
2068
2012
2069
const ByteCodeStackOffset* srcOffsets () const { return m_srcOffsets; }
2070
+ void setSrcOffset (ByteCodeStackOffset o, size_t idx) { m_srcOffsets[idx] = o; }
2013
2071
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
2072
+ void setDstOffset (ByteCodeStackOffset o) { m_dstOffset = o; }
2014
2073
const uint8_t * value () const { return m_value; }
2015
2074
2016
2075
#if !defined(NDEBUG)
@@ -2037,7 +2096,9 @@ class TableGet : public ByteCode {
2037
2096
2038
2097
uint32_t tableIndex () const { return m_tableIndex; }
2039
2098
ByteCodeStackOffset srcOffset () const { return m_srcOffset; }
2099
+ void setSrcOffset (ByteCodeStackOffset o) { m_srcOffset = o; }
2040
2100
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
2101
+ void setDstOffset (ByteCodeStackOffset o) { m_dstOffset = o; }
2041
2102
2042
2103
#if !defined(NDEBUG)
2043
2104
void dump (size_t pos)
@@ -2066,7 +2127,9 @@ class TableSet : public ByteCode {
2066
2127
}
2067
2128
2068
2129
ByteCodeStackOffset src0Offset () const { return m_src0Offset; }
2130
+ void setSrc0Offset (ByteCodeStackOffset o) { m_src0Offset = o; }
2069
2131
ByteCodeStackOffset src1Offset () const { return m_src1Offset; }
2132
+ void setSrc1Offset (ByteCodeStackOffset o) { m_src1Offset = o; }
2070
2133
uint32_t tableIndex () const { return m_tableIndex; }
2071
2134
2072
2135
#if !defined(NDEBUG)
@@ -2098,8 +2161,11 @@ class TableGrow : public ByteCode {
2098
2161
2099
2162
uint32_t tableIndex () const { return m_tableIndex; }
2100
2163
ByteCodeStackOffset src0Offset () const { return m_src0Offset; }
2164
+ void setSrc0Offset (ByteCodeStackOffset o) { m_src0Offset = o; }
2101
2165
ByteCodeStackOffset src1Offset () const { return m_src1Offset; }
2166
+ void setSrc1Offset (ByteCodeStackOffset o) { m_src1Offset = o; }
2102
2167
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
2168
+ void setDstOffset (ByteCodeStackOffset o) { m_dstOffset = o; }
2103
2169
2104
2170
#if !defined(NDEBUG)
2105
2171
void dump (size_t pos)
@@ -2130,6 +2196,7 @@ class TableSize : public ByteCode {
2130
2196
2131
2197
uint32_t tableIndex () const { return m_tableIndex; }
2132
2198
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
2199
+ void setDstOffset (ByteCodeStackOffset o) { m_dstOffset = o; }
2133
2200
2134
2201
#if !defined(NDEBUG)
2135
2202
void dump (size_t pos)
@@ -2161,6 +2228,10 @@ class TableCopy : public ByteCode {
2161
2228
{
2162
2229
return m_srcOffsets;
2163
2230
}
2231
+ void setSrcOffset (ByteCodeStackOffset o, size_t idx)
2232
+ {
2233
+ m_srcOffsets[idx] = o;
2234
+ }
2164
2235
2165
2236
#if !defined(NDEBUG)
2166
2237
void dump (size_t pos)
@@ -2193,6 +2264,11 @@ class TableFill : public ByteCode {
2193
2264
{
2194
2265
return m_srcOffsets;
2195
2266
}
2267
+ void setSrcOffset (ByteCodeStackOffset o, size_t idx)
2268
+ {
2269
+ m_srcOffsets[idx] = o;
2270
+ }
2271
+
2196
2272
#if !defined(NDEBUG)
2197
2273
void dump (size_t pos)
2198
2274
{
@@ -2225,6 +2301,11 @@ class TableInit : public ByteCode {
2225
2301
{
2226
2302
return m_srcOffsets;
2227
2303
}
2304
+ void setSrcOffset (ByteCodeStackOffset o, size_t idx)
2305
+ {
2306
+ m_srcOffsets[idx] = o;
2307
+ }
2308
+
2228
2309
#if !defined(NDEBUG)
2229
2310
void dump (size_t pos)
2230
2311
{
@@ -2276,6 +2357,7 @@ class RefFunc : public ByteCode {
2276
2357
}
2277
2358
2278
2359
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
2360
+ void setDstOffset (ByteCodeStackOffset o) { m_dstOffset = o; }
2279
2361
uint32_t funcIndex () const { return m_funcIndex; }
2280
2362
2281
2363
#if !defined(NDEBUG)
@@ -2302,6 +2384,7 @@ class GlobalGet32 : public ByteCode {
2302
2384
}
2303
2385
2304
2386
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
2387
+ void setDstOffset (ByteCodeStackOffset o) { m_dstOffset = o; }
2305
2388
uint32_t index () const { return m_index; }
2306
2389
2307
2390
#if !defined(NDEBUG)
@@ -2382,6 +2465,7 @@ class GlobalSet32 : public ByteCode {
2382
2465
{
2383
2466
}
2384
2467
2468
+ void setSrcOffset (ByteCodeStackOffset o) { m_srcOffset = o; }
2385
2469
ByteCodeStackOffset srcOffset () const { return m_srcOffset; }
2386
2470
uint32_t index () const { return m_index; }
2387
2471
0 commit comments