| 1198 | } |
| 1199 | |
| 1200 | void fxNew(txMachine* the) |
| 1201 | { |
| 1202 | txSlot* constructor = the->stack; |
| 1203 | txSlot* slot = constructor - 4; |
| 1204 | the->stack = slot; |
| 1205 | // FRAME |
| 1206 | mxInitSlotKind(slot++, XS_UNINITIALIZED_KIND); |
| 1207 | // RESULT |
| 1208 | mxInitSlotKind(slot++, XS_UNDEFINED_KIND); |
| 1209 | // FUNCTION (copy of constructor) |
| 1210 | slot->value = constructor->value; |
| 1211 | mxInitSlotKind(slot++, constructor->kind); |
| 1212 | // THIS (uninitialized marks as constructor) |
| 1213 | mxInitSlotKind(slot++, XS_UNINITIALIZED_KIND); |
| 1214 | // TARGET (constructor = new.target, stays in place) |
| 1215 | } |
| 1216 | |
| 1217 | void fxNewID(txMachine* the, txID theID) |
| 1218 | { |
no outgoing calls
no test coverage detected