Home | History | Annotate | Download | only in src

Lines Matching refs:child_index

5848       int child_index = 2 * parent_index + 1;
5849 uint32_t child_hash = GetKey(child_index)->Hash();
5850 if (child_index + 1 < len) {
5851 uint32_t right_child_hash = GetKey(child_index + 1)->Hash();
5853 child_index++;
5858 NoIncrementalWriteBarrierSwapDescriptors(parent_index, child_index);
5859 // Now element at child_index could be < its children.
5860 parent_index = child_index; // parent_hash remains correct.
5873 int child_index = parent_index * 2 + 1;
5874 uint32_t child_hash = GetKey(child_index)->Hash();
5875 if (child_index + 1 < i) {
5876 uint32_t right_child_hash = GetKey(child_index + 1)->Hash();
5878 child_index++;
5883 NoIncrementalWriteBarrierSwapDescriptors(parent_index, child_index);
5884 parent_index = child_index;
10212 int child_index = i;
10213 while (child_index > 0) {
10214 int parent_index = ((child_index + 1) >> 1) - 1;
10216 uint32_t child_value = NumberToUint32(numbers->get(child_index));
10218 content->SwapPairs(numbers, parent_index, child_index);
10222 child_index = parent_index;
10233 int child_index = ((parent_index + 1) << 1) - 1;
10234 if (child_index >= i) break;
10235 uint32_t child1_value = NumberToUint32(numbers->get(child_index));
10236 uint32_t child2_value = NumberToUint32(numbers->get(child_index + 1));
10238 if (child_index + 1 >= i || child1_value > child2_value) {
10240 content->SwapPairs(numbers, parent_index, child_index);
10241 parent_index = child_index;
10244 content->SwapPairs(numbers, parent_index, child_index + 1);
10245 parent_index = child_index + 1;