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/IntermediateRep.cc | |
| parent | 3c92a1833dcf1bda1b6180e053ffa4334866d1f9 (diff) | |
| parent | 5abfa3ea35781464df8fae60aaf03f48a295e965 (diff) | |
Merge "Compiler tuning" into dalvik-dev
Diffstat (limited to 'src/compiler/IntermediateRep.cc')
| -rw-r--r-- | src/compiler/IntermediateRep.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/compiler/IntermediateRep.cc b/src/compiler/IntermediateRep.cc index c39aed3e2d..6cb6580283 100644 --- a/src/compiler/IntermediateRep.cc +++ b/src/compiler/IntermediateRep.cc @@ -20,13 +20,15 @@ namespace art { /* Allocate a new basic block */ -BasicBlock* oatNewBB(BBType blockType, int blockId) +BasicBlock* oatNewBB(CompilationUnit* cUnit, BBType blockType, int blockId) { - BasicBlock* bb = (BasicBlock* )oatNew(sizeof(BasicBlock), true); + BasicBlock* bb = (BasicBlock* )oatNew(sizeof(BasicBlock), true, kAllocBB); bb->blockType = blockType; bb->id = blockId; - bb->predecessors = oatAllocBitVector(blockId > 32 ? blockId : 32, - true /* expandable */); + bb->predecessors = (GrowableList*) oatNew(sizeof(GrowableList), false, + kAllocPredecessors); + oatInitGrowableList(bb->predecessors, (blockType == kExitBlock) ? 2048 : 2, + kListPredecessors); return bb; } |