| 475 | |
| 476 | #if defined(BOXEDWINE_JIT) |
| 477 | void KMemory::clearJit(DecodedOp* op) { |
| 478 | DecodedOp* nextOp = op->blockStart; |
| 479 | U32 blockOpCount = nextOp->blockOpCount; |
| 480 | void* start = nextOp->pfnJitCode; |
| 481 | |
| 482 | for (U32 i = 0; i < blockOpCount; i++) { |
| 483 | nextOp->flags &= ~OP_FLAG_JIT; |
| 484 | nextOp->pfn = NormalCPU::getFunctionForOp(nextOp); |
| 485 | nextOp->pfnJitCode = nullptr; |
| 486 | nextOp->jitLen = 0; |
| 487 | nextOp->blockStart = nullptr; |
| 488 | nextOp->blockOpCount = 0; |
| 489 | nextOp->blockLen = 0; |
| 490 | nextOp->runCount = 0; |
| 491 | nextOp = nextOp->next; |
| 492 | } |
| 493 | data->codeMemory.free(start); |
| 494 | } |
| 495 | |
| 496 | void clearJitBlock(const std::vector<void*>& jitOps); |
| 497 | |