Don't check for deoptimization if only tracing is enabled

We take a fast path by not checking if a deoptimization is required on
method exit hooks. This patch does the same on method entry hooks. This
doesn't impact performance much but makes it uniform across method entry
/ exit hooks.

Bug: 259258187
Test: art/test.py -t 2246
Change-Id: I14c626a9091815ee815c5979e12d78a2c3beecd5
2 files changed