diff options
author | 2014-06-13 22:50:49 +0000 | |
---|---|---|
committer | 2014-06-12 03:32:07 +0000 | |
commit | 97ed29f800c56a06fd6989e0883e4c97bedd2453 (patch) | |
tree | 429a8e13c459265d526cd8b4b31d5ee42cfe58ba /compiler/dex/mir_graph.h | |
parent | 8cd927c8f6911cfb6118b8c54550959c09eb84f8 (diff) | |
parent | 4439596b00c91f565370bf0813cc2f9165093693 (diff) |
Merge "ART: Hide unreachable basic blocks in the compiler"
Diffstat (limited to 'compiler/dex/mir_graph.h')
-rw-r--r-- | compiler/dex/mir_graph.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/dex/mir_graph.h b/compiler/dex/mir_graph.h index b6cec662c3..27b8ca43aa 100644 --- a/compiler/dex/mir_graph.h +++ b/compiler/dex/mir_graph.h @@ -587,7 +587,7 @@ class MIRGraph { return m_units_[m_unit_index]->GetCodeItem()->insns_; } - int GetNumBlocks() const { + unsigned int GetNumBlocks() const { return num_blocks_; } @@ -607,7 +607,7 @@ class MIRGraph { return exit_block_; } - BasicBlock* GetBasicBlock(int block_id) const { + BasicBlock* GetBasicBlock(unsigned int block_id) const { return (block_id == NullBasicBlockId) ? NULL : block_list_.Get(block_id); } @@ -1149,7 +1149,7 @@ class MIRGraph { ArenaBitVector* try_block_addr_; BasicBlock* entry_block_; BasicBlock* exit_block_; - int num_blocks_; + unsigned int num_blocks_; const DexFile::CodeItem* current_code_item_; GrowableArray<uint16_t> dex_pc_to_block_map_; // FindBlock lookup cache. std::vector<DexCompilationUnit*> m_units_; // List of methods included in this graph |