make literal optimisation more reliable

fixes spanish Pokemon HeartGold
This commit is contained in:
RSDuck
2019-11-03 15:33:20 +01:00
parent 803c61e126
commit 386100c053
4 changed files with 77 additions and 14 deletions

View File

@ -63,7 +63,7 @@ struct __attribute__((packed)) TinyVector
{
T* Data = NULL;
u16 Capacity = 0;
u32 Length = 0; // make it 32 bit so we don't need movzx
u16 Length = 0;
~TinyVector()
{
@ -181,6 +181,7 @@ private:
struct __attribute__((packed)) AddressRange
{
TinyVector<JitBlock*> Blocks;
u16 InvalidLiterals;
u16 TimesInvalidated;
};