From 3ddc0d1108a00e14b60c60edcdeff3b81f9e35f9 Mon Sep 17 00:00:00 2001 From: buzbee Date: Wed, 5 Oct 2011 10:36:21 -0700 Subject: Fix Vmap table size Consistently use 16 bits to store Dalvik vreg number. Change-Id: I6d21c0ed7011e5defaa45571951ff7608d0ce80e --- src/compiler/Frontend.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler/Frontend.cc') diff --git a/src/compiler/Frontend.cc b/src/compiler/Frontend.cc index ebbd72f79c..be3a6052e0 100644 --- a/src/compiler/Frontend.cc +++ b/src/compiler/Frontend.cc @@ -907,7 +907,7 @@ bool oatCompileMethod(const Compiler& compiler, Method* method, art::Instruction reinterpret_cast(&cUnit.mappingTable[0]), mapping_table->GetLength() * sizeof(cUnit.mappingTable[0])); // Add a marker to take place of lr - cUnit.coreVmapTable.push_back(-1); + cUnit.coreVmapTable.push_back(INVALID_VREG); // Combine vmap tables - core regs, then fp regs for (uint32_t i = 0; i < cUnit.fpVmapTable.size(); i++) { cUnit.coreVmapTable.push_back(cUnit.fpVmapTable[i]); -- cgit v1.2.3-59-g8ed1b