| 2310 | } |
| 2311 | |
| 2312 | txSlot* fxFindRealm(txMachine* the) |
| 2313 | { |
| 2314 | txSlot* frame = fxFindFrame(the); |
| 2315 | txSlot* realm = C_NULL; |
| 2316 | if (frame && (!(frame->flag & XS_C_FLAG))) { |
| 2317 | txSlot* function = frame + 2; |
| 2318 | if (mxIsReference(function)) { |
| 2319 | txSlot* instance = function->value.reference; |
| 2320 | txSlot* home = mxFunctionInstanceHome(instance); |
| 2321 | txSlot* module = home->value.home.module; |
| 2322 | if (module) |
| 2323 | realm = mxModuleInstanceInternal(module)->value.module.realm; |
| 2324 | } |
| 2325 | } |
| 2326 | if (!realm) |
| 2327 | realm = mxModuleInstanceInternal(mxProgram.value.reference)->value.module.realm; |
| 2328 | return realm; |
| 2329 | } |
| 2330 | |
| 2331 | void fxGo(txMachine* the) |
| 2332 | { |
no test coverage detected