diff options
author | David Srbecky <dsrbecky@google.com> | 2016-02-24 16:39:26 +0000 |
---|---|---|
committer | David Srbecky <dsrbecky@google.com> | 2016-02-25 14:40:21 +0000 |
commit | 1bbdfd73a98b149c31f8a80888c7ee9ab2587630 (patch) | |
tree | f23816b520fd4b2a9b47642ac16bf37c5cec512f /compiler/optimizing/stack_map_stream.h | |
parent | 7dc11782ff0a5dffcd8108f256f8975f0b3e8076 (diff) |
Verify encoded stack maps in debug builds.
Read all stack map data back after we write it and DCHECK the content.
Change-Id: Ia679594ac9e5805f6d4c56686030af153b45ea8b
Diffstat (limited to 'compiler/optimizing/stack_map_stream.h')
-rw-r--r-- | compiler/optimizing/stack_map_stream.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/optimizing/stack_map_stream.h b/compiler/optimizing/stack_map_stream.h index fc27a2b446..016a911424 100644 --- a/compiler/optimizing/stack_map_stream.h +++ b/compiler/optimizing/stack_map_stream.h @@ -167,6 +167,13 @@ class StackMapStream : public ValueObject { const BitVector& live_dex_registers_mask, uint32_t start_index_in_dex_register_locations) const; + void CheckDexRegisterMap(const CodeInfo& code_info, + const DexRegisterMap& dex_register_map, + size_t num_dex_registers, + BitVector* live_dex_registers_mask, + size_t dex_register_locations_index) const; + void CheckCodeInfo(MemoryRegion region) const; + ArenaAllocator* allocator_; ArenaVector<StackMapEntry> stack_maps_; |