OSDN Git Service

Quick compiler: handle embedded switch data
authorbuzbee <buzbee@google.com>
Tue, 25 Nov 2014 18:52:19 +0000 (10:52 -0800)
committerbuzbee <buzbee@google.com>
Tue, 25 Nov 2014 19:31:09 +0000 (11:31 -0800)
commit6489d22a44ea7d135c142ee94925570d0333d5e7
tree078cd0518627673566727494b003fa671c027dc8
parent79d43fd465a302252062b1d6dbd32c8a7d79f266
Quick compiler: handle embedded switch data

Although switch data is generally placed at the end of a dex
file by dx, it can occur elsewhere (and does via obsfucators).
This CL fixes a parsing error related to embedded switch data by
ensuring valid dex instructions following the embedded data appear
in their own basic blocks.

AOSP b/80600

Change-Id: I91ead6b398386bcf168b1088c5bc13a53b18f26e
compiler/dex/mir_graph.cc
test/800-smali/expected.txt
test/800-smali/smali/PackedSwitch.smali [new file with mode: 0644]
test/800-smali/src/Main.java