@@ -663,6 +663,7 @@ class BinaryOperation : public ByteCode {
663
663
const ByteCodeStackOffset* srcOffset () const { return m_srcOffset; }
664
664
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
665
665
void setDstOffset (ByteCodeStackOffset o) { m_dstOffset = o; }
666
+ void setSrcOffset (ByteCodeStackOffset o, size_t index) { m_srcOffset[index] = o; }
666
667
#if !defined(NDEBUG)
667
668
void dump (size_t pos)
668
669
{
@@ -705,6 +706,14 @@ class UnaryOperation : public ByteCode {
705
706
}
706
707
ByteCodeStackOffset srcOffset () const { return m_srcOffset; }
707
708
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
709
+ void setDstOffset (ByteCodeStackOffset newOffset)
710
+ {
711
+ m_dstOffset = newOffset;
712
+ }
713
+ void setSrcOffset (ByteCodeStackOffset newOffset)
714
+ {
715
+ m_srcOffset = newOffset;
716
+ }
708
717
#if !defined(NDEBUG)
709
718
void dump (size_t pos)
710
719
{
@@ -874,6 +883,14 @@ class Move32 : public ByteCode {
874
883
875
884
ByteCodeStackOffset srcOffset () const { return m_srcOffset; }
876
885
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
886
+ void setDstOffset (ByteCodeStackOffset newOffset)
887
+ {
888
+ m_dstOffset = newOffset;
889
+ }
890
+ void setSrcOffset (ByteCodeStackOffset newOffset)
891
+ {
892
+ m_srcOffset = newOffset;
893
+ }
877
894
878
895
#if !defined(NDEBUG)
879
896
void dump (size_t pos)
@@ -951,7 +968,9 @@ class Load32 : public ByteCode {
951
968
}
952
969
953
970
ByteCodeStackOffset srcOffset () const { return m_srcOffset; }
971
+ void setSrcOffset (ByteCodeStackOffset o) { m_srcOffset = o; }
954
972
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
973
+ void setDstOffset (ByteCodeStackOffset o) { m_dstOffset = o; }
955
974
956
975
#if !defined(NDEBUG)
957
976
void dump (size_t pos)
@@ -1003,7 +1022,9 @@ class Store32 : public ByteCode {
1003
1022
}
1004
1023
1005
1024
ByteCodeStackOffset src0Offset () const { return m_src0Offset; }
1025
+ void setSrc0Offset (ByteCodeStackOffset o) { m_src0Offset = o; }
1006
1026
ByteCodeStackOffset src1Offset () const { return m_src1Offset; }
1027
+ void setSrc1Offset (ByteCodeStackOffset o) { m_src1Offset = o; }
1007
1028
1008
1029
#if !defined(NDEBUG)
1009
1030
void dump (size_t pos)
@@ -1144,11 +1165,15 @@ class Select : public ByteCode {
1144
1165
}
1145
1166
1146
1167
ByteCodeStackOffset condOffset () const { return m_condOffset; }
1168
+ void setCondOffset (ByteCodeStackOffset o) { m_condOffset = o; }
1147
1169
uint16_t valueSize () const { return m_valueSize; }
1148
1170
bool isFloat () const { return m_isFloat != 0 ; }
1149
1171
ByteCodeStackOffset src0Offset () const { return m_src0Offset; }
1172
+ void setSrc0Offset (ByteCodeStackOffset o) { m_src0Offset = o; }
1150
1173
ByteCodeStackOffset src1Offset () const { return m_src1Offset; }
1174
+ void setSrc1Offset (ByteCodeStackOffset o) { m_src1Offset = o; }
1151
1175
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
1176
+ void setDstOffset (ByteCodeStackOffset o) { m_dstOffset = o; }
1152
1177
1153
1178
#if !defined(NDEBUG)
1154
1179
void dump (size_t pos)
@@ -1388,7 +1413,9 @@ class MemoryLoad : public ByteCode {
1388
1413
1389
1414
uint32_t offset () const { return m_offset; }
1390
1415
ByteCodeStackOffset srcOffset () const { return m_srcOffset; }
1416
+ void setSrcOffset (ByteCodeStackOffset o) { m_srcOffset = o; }
1391
1417
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
1418
+ void setDstOffset (ByteCodeStackOffset o) { m_dstOffset = o; }
1392
1419
1393
1420
#if !defined(NDEBUG)
1394
1421
void dump (size_t pos)
@@ -1486,7 +1513,9 @@ class MemoryStore : public ByteCode {
1486
1513
1487
1514
uint32_t offset () const { return m_offset; }
1488
1515
ByteCodeStackOffset src0Offset () const { return m_src0Offset; }
1516
+ void setSrc0Offset (ByteCodeStackOffset o) { m_src0Offset = o; }
1489
1517
ByteCodeStackOffset src1Offset () const { return m_src1Offset; }
1518
+ void setSrc1Offset (ByteCodeStackOffset o) { m_src1Offset = o; }
1490
1519
1491
1520
#if !defined(NDEBUG)
1492
1521
void dump (size_t pos)
@@ -2037,6 +2066,7 @@ class GlobalGet32 : public ByteCode {
2037
2066
}
2038
2067
2039
2068
ByteCodeStackOffset dstOffset () const { return m_dstOffset; }
2069
+ void setDstOffset (ByteCodeStackOffset o) { m_dstOffset = o; }
2040
2070
uint32_t index () const { return m_index; }
2041
2071
2042
2072
#if !defined(NDEBUG)
@@ -2255,7 +2285,7 @@ class End : public ByteCode {
2255
2285
{
2256
2286
}
2257
2287
2258
- ByteCodeStackOffset* resultOffsets () const
2288
+ ByteCodeStackOffset* resultOffsets ()
2259
2289
{
2260
2290
return reinterpret_cast <ByteCodeStackOffset*>(reinterpret_cast <size_t >(this ) + sizeof (End));
2261
2291
}
0 commit comments