Check for any forced deopts before restoring instrumentation stack

We need to check if there are any frames that are marked for
deoptimization before restoring the instrumentation stack. We
do this when updating the instrumentation level but miss it when
undeoptimizing.

Test: art/test.py
Change-Id: Ie7f0d3d48d4ae9f7d39b8d1541d853580d39ffe6
2 files changed