diff options
author | Ben Cheng <bccheng@android.com> | 2010-10-28 11:13:58 -0700 |
---|---|---|
committer | Ben Cheng <bccheng@android.com> | 2010-12-13 16:49:33 -0800 |
commit | 00603079b8723b32c955513eae63a8f97898074d (patch) | |
tree | 3f7b93b0bdb9ac2d64896a9d0bbf5e5c7153cc71 /vm/compiler/IntermediateRep.c | |
parent | 823a87840e570ad06c4426537477a21243474a1c (diff) | |
download | android_dalvik-00603079b8723b32c955513eae63a8f97898074d.tar.gz android_dalvik-00603079b8723b32c955513eae63a8f97898074d.tar.bz2 android_dalvik-00603079b8723b32c955513eae63a8f97898074d.zip |
Implement method parser and SSA transformation.
Change-Id: If3fb3a36f33aaee8e5fdded4e9fa607be54f0bfb
Diffstat (limited to 'vm/compiler/IntermediateRep.c')
-rw-r--r-- | vm/compiler/IntermediateRep.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vm/compiler/IntermediateRep.c b/vm/compiler/IntermediateRep.c index 29889005b..db68c3c85 100644 --- a/vm/compiler/IntermediateRep.c +++ b/vm/compiler/IntermediateRep.c @@ -18,10 +18,13 @@ #include "CompilerInternals.h" /* Allocate a new basic block */ -BasicBlock *dvmCompilerNewBB(BBType blockType) +BasicBlock *dvmCompilerNewBB(BBType blockType, int blockId) { BasicBlock *bb = (BasicBlock *)dvmCompilerNew(sizeof(BasicBlock), true); bb->blockType = blockType; + bb->id = blockId; + bb->predecessors = dvmCompilerAllocBitVector(blockId > 32 ? blockId : 32, + true /* expandable */); return bb; } |