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

Function fxNewObjectInstance

xs/sources/xsObject.c:98–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96
97
98txSlot* fxNewObjectInstance(txMachine* the)
99{
100 txSlot* instance;
101 instance = fxNewSlot(the);
102 instance->kind = XS_INSTANCE_KIND;
103 instance->value.instance.garbage = C_NULL;
104 instance->value.instance.prototype = the->stack->value.reference;
105 the->stack->value.reference = instance;
106 the->stack->kind = XS_REFERENCE_KIND;
107 return instance;
108}
109
110void fx_Object(txMachine* the)
111{

Callers 15

_262_agent_start_auxFunction · 0.85
fxBuildAgentFunction · 0.85
fx_agent_start_auxFunction · 0.85
fxBuildModuleFunction · 0.85
fxNewModuleFunction · 0.85
fxPrepareModuleFunction · 0.85
fxPrepareTransferFunction · 0.85
fx_CompartmentFunction · 0.85
fxBuildMapSetFunction · 0.85
fxBuildMathFunction · 0.85
fxRunInstantiateFunction · 0.85

Calls 1

fxNewSlotFunction · 0.85

Tested by

no test coverage detected