(self, quickened, adaptive)
| 1395 | self.do_disassembly_compare(got, dis_extended_arg_quick_code) |
| 1396 | |
| 1397 | def get_cached_values(self, quickened, adaptive): |
| 1398 | def f(): |
| 1399 | l = [] |
| 1400 | for i in range(42): |
| 1401 | l.append(i) |
| 1402 | if quickened: |
| 1403 | self.code_quicken(f) |
| 1404 | else: |
| 1405 | # "copy" the code to un-quicken it: |
| 1406 | reset_code(f) |
| 1407 | for instruction in _unroll_caches_as_Instructions(dis.get_instructions( |
| 1408 | f, show_caches=True, adaptive=adaptive |
| 1409 | ), show_caches=True): |
| 1410 | if instruction.opname == "CACHE": |
| 1411 | yield instruction.argrepr |
| 1412 | |
| 1413 | @cpython_only |
| 1414 | def test_show_caches(self): |
no test coverage detected