diff options
author | Paul "LeoNerd" Evans <leonerd@leonerd.org.uk> | 2021-11-30 17:37:13 +0000 |
---|---|---|
committer | Paul Evans <leonerd@leonerd.org.uk> | 2021-12-01 22:03:37 +0000 |
commit | 852c1a84672ff049d20d941d4df1decaabf3f3f0 (patch) | |
tree | 5baaf3ce559ae7d06b13b6c740a23bdf0913b267 /opnames.h | |
parent | 9ae6f26499e0b2d56c36d730466988a3d5ac8457 (diff) | |
download | perl-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |