Searched refs:encoder (Results 1 – 2 of 2) sorted by relevance
/art/dex2oat/linker/ |
D | index_bss_mapping_encoder_test.cc | 28 IndexBssMappingEncoder encoder(/* number_of_indexes */ 0x10000, raw_pointer_size); in TEST() local 29 encoder.Reset(1u, 0u); in TEST() 30 ASSERT_FALSE(encoder.TryMerge(5u, raw_pointer_size + 1)); // Wrong bss_offset difference. in TEST() 31 ASSERT_FALSE(encoder.TryMerge(18u, raw_pointer_size)); // Index out of range. in TEST() 32 ASSERT_TRUE(encoder.TryMerge(5u, raw_pointer_size)); in TEST() 33 ASSERT_EQ(0u, encoder.GetEntry().GetBssOffset(encoder.GetIndexBits(), 1u, raw_pointer_size)); in TEST() 35 encoder.GetEntry().GetBssOffset(encoder.GetIndexBits(), 5u, raw_pointer_size)); in TEST() 37 encoder.GetEntry().GetBssOffset(encoder.GetIndexBits(), 17u, raw_pointer_size)); in TEST() 38 ASSERT_FALSE(encoder.TryMerge(17u, 2 * raw_pointer_size + 1)); // Wrong bss_offset difference. in TEST() 39 ASSERT_FALSE(encoder.TryMerge(18u, 2 * raw_pointer_size)); // Index out of range. in TEST() [all …]
|
D | oat_writer.cc | 2089 IndexBssMappingEncoder encoder(number_of_indexes, slot_size); in CalculateNumberOfIndexBssMappingEntries() local 2094 if (first_index || !encoder.TryMerge(index, bss_offset)) { in CalculateNumberOfIndexBssMappingEntries() 2095 encoder.Reset(index, bss_offset); in CalculateNumberOfIndexBssMappingEntries() 2948 IndexBssMappingEncoder encoder(number_of_indexes, slot_size); in WriteIndexBssMapping() local 2955 encoder.Reset(index, bss_offset); in WriteIndexBssMapping() 2956 } else if (!encoder.TryMerge(index, bss_offset)) { in WriteIndexBssMapping() 2957 *init_it = encoder.GetEntry(); in WriteIndexBssMapping() 2959 encoder.Reset(index, bss_offset); in WriteIndexBssMapping() 2963 *init_it = encoder.GetEntry(); in WriteIndexBssMapping()
|