PyPy BUILD_MAP_n. Reinstate bytecode tests

This commit is contained in:
rocky
2016-07-25 21:53:56 -04:00
parent 281f429223
commit 04cc80b0d6
10 changed files with 32 additions and 8 deletions

View File

@@ -238,7 +238,10 @@ class Scanner3(scan.Scanner):
continue
elif op in self.varargs_ops:
pos_args = inst.argval
opname = '%s_%d' % (opname, pos_args)
if self.is_pypy and not pos_args and opname == 'BUILD_MAP':
opname = 'BUILD_MAP_n'
else:
opname = '%s_%d' % (opname, pos_args)
elif self.is_pypy and opname in ('CALL_METHOD', 'JUMP_IF_NOT_DEBUG'):
customize['CALL_METHOD'] = argval
elif opname == 'UNPACK_EX':