Lines Matching defs:hdr
138 auto hdr = *ToNativePtr<const SnapShotHeader>(readFile);
139 if (!hdr.Verify(GetLastVersion())) {
145 uintptr_t stringBegin = oldSpaceBegin + hdr.oldSpaceObjSize + hdr.nonMovableObjSize +
146 hdr.machineCodeObjSize + hdr.snapshotObjSize + hdr.hugeObjSize;
147 uintptr_t stringEnd = stringBegin + hdr.stringSize;
151 processor.DeserializeObjectExcludeString(oldSpaceBegin, hdr.oldSpaceObjSize, hdr.nonMovableObjSize,
152 hdr.machineCodeObjSize, hdr.snapshotObjSize, hdr.hugeObjSize);
155 FileUnMap(MemMap(fileMap.GetOriginAddr(), hdr.pandaFileBegin));
158 if (static_cast<uint32_t>(fileMap.GetSize()) > hdr.pandaFileBegin) {
159 uintptr_t pandaFileMem = readFile + hdr.pandaFileBegin;
161 static_cast<uint32_t>(fileMap.GetSize()) - hdr.pandaFileBegin, os::mem::MmapDeleter));
165 processor.Relocate(type, jsPandaFile.get(), hdr.rootObjectSize);
247 SnapShotHeader hdr(GetLastVersion());
248 hdr.oldSpaceObjSize = objSizeVector[0]; // 0: oldSpaceObj
249 hdr.nonMovableObjSize = objSizeVector[1]; // 1: nonMovableObj
250 hdr.machineCodeObjSize = objSizeVector[2]; // 2: machineCodeObj
251 hdr.snapshotObjSize = objSizeVector[3]; // 3: snapshotObj
252 hdr.hugeObjSize = objSizeVector[4]; // 4: hugeObj
253 hdr.stringSize = totalStringSize;
254 hdr.pandaFileBegin = pandaFileBegin;
255 hdr.rootObjectSize = static_cast<uint32_t>(size);
256 writer.write(reinterpret_cast<char *>(&hdr), sizeof(hdr));