Fix Vmap table size
Consistently use 16 bits to store Dalvik vreg number.
Change-Id: I6d21c0ed7011e5defaa45571951ff7608d0ce80e
diff --git a/src/compiler/CompilerIR.h b/src/compiler/CompilerIR.h
index 14af69d..8dcf56b 100644
--- a/src/compiler/CompilerIR.h
+++ b/src/compiler/CompilerIR.h
@@ -47,6 +47,7 @@
} RegLocation;
#define INVALID_SREG (-1)
+#define INVALID_VREG (0xFFFFU)
#define INVALID_REG (0x3F)
#define INVALID_OFFSET (-1)
@@ -201,8 +202,8 @@
int assemblerRetries;
std::vector<short> codeBuffer;
std::vector<uint32_t> mappingTable;
- std::vector<uint32_t> coreVmapTable;
- std::vector<short> fpVmapTable;
+ std::vector<uint16_t> coreVmapTable;
+ std::vector<uint16_t> fpVmapTable;
bool printMe;
bool hasClassLiterals; // Contains class ptrs used as literals
bool hasLoop; // Contains a loop