diff options
| author | 2015-06-26 08:56:45 +0000 | |
|---|---|---|
| committer | 2015-06-26 08:56:46 +0000 | |
| commit | 2f81cd8f4ff21caf133024795bd5ae028c9f68cd (patch) | |
| tree | 9f7124df650984b848e00625c4185641b5f1650c /compiler/optimizing/builder.h | |
| parent | e4a15549608b1c5b1e1cb32f840a8467602dcc14 (diff) | |
| parent | 0b5c7d1994b76090afcc825e737f2b8c546da2f8 (diff) | |
Merge "ART: Implement try/catch blocks in Builder"
Diffstat (limited to 'compiler/optimizing/builder.h')
| -rw-r--r-- | compiler/optimizing/builder.h | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/compiler/optimizing/builder.h b/compiler/optimizing/builder.h index 052aaf8b42..58d85e9ef1 100644 --- a/compiler/optimizing/builder.h +++ b/compiler/optimizing/builder.h @@ -94,8 +94,12 @@ class HGraphBuilder : public ValueObject {    bool ComputeBranchTargets(const uint16_t* start,                              const uint16_t* end,                              size_t* number_of_branches); -  void MaybeUpdateCurrentBlock(size_t index); -  HBasicBlock* FindBlockStartingAt(int32_t index) const; +  void MaybeUpdateCurrentBlock(size_t dex_pc); +  HBasicBlock* FindBlockStartingAt(int32_t dex_pc) const; +  HBasicBlock* FindOrCreateBlockStartingAt(int32_t dex_pc); +  bool IsBlockInPcRange(HBasicBlock* block, uint32_t dex_pc_start, uint32_t dex_pc_end); +  void CreateBlocksForTryCatch(const DexFile::CodeItem& code_item); +  void InsertTryBoundaryBlocks(const DexFile::CodeItem& code_item);    void InitializeLocals(uint16_t count);    HLocal* GetLocalAt(int register_index) const; |