diff options
author | Calin Juravle <calin@google.com> | 2015-04-07 19:43:36 +0100 |
---|---|---|
committer | Vladimir Marko <vmarko@google.com> | 2015-04-28 19:23:41 +0100 |
commit | 2bee20b5f0d783b43c1bbbe281f69a6f9b9e0a98 (patch) | |
tree | 22858fdb8f1c7041a231f38acff446b36e17bf84 /compiler/optimizing/graph_visualizer.cc | |
parent | 3adfc4bbe6c42d574bd2069d8e38a13d5ad98ccf (diff) |
Quick: Fix crash on fall-through out of method code.
Fix Quick crash when the last insn has a fall-through out of
the method's code. Allow creation of an out-of-method block
and at the end of MIRGraph::InlineMethod() check if that
block is reachable. If it is, punt to interpreter. Add tests
for unreachable if-lt and packed-switch as the last insn.
Also fix MIRGraph::ProcessCanSwitch() to treat the offset to
the data as signed. Jumping over the data with a goto and
using it from a switch further down is valid. This was also
crashing (presumably only on 64-bit dex2oat).
Thanks to Stephen Kyle (stephenckyle@googlemail.com) for the
bug report.
Bug: 19988134
Change-Id: I627f4137f61901897bfb9a5252741c6ded3a1adb
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions