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

Method test_loop_quicken

Lib/test/test_dis.py:1372–1380  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1370 @cpython_only
1371 @requires_specialization
1372 def test_loop_quicken(self):
1373 # Loop can trigger a quicken where the loop is located
1374 self.code_quicken(loop_test)
1375 got = self.get_disassembly(loop_test, adaptive=True)
1376 jit = sys._jit.is_enabled()
1377 resume_str = "_JIT" if jit else ""
1378 jit_str = "JIT " if jit else "NO_JIT"
1379 expected = dis_loop_test_quickened_code.format(resume_str, jit_str)
1380 self.do_disassembly_compare(got, expected)
1381
1382 @cpython_only
1383 @requires_specialization

Callers

nothing calls this directly

Calls 4

code_quickenMethod · 0.95
get_disassemblyMethod · 0.95
formatMethod · 0.45

Tested by

no test coverage detected