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

Function fxMeasureReference

xs/sources/xsMarshall.c:815–826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

813}
814
815void fxMeasureReference(txMachine* the, txSlot* theSlot, txMarshallBuffer* theBuffer, txBoolean alien)
816{
817 if (theSlot->flag & XS_DONT_MARSHALL_FLAG) {
818 if (alien)
819 if (theSlot->value.host.variant.destructor != fxReleaseSharedChunk)
820 fxMeasureThrow(the, theBuffer, "read only object");
821 }
822 else if ((theSlot->flag & XS_MARK_FLAG) == 0) {
823 mxCheckCStack();
824 fxMeasureSlot(the, theSlot, theBuffer, alien);
825 }
826}
827
828void fxMeasureSlot(txMachine* the, txSlot* theSlot, txMarshallBuffer* theBuffer, txBoolean alien)
829{

Callers 1

fxMeasureSlotFunction · 0.85

Calls 2

fxMeasureThrowFunction · 0.85
fxMeasureSlotFunction · 0.70

Tested by

no test coverage detected