summaryrefslogtreecommitdiffstats
path: root/Python/ceval_macros.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2023-06-27 21:17:41 (GMT)
committerGitHub <noreply@github.com>2023-06-27 21:17:41 (GMT)
commit6b5166fb12c4744544da4ee26ef437d025eb762a (patch)
treecfa4fcb750ef895be8598c1b8b27f6cb41fff9f4 /Python/ceval_macros.h
parent529088100952b31797a29ef7e0f5716613b32d66 (diff)
downloadcpython-6b5166fb12c4744544da4ee26ef437d025eb762a.zip
cpython-6b5166fb12c4744544da4ee26ef437d025eb762a.tar.gz
cpython-6b5166fb12c4744544da4ee26ef437d025eb762a.tar.bz2
gh-104584: Change DEOPT_IF in uops executor (#106146)
This effectively reverts bb578a0, restoring the original DEOPT_IF() macro in ceval_macros.h, and redefining it in the Tier 2 interpreter. We can get rid of the PREDICTED() macros there as well!
Diffstat (limited to 'Python/ceval_macros.h')
-rw-r--r--Python/ceval_macros.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/ceval_macros.h b/Python/ceval_macros.h
index f5c78fc..0d41ef5 100644
--- a/Python/ceval_macros.h
+++ b/Python/ceval_macros.h
@@ -264,12 +264,11 @@ GETITEM(PyObject *v, Py_ssize_t i) {
#define UPDATE_MISS_STATS(INSTNAME) ((void)0)
#endif
-// NOTE: in the uops version, opcode may be > 255
#define DEOPT_IF(COND, INSTNAME) \
if ((COND)) { \
/* This is only a single jump on release builds! */ \
UPDATE_MISS_STATS((INSTNAME)); \
- assert(opcode >= 256 || _PyOpcode_Deopt[opcode] == (INSTNAME)); \
+ assert(_PyOpcode_Deopt[opcode] == (INSTNAME)); \
GO_TO_INSTRUCTION(INSTNAME); \
}