Optimize JNI:GetStringRegion() for compressed strings.

Looking at the disassembly, it seems clang++ was unable to
optimize this properly, probably due to possible aliasing,
despite inlining the String::CharAt() and seeing all the
String::IsCompressed() expressions.

Explicitly use the fact that the string is compressed to
optimize the function and similar patterns in JNI.

Test: m test-art-host-gtest
Bug: 169674485
Change-Id: I35dd2540a1e79611a65d2d84f2a557c826120409
1 file changed