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

Function fxProjectSlot

xs/sources/xsSnapshot.c:1303–1317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1301}
1302
1303txSlot* fxProjectSlot(txMachine* the, txProjection* firstProjection, txSlot* slot)
1304{
1305 txSlot* address = NULL;
1306 if (slot) {
1307 txProjection* projection = firstProjection;
1308 while (projection) {
1309 if ((projection->heap < slot) && (slot < projection->limit)) {
1310 address = (txSlot*)(projection->indexes[slot - projection->heap]);
1311 break;
1312 }
1313 projection = projection->nextProjection;
1314 }
1315 }
1316 return address;
1317}
1318
1319txTypeDispatch* fxProjectTypeDispatch(txMachine* the, txTypeDispatch* dispatch)
1320{

Callers 2

fxWriteSlotFunction · 0.85
fxWriteSlotTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected