aboutsummaryrefslogtreecommitdiff
path: root/src/ARMJIT_Internal.h
diff options
context:
space:
mode:
authorRSDuck <rsduck@users.noreply.github.com>2019-11-03 15:33:20 +0100
committerRSDuck <rsduck@users.noreply.github.com>2020-04-26 13:05:06 +0200
commit386100c053adad10ab7de066d37f383d58d5cfa1 (patch)
tree888c2b17c21805dc98bf78941c33180b29f6be17 /src/ARMJIT_Internal.h
parent803c61e1266040c631a716a37105615a998a38af (diff)
make literal optimisation more reliable
fixes spanish Pokemon HeartGold
Diffstat (limited to 'src/ARMJIT_Internal.h')
-rw-r--r--src/ARMJIT_Internal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ARMJIT_Internal.h b/src/ARMJIT_Internal.h
index 9e6713d..fb05f75 100644
--- a/src/ARMJIT_Internal.h
+++ b/src/ARMJIT_Internal.h
@@ -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;
};