summaryrefslogtreecommitdiff
path: root/compiler/optimizing/stack_map_stream.cc
diff options
context:
space:
mode:
author Calin Juravle <calin@google.com> 2015-10-06 16:21:28 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-10-06 16:21:28 +0000
commit4012c37f0459f757d4ab74ac9b0cda0481ba3546 (patch)
tree06b1a30b2ffe11fed49e03218746a70c4f4880f9 /compiler/optimizing/stack_map_stream.cc
parent22d450d37801d05785ad1fc792ea9873225fb6a6 (diff)
parentb5c469357f8faf8fbaa05bc41d56903b300d0cd1 (diff)
Merge "Assert we don't store an invalid dex_pc in the stack maps."
Diffstat (limited to 'compiler/optimizing/stack_map_stream.cc')
-rw-r--r--compiler/optimizing/stack_map_stream.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/optimizing/stack_map_stream.cc b/compiler/optimizing/stack_map_stream.cc
index f27cecc8fa..a095809ce1 100644
--- a/compiler/optimizing/stack_map_stream.cc
+++ b/compiler/optimizing/stack_map_stream.cc
@@ -24,6 +24,7 @@ void StackMapStream::BeginStackMapEntry(uint32_t dex_pc,
uint32_t num_dex_registers,
uint8_t inlining_depth) {
DCHECK_EQ(0u, current_entry_.dex_pc) << "EndStackMapEntry not called after BeginStackMapEntry";
+ DCHECK_NE(dex_pc, static_cast<uint32_t>(-1)) << "invalid dex_pc";
current_entry_.dex_pc = dex_pc;
current_entry_.native_pc_offset = native_pc_offset;
current_entry_.register_mask = register_mask;