summaryrefslogtreecommitdiff
path: root/src/compiler/Ralloc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/Ralloc.cc')
-rw-r--r--src/compiler/Ralloc.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/compiler/Ralloc.cc b/src/compiler/Ralloc.cc
index c6375eea1e..4529a83b0a 100644
--- a/src/compiler/Ralloc.cc
+++ b/src/compiler/Ralloc.cc
@@ -315,7 +315,8 @@ void oatSimpleRegAlloc(CompilationUnit* cUnit)
RegLocation* loc;
/* Allocate the location map */
- loc = (RegLocation*)oatNew(cUnit->numSSARegs * sizeof(*loc), true);
+ loc = (RegLocation*)oatNew(cUnit->numSSARegs * sizeof(*loc), true,
+ kAllocRegAlloc);
for (i=0; i< cUnit->numSSARegs; i++) {
loc[i] = freshLoc;
loc[i].sRegLow = i;
@@ -325,7 +326,8 @@ void oatSimpleRegAlloc(CompilationUnit* cUnit)
/* Allocation the promotion map */
int numRegs = cUnit->numDalvikRegisters;
cUnit->promotionMap =
- (PromotionMap*)oatNew(numRegs * sizeof(cUnit->promotionMap[0]), true);
+ (PromotionMap*)oatNew(numRegs * sizeof(cUnit->promotionMap[0]), true,
+ kAllocRegAlloc);
/* Add types of incoming arguments based on signature */
int numIns = cUnit->numIns;