Lines Matching refs:opname
23 def count_instr_recursively(f, opname):
26 if instr.opname == opname:
32 count += count_instr_recursively(c, opname)
42 if 'JUMP_' not in instr.opname:
46 if tgt.opname in ('JUMP_ABSOLUTE', 'JUMP_FORWARD'):
47 self.fail(f'{instr.opname} at {instr.offset} '
48 f'jumps to {tgt.opname} at {tgt.offset}')
50 if (instr.opname in ('JUMP_ABSOLUTE', 'JUMP_FORWARD') and
51 tgt.opname == 'RETURN_VALUE'):
52 self.fail(f'{instr.opname} at {instr.offset} '
53 f'jumps to {tgt.opname} at {tgt.offset}')
55 if '_OR_POP' in instr.opname and 'JUMP_IF_' in tgt.opname:
56 self.fail(f'{instr.opname} at {instr.offset} '
57 f'jumps to {tgt.opname} at {tgt.offset}')
167 if instr.opname == 'LOAD_CONST']
256 self.assertFalse(instr.opname.startswith('BINARY_'))
315 self.assertFalse(instr.opname.startswith('UNARY_'))
323 self.assertFalse(instr.opname.startswith('UNARY_'))
327 for line, elem, opname in (
334 self.assertInBytecode(code, opname)
343 if instr.opname == 'RETURN_VALUE']
359 if instr.opname == 'RETURN_VALUE']
436 if instr.opname == 'RETURN_VALUE']
465 self.assertFalse(instr.opname.startswith('UNARY_'))
466 self.assertFalse(instr.opname.startswith('BINARY_'))
467 self.assertFalse(instr.opname.startswith('BUILD_'))