From 852c1a84672ff049d20d941d4df1decaabf3f3f0 Mon Sep 17 00:00:00 2001 From: "Paul \"LeoNerd\" Evans" Date: Tue, 30 Nov 2021 17:37:13 +0000 Subject: 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() --- regen/opcodes | 2 ++ 1 file changed, 2 insertions(+) (limited to 'regen/opcodes') 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 -- cgit v1.2.1