summaryrefslogtreecommitdiff
path: root/runtime/stack.cc
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2017-09-15 11:59:26 -0700
committer Andreas Gampe <agampe@google.com> 2017-09-18 11:36:24 -0700
commite2abbc604ce003c776c00ecf1293796bb4c4ac5a (patch)
treef7d124d1861cad2162c30dfe932bb4e1beaf41ef /runtime/stack.cc
parent7090dfe84f78b1928fcbdfd664d0dd9ea52633ff (diff)
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
Diffstat (limited to 'runtime/stack.cc')
-rw-r--r--runtime/stack.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/stack.cc b/runtime/stack.cc
index 2e0653666f..ab9fb0d73f 100644
--- a/runtime/stack.cc
+++ b/runtime/stack.cc
@@ -23,6 +23,7 @@
#include "base/callee_save_type.h"
#include "base/enums.h"
#include "base/hex_dump.h"
+#include "dex_file_types.h"
#include "entrypoints/entrypoint_utils-inl.h"
#include "entrypoints/runtime_asm_entrypoints.h"
#include "gc/space/image_space.h"
@@ -120,7 +121,7 @@ uint32_t StackVisitor::GetDexPc(bool abort_on_failure) const {
return GetCurrentInlineInfo(GetCurrentOatQuickMethodHeader(), cur_quick_frame_pc_).
GetDexPcAtDepth(encoding.inline_info.encoding, depth_in_stack_map);
} else if (cur_oat_quick_method_header_ == nullptr) {
- return DexFile::kDexNoIndex;
+ return dex::kDexNoIndex;
} else {
return cur_oat_quick_method_header_->ToDexPc(
GetMethod(), cur_quick_frame_pc_, abort_on_failure);