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

Function fxIsSameReference

xs/sources/xsRun.c:4759–4784  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4757}
4758
4759txBoolean fxIsSameReference(txMachine* the, txSlot* a, txSlot* b)
4760{
4761 a = a->value.reference;
4762 b = b->value.reference;
4763 if (a == b)
4764 return 1;
4765#if mxAliasInstance
4766 if (a->ID) {
4767 txSlot* alias = the->aliasArray[a->ID];
4768 if (alias) {
4769 a = alias;
4770 if (a == b)
4771 return 1;
4772 }
4773 }
4774 if (b->ID) {
4775 txSlot* alias = the->aliasArray[b->ID];
4776 if (alias) {
4777 b = alias;
4778 if (a == b)
4779 return 1;
4780 }
4781 }
4782#endif
4783 return 0;
4784}
4785
4786txBoolean fxIsSameSlot(txMachine* the, txSlot* a, txSlot* b)
4787{

Callers 5

fx_deepEqualInstancesFunction · 0.85
fx_deepEqualSlotsFunction · 0.85
xsRun.cFile · 0.85
fxIsSameSlotFunction · 0.85
fxIsSameValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected