ART: Move kDexNoIndex to dex_file_types.h

Define the constant with the types to allow lowering the dependency
on DexFile.

Test: m
Change-Id: I3c61421db45be96d2057e01b1a7825883d8bd178
diff --git a/openjdkjvmti/events.cc b/openjdkjvmti/events.cc
index b0f8d8a..b406bd4 100644
--- a/openjdkjvmti/events.cc
+++ b/openjdkjvmti/events.cc
@@ -37,6 +37,7 @@
 #include "art_jvmti.h"
 #include "art_method-inl.h"
 #include "base/logging.h"
+#include "dex_file_types.h"
 #include "gc/allocation_listener.h"
 #include "gc/gc_pause_listener.h"
 #include "gc/heap.h"
@@ -692,14 +693,14 @@
 
         if (!method->IsNative()) {
           uint32_t cur_dex_pc = GetDexPc();
-          if (cur_dex_pc == art::DexFile::kDexNoIndex) {
+          if (cur_dex_pc == art::dex::kDexNoIndex) {
             // This frame looks opaque. Just keep on going.
             return true;
           }
           bool has_no_move_exception = false;
           uint32_t found_dex_pc = method->FindCatchBlock(
               exception_class_, cur_dex_pc, &has_no_move_exception);
-          if (found_dex_pc != art::DexFile::kDexNoIndex) {
+          if (found_dex_pc != art::dex::kDexNoIndex) {
             // We found the catch. Store the result and return.
             *catch_method_ptr_ = method;
             *catch_dex_pc_ptr_ = found_dex_pc;
diff --git a/openjdkjvmti/ti_method.cc b/openjdkjvmti/ti_method.cc
index 05943e7..62603aa 100644
--- a/openjdkjvmti/ti_method.cc
+++ b/openjdkjvmti/ti_method.cc
@@ -38,6 +38,7 @@
 #include "base/enums.h"
 #include "base/mutex-inl.h"
 #include "dex_file_annotations.h"
+#include "dex_file_types.h"
 #include "events-inl.h"
 #include "jit/jit.h"
 #include "jni_internal.h"
@@ -563,7 +564,7 @@
     }
     bool needs_instrument = !visitor.IsShadowFrame();
     uint32_t pc = visitor.GetDexPc(/*abort_on_failure*/ false);
-    if (pc == art::DexFile::kDexNoIndex) {
+    if (pc == art::dex::kDexNoIndex) {
       // Cannot figure out current PC.
       result_ = ERR(OPAQUE_FRAME);
       return;
diff --git a/openjdkjvmti/ti_stack.cc b/openjdkjvmti/ti_stack.cc
index e165187..699f695 100644
--- a/openjdkjvmti/ti_stack.cc
+++ b/openjdkjvmti/ti_stack.cc
@@ -46,6 +46,7 @@
 #include "base/mutex.h"
 #include "dex_file.h"
 #include "dex_file_annotations.h"
+#include "dex_file_types.h"
 #include "gc_root.h"
 #include "handle_scope-inl.h"
 #include "jni_env_ext.h"
@@ -88,7 +89,7 @@
       jmethodID id = art::jni::EncodeArtMethod(m);
 
       uint32_t dex_pc = GetDexPc(false);
-      jlong dex_location = (dex_pc == art::DexFile::kDexNoIndex) ? -1 : static_cast<jlong>(dex_pc);
+      jlong dex_location = (dex_pc == art::dex::kDexNoIndex) ? -1 : static_cast<jlong>(dex_pc);
 
       jvmtiFrameInfo info = { id, dex_location };
       fn(info);
@@ -819,7 +820,7 @@
   if (closure.method->IsNative()) {
     *location_ptr = -1;
   } else {
-    if (closure.dex_pc == art::DexFile::kDexNoIndex) {
+    if (closure.dex_pc == art::dex::kDexNoIndex) {
       return ERR(INTERNAL);
     }
     *location_ptr = static_cast<jlocation>(closure.dex_pc);