| 216 | #endif |
| 217 | |
| 218 | void _xsbug_main(txMachine* the) |
| 219 | { |
| 220 | txPreparation* preparation = xsPreparation(); |
| 221 | txMachine* root; |
| 222 | |
| 223 | c_memset(&gxAgentCluster, 0, sizeof(txAgentCluster)); |
| 224 | |
| 225 | fxCreateCondition(&(gxAgentCluster.countCondition)); |
| 226 | fxCreateMutex(&(gxAgentCluster.countMutex)); |
| 227 | fxCreateCondition(&(gxAgentCluster.dataCondition)); |
| 228 | fxCreateMutex(&(gxAgentCluster.dataMutex)); |
| 229 | fxCreateMutex(&(gxAgentCluster.reportMutex)); |
| 230 | |
| 231 | root = &(gxAgentCluster.root); |
| 232 | root->preparation = preparation; |
| 233 | root->keyArray = preparation->keys; |
| 234 | root->keyCount = (txID)preparation->keyCount + (txID)preparation->creation.initialKeyCount; |
| 235 | root->keyIndex = (txID)preparation->keyCount; |
| 236 | root->nameModulo = preparation->nameModulo; |
| 237 | root->nameTable = preparation->names; |
| 238 | root->symbolModulo = preparation->symbolModulo; |
| 239 | root->symbolTable = preparation->symbols; |
| 240 | |
| 241 | root->stack = &preparation->stack[0]; |
| 242 | root->stackBottom = &preparation->stack[0]; |
| 243 | root->stackTop = &preparation->stack[preparation->stackCount]; |
| 244 | |
| 245 | root->firstHeap = &preparation->heap[0]; |
| 246 | root->freeHeap = &preparation->heap[preparation->heapCount - 1]; |
| 247 | root->aliasCount = (txID)preparation->aliasCount; |
| 248 | |
| 249 | gxTest262Async = TEST262_SYNC; |
| 250 | xsResult = xsNewHostFunction(_xsbug_done, 1); |
| 251 | xsSet(xsGlobal, xsID("$DONE"), xsResult); |
| 252 | fxBubble(the, 2, ">", 0, "test262"); |
| 253 | } |
| 254 | |
| 255 | static void _xsbug_importFulfilled(txMachine* the) |
| 256 | { |
nothing calls this directly
no test coverage detected