summaryrefslogtreecommitdiff
path: root/compiler/optimizing/stack_map_test.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2015-03-30 15:44:25 +0100
committer Nicolas Geoffray <ngeoffray@google.com> 2015-03-31 15:32:48 +0100
commit896f8f7fe562f6e59119cb32531da9f0a5f13d18 (patch)
tree9f2b61474702a655ab5e793bac44d89612cf1b80 /compiler/optimizing/stack_map_test.cc
parent7411a69982c055692966c685636b6a226f10215e (diff)
Use variable encoding for StackMap.
dex_pc, native_pc_offset, dex_register_map_offset, inline_info_offset, and register_mask can now be encoded in 1, 2, 3, or 4 bytes. Change-Id: I15f93e8226ce374204d44c5a80a9fd89bda2687c
Diffstat (limited to 'compiler/optimizing/stack_map_test.cc')
-rw-r--r--compiler/optimizing/stack_map_test.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/optimizing/stack_map_test.cc b/compiler/optimizing/stack_map_test.cc
index b9bf0165f3..8d160bc81e 100644
--- a/compiler/optimizing/stack_map_test.cc
+++ b/compiler/optimizing/stack_map_test.cc
@@ -401,9 +401,8 @@ TEST(StackMapTest, DexRegisterMapOffsetOverflow) {
// ...the offset of the second Dex register map (relative to the
// beginning of the Dex register maps region) is 255 (i.e.,
// kNoDexRegisterMapSmallEncoding).
- ASSERT_NE(StackMap::kNoDexRegisterMap, stack_map1.GetDexRegisterMapOffset(code_info));
- ASSERT_EQ(StackMap::kNoDexRegisterMapSmallEncoding,
- stack_map1.GetDexRegisterMapOffset(code_info));
+ ASSERT_NE(stack_map1.GetDexRegisterMapOffset(code_info), StackMap::kNoDexRegisterMap);
+ ASSERT_EQ(stack_map1.GetDexRegisterMapOffset(code_info), 0xFFu);
}
TEST(StackMapTest, TestShareDexRegisterMap) {