summaryrefslogtreecommitdiff
path: root/src/compiler/CompilerIR.h
diff options
context:
space:
mode:
author buzbee <buzbee@google.com> 2011-10-05 10:36:21 -0700
committer buzbee <buzbee@google.com> 2011-10-05 10:36:21 -0700
commit3ddc0d1108a00e14b60c60edcdeff3b81f9e35f9 (patch)
treedaae3f0f439fc95e29a611d366f82309316943f4 /src/compiler/CompilerIR.h
parentce30293d222c864fa281da98bc896dd1c98a9a16 (diff)
Fix Vmap table size
Consistently use 16 bits to store Dalvik vreg number. Change-Id: I6d21c0ed7011e5defaa45571951ff7608d0ce80e
Diffstat (limited to 'src/compiler/CompilerIR.h')
-rw-r--r--src/compiler/CompilerIR.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compiler/CompilerIR.h b/src/compiler/CompilerIR.h
index 14af69d3d6..8dcf56bdd4 100644
--- a/src/compiler/CompilerIR.h
+++ b/src/compiler/CompilerIR.h
@@ -47,6 +47,7 @@ typedef struct RegLocation {
} RegLocation;
#define INVALID_SREG (-1)
+#define INVALID_VREG (0xFFFFU)
#define INVALID_REG (0x3F)
#define INVALID_OFFSET (-1)
@@ -201,8 +202,8 @@ typedef struct CompilationUnit {
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