summaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2016-12-13 19:03:51 -0500
committerYury Selivanov <yury@magic.io>2016-12-13 19:03:51 -0500
commit4f5d39b98cc760dcb7641bb71bdaeb2933b1ee40 (patch)
treeb8af21b0ed21d81918771d352ab1a915324d8f5a /Include
parentb00a24500f1d41da79b033d3afedc29a3e006e53 (diff)
downloadcpython-4f5d39b98cc760dcb7641bb71bdaeb2933b1ee40.tar.gz
Issue #26110: Add LOAD_METHOD/CALL_METHOD opcodes.
Special thanks to INADA Naoki for pushing the patch through the last mile, Serhiy Storchaka for reviewing the code, and to Victor Stinner for suggesting the idea (originally implemented in the PyPy project).
Diffstat (limited to 'Include')
-rw-r--r--Include/opcode.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/opcode.h b/Include/opcode.h
index be360e1016..99c3b0ef81 100644
--- a/Include/opcode.h
+++ b/Include/opcode.h
@@ -126,6 +126,8 @@ extern "C" {
#define BUILD_CONST_KEY_MAP 156
#define BUILD_STRING 157
#define BUILD_TUPLE_UNPACK_WITH_CALL 158
+#define LOAD_METHOD 160
+#define CALL_METHOD 161
/* EXCEPT_HANDLER is a special, implicit block type which is created when
entering an except handler. It is not an opcode but we define it here