diff options
author | Mark Shannon <mark@hotpy.org> | 2020-01-27 09:57:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-27 09:57:45 (GMT) |
commit | 8a4cd700a7426341c2074a2b580306d2d60ec839 (patch) | |
tree | 64ff9fdc0361fe05e0ef5a2508e832a5de03b830 /Python/opcode_targets.h | |
parent | 72b1004657e60c900e4cd031b2635b587f4b280e (diff) | |
download | cpython-8a4cd700a7426341c2074a2b580306d2d60ec839.zip cpython-8a4cd700a7426341c2074a2b580306d2d60ec839.tar.gz cpython-8a4cd700a7426341c2074a2b580306d2d60ec839.tar.bz2 |
bpo-39320: Handle unpacking of **values in compiler (GH-18141)
* Add DICT_UPDATE and DICT_MERGE bytecodes. Use them for ** unpacking.
* Remove BUILD_MAP_UNPACK and BUILD_MAP_UNPACK_WITH_CALL, as they are now unused.
* Update magic number for ** unpacking opcodes.
* Update dis.rst to incorporate new bytecodes.
* Add blurb entry.
Diffstat (limited to 'Python/opcode_targets.h')
-rw-r--r-- | Python/opcode_targets.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/opcode_targets.h b/Python/opcode_targets.h index d413bab..538fdbe 100644 --- a/Python/opcode_targets.h +++ b/Python/opcode_targets.h @@ -149,8 +149,8 @@ static void *opcode_targets[256] = { &&TARGET_MAP_ADD, &&TARGET_LOAD_CLASSDEREF, &&_unknown_opcode, - &&TARGET_BUILD_MAP_UNPACK, - &&TARGET_BUILD_MAP_UNPACK_WITH_CALL, + &&_unknown_opcode, + &&_unknown_opcode, &&_unknown_opcode, &&_unknown_opcode, &&TARGET_SETUP_ASYNC_WITH, @@ -163,8 +163,8 @@ static void *opcode_targets[256] = { &&TARGET_CALL_METHOD, &&TARGET_LIST_EXTEND, &&TARGET_SET_UPDATE, - &&_unknown_opcode, - &&_unknown_opcode, + &&TARGET_DICT_MERGE, + &&TARGET_DICT_UPDATE, &&_unknown_opcode, &&_unknown_opcode, &&_unknown_opcode, |