Revert^2 "Add CodeInfo to JNI methods."

It has no stack maps. We only store the frame info there.

As a consequence of having CodeInfo, the JNI methods are
now classified as IsOptimized().

This does not have any real effect on .oat file size.

This reverts commit 564fa8a1f3e3c39793c9b146ed5f21650617dc3f.

Test: test-art-host-gtest
Test: test-art-target-gtest-jni_compiler_test32
Change-Id: Ic7a1949027d89ba97cfedfc8ea453f041193b6a7
diff --git a/runtime/oat_quick_method_header.cc b/runtime/oat_quick_method_header.cc
index 52714f9..0b239c1 100644
--- a/runtime/oat_quick_method_header.cc
+++ b/runtime/oat_quick_method_header.cc
@@ -40,15 +40,15 @@
                                        bool abort_on_failure) const {
   const void* entry_point = GetEntryPoint();
   uint32_t sought_offset = pc - reinterpret_cast<uintptr_t>(entry_point);
-  if (IsOptimized()) {
+  if (method->IsNative()) {
+    return dex::kDexNoIndex;
+  } else {
+    DCHECK(IsOptimized());
     CodeInfo code_info(this);
     StackMap stack_map = code_info.GetStackMapForNativePcOffset(sought_offset);
     if (stack_map.IsValid()) {
       return stack_map.GetDexPc();
     }
-  } else {
-    DCHECK(method->IsNative());
-    return dex::kDexNoIndex;
   }
   if (abort_on_failure) {
     ScopedObjectAccess soa(Thread::Current());