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

Function fxIndexSlot

xs/sources/xsSnapshot.c:1061–1075  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1059}
1060
1061void fxIndexSlot(txMachine* the, txSnapshot* snapshot, txSlot* slot)
1062{
1063 slot->flag |= XS_MARK_FLAG;
1064 txProjection* projection = snapshot->firstProjection;
1065 while (projection) {
1066 txSlot* heap = projection->heap;
1067 txSlot* limit = projection->limit;
1068 if ((heap < slot) && (slot < limit)) {
1069 projection->indexes[slot - heap] = snapshot->slotSize;
1070 snapshot->slotSize++;
1071 return;
1072 }
1073 projection = projection->nextProjection;
1074 }
1075}
1076
1077void fxIndexSlots(txMachine* the, txSnapshot* snapshot)
1078{

Callers 3

fxIndexInstanceFunction · 0.70
fxIndexReferenceFunction · 0.70
fxIndexSlotsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected