MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / clearJit

Method clearJit

source/kernel/kmemory.cpp:477–494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475
476#if defined(BOXEDWINE_JIT)
477void 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
496void clearJitBlock(const std::vector<void*>& jitOps);
497

Callers

nothing calls this directly

Calls 1

freeMethod · 0.45

Tested by

no test coverage detected