@@ -665,6 +665,7 @@ class BinaryOperation : public ByteCode {
665
665
const ByteCodeStackOffset* srcOffset () const { return m_srcOffset; }
666
666
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
667
667
void setDstOffset (ByteCodeStackOffset o) { m_dstOffset = o; }
668
+ void setSrcOffset (ByteCodeStackOffset o, size_t index) { m_srcOffset[index] = o; }
668
669
#if !defined(NDEBUG)
669
670
void dump (size_t pos)
670
671
{
@@ -707,6 +708,14 @@ class UnaryOperation : public ByteCode {
707
708
}
708
709
ByteCodeStackOffset srcOffset () const { return m_srcOffset; }
709
710
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
711
+ void setDstOffset (ByteCodeStackOffset newOffset)
712
+ {
713
+ m_dstOffset = newOffset;
714
+ }
715
+ void setSrcOffset (ByteCodeStackOffset newOffset)
716
+ {
717
+ m_srcOffset = newOffset;
718
+ }
710
719
#if !defined(NDEBUG)
711
720
void dump (size_t pos)
712
721
{
@@ -876,6 +885,14 @@ class Move : public ByteCode {
876
885
877
886
ByteCodeStackOffset srcOffset () const { return m_srcOffset; }
878
887
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
888
+ void setDstOffset (ByteCodeStackOffset newOffset)
889
+ {
890
+ m_dstOffset = newOffset;
891
+ }
892
+ void setSrcOffset (ByteCodeStackOffset newOffset)
893
+ {
894
+ m_srcOffset = newOffset;
895
+ }
879
896
880
897
protected:
881
898
ByteCodeStackOffset m_srcOffset;
@@ -977,7 +994,9 @@ class Load32 : public ByteCode {
977
994
}
978
995
979
996
ByteCodeStackOffset srcOffset () const { return m_srcOffset; }
997
+ void setSrcOffset (ByteCodeStackOffset o) { m_srcOffset = o; }
980
998
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
999
+ void setDstOffset (ByteCodeStackOffset o) { m_dstOffset = o; }
981
1000
982
1001
#if !defined(NDEBUG)
983
1002
void dump (size_t pos)
@@ -1029,7 +1048,9 @@ class Store32 : public ByteCode {
1029
1048
}
1030
1049
1031
1050
ByteCodeStackOffset src0Offset () const { return m_src0Offset; }
1051
+ void setSrc0Offset (ByteCodeStackOffset o) { m_src0Offset = o; }
1032
1052
ByteCodeStackOffset src1Offset () const { return m_src1Offset; }
1053
+ void setSrc1Offset (ByteCodeStackOffset o) { m_src1Offset = o; }
1033
1054
1034
1055
#if !defined(NDEBUG)
1035
1056
void dump (size_t pos)
@@ -1170,11 +1191,15 @@ class Select : public ByteCode {
1170
1191
}
1171
1192
1172
1193
ByteCodeStackOffset condOffset () const { return m_condOffset; }
1194
+ void setCondOffset (ByteCodeStackOffset o) { m_condOffset = o; }
1173
1195
uint16_t valueSize () const { return m_valueSize; }
1174
1196
bool isFloat () const { return m_isFloat != 0 ; }
1175
1197
ByteCodeStackOffset src0Offset () const { return m_src0Offset; }
1198
+ void setSrc0Offset (ByteCodeStackOffset o) { m_src0Offset = o; }
1176
1199
ByteCodeStackOffset src1Offset () const { return m_src1Offset; }
1200
+ void setSrc1Offset (ByteCodeStackOffset o) { m_src1Offset = o; }
1177
1201
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
1202
+ void setDstOffset (ByteCodeStackOffset o) { m_dstOffset = o; }
1178
1203
1179
1204
#if !defined(NDEBUG)
1180
1205
void dump (size_t pos)
@@ -1414,7 +1439,9 @@ class MemoryLoad : public ByteCode {
1414
1439
1415
1440
uint32_t offset () const { return m_offset; }
1416
1441
ByteCodeStackOffset srcOffset () const { return m_srcOffset; }
1442
+ void setSrcOffset (ByteCodeStackOffset o) { m_srcOffset = o; }
1417
1443
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
1444
+ void setDstOffset (ByteCodeStackOffset o) { m_dstOffset = o; }
1418
1445
1419
1446
#if !defined(NDEBUG)
1420
1447
void dump (size_t pos)
@@ -1512,7 +1539,9 @@ class MemoryStore : public ByteCode {
1512
1539
1513
1540
uint32_t offset () const { return m_offset; }
1514
1541
ByteCodeStackOffset src0Offset () const { return m_src0Offset; }
1542
+ void setSrc0Offset (ByteCodeStackOffset o) { m_src0Offset = o; }
1515
1543
ByteCodeStackOffset src1Offset () const { return m_src1Offset; }
1544
+ void setSrc1Offset (ByteCodeStackOffset o) { m_src1Offset = o; }
1516
1545
1517
1546
#if !defined(NDEBUG)
1518
1547
void dump (size_t pos)
@@ -2063,6 +2092,7 @@ class GlobalGet32 : public ByteCode {
2063
2092
}
2064
2093
2065
2094
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
2095
+ void setDstOffset (ByteCodeStackOffset o) { m_dstOffset = o; }
2066
2096
uint32_t index () const { return m_index; }
2067
2097
2068
2098
#if !defined(NDEBUG)
0 commit comments