diff options
| author | 2012-02-02 16:46:25 -0800 | |
|---|---|---|
| committer | 2012-02-02 16:46:25 -0800 | |
| commit | 1ff1b98327b8056e20cd959963d759697a2b2f11 (patch) | |
| tree | b5f93a7ca614ab8f34551cf179f9bdb41bd4adf4 /src/compiler/Ralloc.cc | |
| parent | 3c92a1833dcf1bda1b6180e053ffa4334866d1f9 (diff) | |
| parent | 5abfa3ea35781464df8fae60aaf03f48a295e965 (diff) | |
Merge "Compiler tuning" into dalvik-dev
Diffstat (limited to 'src/compiler/Ralloc.cc')
| -rw-r--r-- | src/compiler/Ralloc.cc | 6 |
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; |