Lines Matching refs:spaces

2308     std::vector<std::unique_ptr<ImageSpace>> spaces;  in LoadImage()  local
2309 spaces.reserve(image_component_count); in LoadImage()
2321 &spaces, in LoadImage()
2362 for (const std::unique_ptr<ImageSpace>& space : spaces) { in LoadImage()
2379 MaybeRelocateSpaces(spaces, logger); in LoadImage()
2380 DeduplicateInternedStrings(ArrayRef<const std::unique_ptr<ImageSpace>>(spaces), logger); in LoadImage()
2381 boot_image_spaces->swap(spaces); in LoadImage()
2475 static void DoRelocateSpaces(ArrayRef<const std::unique_ptr<ImageSpace>>& spaces, in DoRelocateSpaces() argument
2477 DCHECK(!spaces.empty()); in DoRelocateSpaces()
2481 spaces.front()->Begin(), in DoRelocateSpaces()
2482 spaces.back()->End() - spaces.front()->Begin())); in DoRelocateSpaces()
2483 const ImageHeader& base_header = spaces[0]->GetImageHeader(); in DoRelocateSpaces()
2485 DCHECK_LE(base_image_space_count, spaces.size()); in DoRelocateSpaces()
2487 spaces.SubArray(/*pos=*/ 0u, base_image_space_count), in DoRelocateSpaces()
2491 for (size_t i = base_image_space_count, size = spaces.size(); i != size; ) { in DoRelocateSpaces()
2492 const ImageHeader& ext_header = spaces[i]->GetImageHeader(); in DoRelocateSpaces()
2496 spaces.SubArray(/*pos=*/ i, ext_image_space_count), in DoRelocateSpaces()
2504 static void DoRelocateSpaces(ArrayRef<const std::unique_ptr<ImageSpace>> spaces, in DoRelocateSpaces() argument
2508 DCHECK(!spaces.empty()); in DoRelocateSpaces()
2509 const ImageHeader& first_header = spaces.front()->GetImageHeader(); in DoRelocateSpaces()
2519 ? static_cast<int64_t>(reinterpret_cast32<uint32_t>(spaces.front()->Begin())) - in DoRelocateSpaces()
2591 for (const std::unique_ptr<ImageSpace>& space : spaces) { in DoRelocateSpaces()
2679 for (const std::unique_ptr<ImageSpace>& space : spaces) { in DoRelocateSpaces()
2721 void MaybeRelocateSpaces(const std::vector<std::unique_ptr<ImageSpace>>& spaces, in MaybeRelocateSpaces() argument
2725 ImageSpace* first_space = spaces.front().get(); in MaybeRelocateSpaces()
2742 ArrayRef<const std::unique_ptr<ImageSpace>> spaces_ref(spaces); in MaybeRelocateSpaces()
2751 void DeduplicateInternedStrings(ArrayRef<const std::unique_ptr<ImageSpace>> spaces, in DeduplicateInternedStrings() argument
2754 DCHECK(!spaces.empty()); in DeduplicateInternedStrings()
2755 size_t num_spaces = spaces.size(); in DeduplicateInternedStrings()
2756 const ImageHeader& primary_header = spaces.front()->GetImageHeader(); in DeduplicateInternedStrings()
2766 const ImageHeader& current_header = spaces[space_pos]->GetImageHeader(); in DeduplicateInternedStrings()
2777 const ImageHeader& dependency_header = spaces[start_pos]->GetImageHeader(); in DeduplicateInternedStrings()
2785 spaces.SubArray(/*pos=*/ start_pos, space_pos - start_pos); in DeduplicateInternedStrings()
2788 ImageSpace* new_space = spaces[space_pos + i].get(); in DeduplicateInternedStrings()
2794 ImageSpace* new_space = spaces[space_pos + i].get(); in DeduplicateInternedStrings()
3004 /*inout*/std::vector<std::unique_ptr<ImageSpace>>* spaces, in LoadComponents() argument
3026 Guard guard(spaces); in LoadComponents()
3029 DCHECK_NE(spaces->empty(), is_extension); in LoadComponents()
3046 size_t max_dependency_count = spaces->size(); in LoadComponents()
3060 spaces->push_back(Load(locations[i], in LoadComponents()
3067 const ImageSpace* space = spaces->back().get(); in LoadComponents()
3108 const ImageHeader& current_header = (*spaces)[dependency_count]->GetImageHeader(); in LoadComponents()
3119 ArrayRef<const std::unique_ptr<ImageSpace>>(*spaces).SubArray( in LoadComponents()
3122 ImageSpace* space = (*spaces)[spaces->size() - chunk.image_space_count + i].get(); in LoadComponents()