Rename PcToReferenceMap adding Dex.
Change-Id: I21ebfe9ac7fd8a627299f1f721eb4b11c87642dc
diff --git a/src/verifier/gc_map.h b/src/verifier/gc_map.h
index 07f6317..d6a1c46 100644
--- a/src/verifier/gc_map.h
+++ b/src/verifier/gc_map.h
@@ -34,10 +34,10 @@
kRegMapFormatCompact16 = 3, // Compact layout, 16-bit addresses.
};
-// Lightweight wrapper for PC to reference bit maps.
-class PcToReferenceMap {
+// Lightweight wrapper for Dex PC to reference bit maps.
+class DexPcToReferenceMap {
public:
- PcToReferenceMap(const uint8_t* data, size_t data_length) {
+ DexPcToReferenceMap(const uint8_t* data, size_t data_length) {
data_ = data;
CHECK(data_ != NULL);
// Check the size of the table agrees with the number of entries
@@ -50,8 +50,8 @@
return GetData()[2] | (GetData()[3] << 8);
}
- // Get the PC at the given index
- uint16_t GetPC(size_t index) const {
+ // Get the Dex PC at the given index
+ uint16_t GetDexPc(size_t index) const {
size_t entry_offset = index * EntryWidth();
if (PcWidth() == 1) {
return Table()[entry_offset];