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

Function fxFindHoles

xs/tools/xslOpt.c:86–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86txInteger fxFindHoles(txSlot** table, txFlag* flags, txID count)
87{
88 txInteger src = 0;
89 txInteger dst = 0;
90 txInteger result = 0;
91 while (src < count) {
92 if (flags[src] && table[dst]) {
93 src = 0;
94 while (table[dst])
95 dst++;
96 result = dst;
97 }
98 src++;
99 dst++;
100 }
101 return result;
102}
103
104void fxIndexSlot(txLinker* linker, txSlot* slot, txInteger index)
105{

Callers 1

fxOptimizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected