From 5486e94c1ad7342d7a892631cc8e7ff33a022ae8 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 12 Jun 2016 00:39:41 +0300 Subject: Issue #27140: Added BUILD_CONST_KEY_MAP opcode. --- Python/opcode_targets.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/opcode_targets.h') diff --git a/Python/opcode_targets.h b/Python/opcode_targets.h index 387225641c..0fec93470f 100644 --- a/Python/opcode_targets.h +++ b/Python/opcode_targets.h @@ -155,7 +155,7 @@ static void *opcode_targets[256] = { &&TARGET_BUILD_SET_UNPACK, &&TARGET_SETUP_ASYNC_WITH, &&TARGET_FORMAT_VALUE, - &&_unknown_opcode, + &&TARGET_BUILD_CONST_KEY_MAP, &&_unknown_opcode, &&_unknown_opcode, &&_unknown_opcode, -- cgit v1.2.1 From fa60de800763bc0f7b70d67ca749fce15d2d53de Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 12 Jun 2016 17:36:24 +0300 Subject: Issue #27095: Simplified MAKE_FUNCTION and removed MAKE_CLOSURE opcodes. Patch by Demur Rumed. --- Python/opcode_targets.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/opcode_targets.h') diff --git a/Python/opcode_targets.h b/Python/opcode_targets.h index 0fec93470f..6182e806c1 100644 --- a/Python/opcode_targets.h +++ b/Python/opcode_targets.h @@ -133,7 +133,7 @@ static void *opcode_targets[256] = { &&TARGET_CALL_FUNCTION, &&TARGET_MAKE_FUNCTION, &&TARGET_BUILD_SLICE, - &&TARGET_MAKE_CLOSURE, + &&_unknown_opcode, &&TARGET_LOAD_CLOSURE, &&TARGET_LOAD_DEREF, &&TARGET_STORE_DEREF, -- cgit v1.2.1 From 0c3c0375111bde5f7586e6c951f08a0035039a39 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Tue, 6 Sep 2016 22:07:53 +0300 Subject: Issue #27078: Added BUILD_STRING opcode. Optimized f-strings evaluation. --- Python/opcode_targets.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/opcode_targets.h') diff --git a/Python/opcode_targets.h b/Python/opcode_targets.h index 6182e806c1..9337474682 100644 --- a/Python/opcode_targets.h +++ b/Python/opcode_targets.h @@ -156,7 +156,7 @@ static void *opcode_targets[256] = { &&TARGET_SETUP_ASYNC_WITH, &&TARGET_FORMAT_VALUE, &&TARGET_BUILD_CONST_KEY_MAP, - &&_unknown_opcode, + &&TARGET_BUILD_STRING, &&_unknown_opcode, &&_unknown_opcode, &&_unknown_opcode, -- cgit v1.2.1 From b164476aaf77ceffac36ddbbdc7f4df90fbfebd3 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Thu, 8 Sep 2016 20:50:03 -0700 Subject: Issue #27985: Implement PEP 526 -- Syntax for Variable Annotations. Patch by Ivan Levkivskyi. --- Python/opcode_targets.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Python/opcode_targets.h') diff --git a/Python/opcode_targets.h b/Python/opcode_targets.h index 9337474682..270ae5dbad 100644 --- a/Python/opcode_targets.h +++ b/Python/opcode_targets.h @@ -84,7 +84,7 @@ static void *opcode_targets[256] = { &&TARGET_WITH_CLEANUP_FINISH, &&TARGET_RETURN_VALUE, &&TARGET_IMPORT_STAR, - &&_unknown_opcode, + &&TARGET_SETUP_ANNOTATIONS, &&TARGET_YIELD_VALUE, &&TARGET_POP_BLOCK, &&TARGET_END_FINALLY, @@ -126,7 +126,7 @@ static void *opcode_targets[256] = { &&TARGET_LOAD_FAST, &&TARGET_STORE_FAST, &&TARGET_DELETE_FAST, - &&_unknown_opcode, + &&TARGET_STORE_ANNOTATION, &&_unknown_opcode, &&_unknown_opcode, &&TARGET_RAISE_VARARGS, -- cgit v1.2.1 From 2b5865ab2c78d3bdaf8ad7047762b5d0d41d8654 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 9 Sep 2016 10:17:08 -0700 Subject: Rework CALL_FUNCTION* opcodes Issue #27213: Rework CALL_FUNCTION* opcodes to produce shorter and more efficient bytecode: * CALL_FUNCTION now only accepts position arguments * CALL_FUNCTION_KW accepts position arguments and keyword arguments, but keys of keyword arguments are packed into a constant tuple. * CALL_FUNCTION_EX is the most generic, it expects a tuple and a dict for positional and keyword arguments. CALL_FUNCTION_VAR and CALL_FUNCTION_VAR_KW opcodes have been removed. 2 tests of test_traceback are currently broken: skip test, the issue #28050 was created to track the issue. Patch by Demur Rumed, design by Serhiy Storchaka, reviewed by Serhiy Storchaka and Victor Stinner. --- Python/opcode_targets.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Python/opcode_targets.h') diff --git a/Python/opcode_targets.h b/Python/opcode_targets.h index 270ae5dbad..6d996f064d 100644 --- a/Python/opcode_targets.h +++ b/Python/opcode_targets.h @@ -139,9 +139,9 @@ static void *opcode_targets[256] = { &&TARGET_STORE_DEREF, &&TARGET_DELETE_DEREF, &&_unknown_opcode, - &&TARGET_CALL_FUNCTION_VAR, + &&_unknown_opcode, &&TARGET_CALL_FUNCTION_KW, - &&TARGET_CALL_FUNCTION_VAR_KW, + &&TARGET_CALL_FUNCTION_EX, &&TARGET_SETUP_WITH, &&TARGET_EXTENDED_ARG, &&TARGET_LIST_APPEND, -- cgit v1.2.1 From a9d40323166c43221f8a4f57170cb057f95ad2dc Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 2 Oct 2016 10:33:46 +0300 Subject: Issue #28257: Improved error message when pass a non-iterable as a var-positional argument. Added opcode BUILD_TUPLE_UNPACK_WITH_CALL. --- Python/opcode_targets.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/opcode_targets.h') diff --git a/Python/opcode_targets.h b/Python/opcode_targets.h index 6d996f064d..72d24080d8 100644 --- a/Python/opcode_targets.h +++ b/Python/opcode_targets.h @@ -157,7 +157,7 @@ static void *opcode_targets[256] = { &&TARGET_FORMAT_VALUE, &&TARGET_BUILD_CONST_KEY_MAP, &&TARGET_BUILD_STRING, - &&_unknown_opcode, + &&TARGET_BUILD_TUPLE_UNPACK_WITH_CALL, &&_unknown_opcode, &&_unknown_opcode, &&_unknown_opcode, -- cgit v1.2.1