diff options
author | Mark Shannon <mark@hotpy.org> | 2021-11-23 09:53:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 09:53:24 +0000 |
commit | 135cabd328504e1648d17242b42b675cdbd0193b (patch) | |
tree | 4efa5418b1816ba02c206678ecfa4e2d8e8d8f14 /Python/opcode_targets.h | |
parent | d82f2caf942fa8b94e797a2f116ee54ec303c2df (diff) | |
download | cpython-git-135cabd328504e1648d17242b42b675cdbd0193b.tar.gz |
bpo-44525: Copy free variables in bytecode to allow calls to inner functions to be specialized (GH-29595)
* Make internal APIs that take PyFrameConstructor take a PyFunctionObject instead.
* Add reference to function to frame, borrow references to builtins and globals.
* Add COPY_FREE_VARS instruction to allow specialization of calls to inner functions.
Diffstat (limited to 'Python/opcode_targets.h')
-rw-r--r-- | Python/opcode_targets.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/opcode_targets.h b/Python/opcode_targets.h index 903b967c3a..c9d430d268 100644 --- a/Python/opcode_targets.h +++ b/Python/opcode_targets.h @@ -148,7 +148,7 @@ static void *opcode_targets[256] = { &&TARGET_SET_ADD, &&TARGET_MAP_ADD, &&TARGET_LOAD_CLASSDEREF, - &&_unknown_opcode, + &&TARGET_COPY_FREE_VARS, &&_unknown_opcode, &&_unknown_opcode, &&TARGET_MATCH_CLASS, |