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 | 2082 IndexBssMappingEncoder encoder(number_of_indexes, slot_size); in CalculateNumberOfIndexBssMappingEntries() local 2087 if (first_index || !encoder.TryMerge(index, bss_offset)) { in CalculateNumberOfIndexBssMappingEntries() 2088 encoder.Reset(index, bss_offset); in CalculateNumberOfIndexBssMappingEntries() 2936 IndexBssMappingEncoder encoder(number_of_indexes, slot_size); in WriteIndexBssMapping() local 2943 encoder.Reset(index, bss_offset); in WriteIndexBssMapping() 2944 } else if (!encoder.TryMerge(index, bss_offset)) { in WriteIndexBssMapping() 2945 *init_it = encoder.GetEntry(); in WriteIndexBssMapping() 2947 encoder.Reset(index, bss_offset); in WriteIndexBssMapping() 2951 *init_it = encoder.GetEntry(); in WriteIndexBssMapping()
|