summaryrefslogtreecommitdiffstats
path: root/runtime/mapping_table.h
diff options
context:
space:
mode:
authorVladimir Marko <vmarko@google.com>2014-02-27 13:42:09 +0000
committerVladimir Marko <vmarko@google.com>2014-02-27 13:47:47 +0000
commit12d16ad924836cad46419a0f7eb57e13363139ef (patch)
tree12a7ee32ff97c82cb86dc52b5a6fe66ca16ca37a /runtime/mapping_table.h
parentb565506a63e75dac4a8bb9dd54dabf5259e5b95f (diff)
downloadart-12d16ad924836cad46419a0f7eb57e13363139ef.zip
art-12d16ad924836cad46419a0f7eb57e13363139ef.tar.gz
art-12d16ad924836cad46419a0f7eb57e13363139ef.tar.bz2
Clean up MappingTable::FirstDexToPcPtr().
Use DecodeSignedLeb128() to skip over dex PCs. This is just to be consistent, the number of bytes skipped is the same as with DecodeUnsignedLeb128() and the result is ignored. Change-Id: Ib5198b0367030957a6e2c650200121c2d828c0a6
Diffstat (limited to 'runtime/mapping_table.h')
-rw-r--r--runtime/mapping_table.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/mapping_table.h b/runtime/mapping_table.h
index a82bc1c..79e6e94 100644
--- a/runtime/mapping_table.h
+++ b/runtime/mapping_table.h
@@ -56,8 +56,8 @@ class MappingTable {
// We must have dex to pc entries or else the loop will go beyond the end of the table.
DCHECK_GT(total_size, pc_to_dex_size);
for (uint32_t i = 0; i < pc_to_dex_size; ++i) {
- DecodeUnsignedLeb128(&table); // Move ptr past native PC.
- DecodeUnsignedLeb128(&table); // Move ptr past dex PC.
+ DecodeUnsignedLeb128(&table); // Move ptr past native PC delta.
+ DecodeSignedLeb128(&table); // Move ptr past dex PC delta.
}
}
return table;