Lines Matching refs:space
1066 void SnapshotProcessor::WriteSpaceObjectToFile(Space* space, std::fstream &writer)
1068 size_t regionCount = space->GetRegionCount();
1070 auto lastRegion = space->GetCurrentRegion();
1071 space->EnumerateRegions([this, &writer, lastRegion](Region *current) {
1095 void SnapshotProcessor::WriteHugeObjectToFile(HugeObjectSpace* space, std::fstream &writer)
1097 space->EnumerateRegions([&writer](Region *region) {
1121 uint32_t SnapshotProcessor::StatisticsSpaceObjectSize(Space* space)
1123 size_t regionCount = space->GetRegionCount();
1126 auto lastRegion = space->GetCurrentRegion();
1135 uint32_t SnapshotProcessor::StatisticsHugeObjectSize(HugeObjectSpace* space)
1138 space->EnumerateRegions([&objSize](Region *region) {
1162 uintptr_t SnapshotProcessor::AllocateObjectToLocalSpace(Space *space, size_t objectSize)
1165 if (space->GetSpaceType() == MemSpaceType::HUGE_OBJECT_SPACE) {
1166 newObj = reinterpret_cast<HugeObjectSpace *>(space)->Allocate(objectSize, vm_->GetAssociatedJSThread());
1167 } else if (space->GetSpaceType() == MemSpaceType::SNAPSHOT_SPACE) {
1168 newObj = reinterpret_cast<SnapshotSpace *>(space)->Allocate(objectSize);
1170 newObj = reinterpret_cast<LocalSpace *>(space)->Allocate(objectSize);
1172 auto current = space->GetCurrentRegion();
1214 void SnapshotProcessor::DeserializeSpaceObject(uintptr_t beginAddr, Space* space, size_t spaceObjSize)
1223 space, DEFAULT_REGION_SIZE, vm_->GetAssociatedJSThread(), const_cast<Heap *>(vm_->GetHeap()));
1245 if (space->GetSpaceType() != MemSpaceType::SNAPSHOT_SPACE) {
1246 auto sparseSpace = reinterpret_cast<SparseSpace *>(space);
1252 auto snapshotSpace = reinterpret_cast<SnapshotSpace *>(space);
1259 void SnapshotProcessor::DeserializeHugeSpaceObject(uintptr_t beginAddr, HugeObjectSpace* space, size_t hugeSpaceObjSize)
1275 space, alignedHugeRegionSize, vm_->GetAssociatedJSThread(), const_cast<Heap *>(vm_->GetHeap()));
1292 space->AddRegion(region);
1516 void SnapshotProcessor::RelocateSpaceObject(const JSPandaFile *jsPandaFile, Space* space, SnapshotType type,
1523 space->EnumerateRegions([jsPandaFile, stringTable, &others, &objIndex, &rootObjSize, &constSpecialIndex,
1774 // panda method space begin