MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxWriteChunks

Function fxWriteChunks

xs/sources/xsSnapshot.c:2072–2089  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2070}
2071
2072void fxWriteChunks(txMachine* the, txSnapshot* snapshot)
2073{
2074 size_t slotSize = snapshot->slotSize;
2075 txSlot** slots = snapshot->slots;
2076 txSlot* stack = the->stackTop - 1;
2077 while (stack >= the->stack) {
2078 fxWriteChunk(the, snapshot, stack);
2079 stack--;
2080 }
2081 slotSize--;
2082 slots++;
2083 while (slotSize) {
2084 txSlot* slot = *slots;
2085 fxWriteChunk(the, snapshot, slot);
2086 slotSize--;
2087 slots++;
2088 }
2089}
2090
2091void fxWriteSlot(txMachine* the, txSnapshot* snapshot, txSlot* slot, txFlag flag)
2092{

Callers 1

fxWriteSnapshotFunction · 0.85

Calls 1

fxWriteChunkFunction · 0.85

Tested by

no test coverage detected