|
10 | 10 | import types |
11 | 11 | import unittest |
12 | 12 | from test.support import (captured_stdout, requires_debug_ranges, |
13 | | - requires_specialization, requires_specialization_ft, |
14 | | - cpython_only) |
| 13 | + requires_specialization, cpython_only) |
15 | 14 | from test.support.bytecode_helper import BytecodeTestCase |
16 | 15 |
|
17 | 16 | import opcode |
@@ -1261,27 +1260,6 @@ def test_super_instructions(self): |
1261 | 1260 | got = self.get_disassembly(load_test, adaptive=True) |
1262 | 1261 | self.do_disassembly_compare(got, dis_load_test_quickened_code) |
1263 | 1262 |
|
1264 | | - @cpython_only |
1265 | | - @requires_specialization_ft |
1266 | | - def test_binary_specialize(self): |
1267 | | - binary_op_quicken = """\ |
1268 | | - 0 RESUME_CHECK 0 |
1269 | | -
|
1270 | | - 1 LOAD_NAME 0 (a) |
1271 | | - LOAD_NAME 1 (b) |
1272 | | - %s |
1273 | | - RETURN_VALUE |
1274 | | -""" |
1275 | | - co_int = compile('a + b', "<int>", "eval") |
1276 | | - self.code_quicken(lambda: exec(co_int, {}, {'a': 1, 'b': 2})) |
1277 | | - got = self.get_disassembly(co_int, adaptive=True) |
1278 | | - self.do_disassembly_compare(got, binary_op_quicken % "BINARY_OP_ADD_INT 0 (+)") |
1279 | | - |
1280 | | - co_unicode = compile('a + b', "<unicode>", "eval") |
1281 | | - self.code_quicken(lambda: exec(co_unicode, {}, {'a': 'a', 'b': 'b'})) |
1282 | | - got = self.get_disassembly(co_unicode, adaptive=True) |
1283 | | - self.do_disassembly_compare(got, binary_op_quicken % "BINARY_OP_ADD_UNICODE 0 (+)") |
1284 | | - |
1285 | 1263 | @cpython_only |
1286 | 1264 | @requires_specialization |
1287 | 1265 | def test_binary_subscr_specialize(self): |
@@ -1335,27 +1313,6 @@ def test_call_specialize(self): |
1335 | 1313 | got = self.get_disassembly(co, adaptive=True) |
1336 | 1314 | self.do_disassembly_compare(got, call_quicken) |
1337 | 1315 |
|
1338 | | - @cpython_only |
1339 | | - @requires_specialization_ft |
1340 | | - def test_contains_specialize(self): |
1341 | | - contains_op_quicken = """\ |
1342 | | - 0 RESUME_CHECK 0 |
1343 | | -
|
1344 | | - 1 LOAD_NAME 0 (a) |
1345 | | - LOAD_NAME 1 (b) |
1346 | | - %s |
1347 | | - RETURN_VALUE |
1348 | | -""" |
1349 | | - co_dict = compile('a in b', "<dict>", "eval") |
1350 | | - self.code_quicken(lambda: exec(co_dict, {}, {'a': 1, 'b': {1: 5}})) |
1351 | | - got = self.get_disassembly(co_dict, adaptive=True) |
1352 | | - self.do_disassembly_compare(got, contains_op_quicken % "CONTAINS_OP_DICT 0 (in)") |
1353 | | - |
1354 | | - co_set = compile('a in b', "<set>", "eval") |
1355 | | - self.code_quicken(lambda: exec(co_set, {}, {'a': 1.0, 'b': {1, 2, 3}})) |
1356 | | - got = self.get_disassembly(co_set, adaptive=True) |
1357 | | - self.do_disassembly_compare(got, contains_op_quicken % "CONTAINS_OP_SET 0 (in)") |
1358 | | - |
1359 | 1316 | @cpython_only |
1360 | 1317 | @requires_specialization |
1361 | 1318 | def test_loop_quicken(self): |
|
0 commit comments