OSDN Git Service

Minor tweaks.
authorAndy McFadden <fadden@android.com>
Fri, 10 Dec 2010 23:23:47 +0000 (15:23 -0800)
committerAndy McFadden <fadden@android.com>
Fri, 10 Dec 2010 23:24:27 +0000 (15:24 -0800)
commite91b6e1f666cf2d032971b190205d6574e631be9
tree401ce7592cd58558f63a041a4cd6e83f11455772
parent2867f0b3f48d3dcbdba9b4ba7db27f6107313663
Minor tweaks.

Clean up replaceFailingInstruction() a little.  In particular, use
the appropriate method for extracting the opcode, and assert that
the instruction we're replacing was marked "can throw" (if it wasn't,
the list of predecessors in the catch handler will be wrong).  Also
remove a declaration that became redundant when we started replacing
instructions in place (as opposed to making a copy of the method body).

Strip out a bit of stale #if 0 code.

Change-Id: Iccf80647237672e2da4b1b46ca9627ae3344704d
dexopt/OptMain.c
vm/analysis/CodeVerify.c