summaryrefslogtreecommitdiff
path: root/opnames.h
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2021-11-30 17:37:13 +0000
committerPaul Evans <leonerd@leonerd.org.uk>2021-12-01 22:03:37 +0000
commit852c1a84672ff049d20d941d4df1decaabf3f3f0 (patch)
tree5baaf3ce559ae7d06b13b6c740a23bdf0913b267 /opnames.h
parent9ae6f26499e0b2d56c36d730466988a3d5ac8457 (diff)
downloadperl-852c1a84672ff049d20d941d4df1decaabf3f3f0.tar.gz
Direct optree implementations of builtin:: functions
Turn builtin::true/false into OP_CONSTs Add a dedicated OP_ISBOOL, make an efficient op version of builtin::isbool()
Diffstat (limited to 'opnames.h')
-rw-r--r--opnames.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/opnames.h b/opnames.h
index a78baab591..a8a46f2396 100644
--- a/opnames.h
+++ b/opnames.h
@@ -419,10 +419,11 @@ typedef enum opcode {
OP_POPTRY = 402,
OP_CATCH = 403,
OP_PUSHDEFER = 404,
+ OP_ISBOOL = 405,
OP_max
} opcode;
-#define MAXO 405
+#define MAXO 406
#define OP_FREED MAXO
/* the OP_IS_* macros are optimized to a simple range check because