diff options
author | 2018-08-03 14:52:32 +0100 | |
---|---|---|
committer | 2018-08-10 12:40:01 +0100 | |
commit | 0c3aa31b7151c3b67aa0dff1ae2b8718eeb905c7 (patch) | |
tree | b7153d8f452ba686cc88052079aafae3f838d34e /runtime/stack_map.h | |
parent | 971a80e5aa36955d9fee6b479a5cbd554f50ca08 (diff) |
Move varint encoding/decoding to BitMemoryReader/Writer.
Test: test-art-host-gtest-bit_memory_region_test
Change-Id: I0f7d7dfc9efe9df0e3e746b1741c46f06a0bd3b4
Diffstat (limited to 'runtime/stack_map.h')
-rw-r--r-- | runtime/stack_map.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/stack_map.h b/runtime/stack_map.h index cde08f312b..bfd646d599 100644 --- a/runtime/stack_map.h +++ b/runtime/stack_map.h @@ -436,9 +436,9 @@ class CodeInfo { ALWAYS_INLINE static QuickMethodFrameInfo DecodeFrameInfo(const uint8_t* data) { BitMemoryReader reader(data); return QuickMethodFrameInfo( - DecodeVarintBits(reader) * kStackAlignment, // Decode packed_frame_size_ and unpack. - DecodeVarintBits(reader), // core_spill_mask_. - DecodeVarintBits(reader)); // fp_spill_mask_. + reader.ReadVarint() * kStackAlignment, // Decode packed_frame_size_ and unpack. + reader.ReadVarint(), // core_spill_mask_. + reader.ReadVarint()); // fp_spill_mask_. } private: |