MCPcopy Index your code
hub / github.com/python/cpython / _validate

Method _validate

Tools/jit/_optimizers.py:558–566  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

556 raise NotImplementedError()
557
558 def _validate(self) -> None:
559 for block in self._blocks():
560 if not block.instructions:
561 continue
562 for inst in block.instructions:
563 if self.frame_pointers:
564 assert (
565 self._frame_pointer_modify.match(inst.text) is None
566 ), "Frame pointer should not be modified"
567
568 def run(self) -> None:
569 """Run this optimizer."""

Callers 1

runMethod · 0.95

Calls 2

_blocksMethod · 0.95
matchMethod · 0.45

Tested by

no test coverage detected