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 /regen/opcodes | |
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 'regen/opcodes')
-rw-r--r-- | regen/opcodes | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/regen/opcodes b/regen/opcodes index 0192f1c804..7942865641 100644 --- a/regen/opcodes +++ b/regen/opcodes @@ -583,3 +583,5 @@ leavetrycatch try {block} exit ck_null @ poptry pop try ck_null @ catch catch {} block ck_null | pushdefer push defer {} block ck_null | + +isbool boolean type test ck_null 1 |