OSDN Git Service

ART: Changes to try-catch in GraphBuilder
authorDavid Brazdil <dbrazdil@google.com>
Tue, 30 Jun 2015 14:41:36 +0000 (15:41 +0100)
committerDavid Brazdil <dbrazdil@google.com>
Wed, 1 Jul 2015 13:51:21 +0000 (14:51 +0100)
commit56e1accf3966ae92e151567abf4561ef3f6466f4
tree7dc23852fe89290f1e01626342dc2a2d5a7de492
parent3b0667c1d68ba88c71b031757b757dca659afd69
ART: Changes to try-catch in GraphBuilder

This patch adds an additional case into the insertion algorithm for
HTryBoundary inside HGraphBuilder in order to better handle catch
blocks covered by a TryItem.

Building SSA form also required to stop combining HTryBoundaries for
neighbouring TryItems because it was not clear which exception
handlers belong to which try block.

Change-Id: Ic68bd6ef98fee784609fa593cb08dca1f00a15e0
compiler/optimizing/builder.cc
compiler/optimizing/builder.h
compiler/optimizing/graph_visualizer.cc
compiler/optimizing/nodes.cc
compiler/optimizing/nodes.h
test/510-checker-try-catch/smali/Builder.smali