summaryrefslogtreecommitdiff
path: root/t/perf
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2022-03-05 16:16:25 +0000
committerPaul Evans <leonerd@leonerd.org.uk>2022-03-07 16:44:11 +0000
commit5a94615fd16a4fb4375917ca80b65f34f2c0d69c (patch)
treeb2d711393523be1ca5a3736d2a1960c38dbbbe84 /t/perf
parentebd227f24001c3df0f1d7cf2cc9041fe9392f818 (diff)
downloadperl-5a94615fd16a4fb4375917ca80b65f34f2c0d69c.tar.gz
Rename is{bool,weak} to is_{bool,weak}
Diffstat (limited to 't/perf')
-rw-r--r--t/perf/opcount.t18
1 files changed, 9 insertions, 9 deletions
diff --git a/t/perf/opcount.t b/t/perf/opcount.t
index 68e0f2892f..ad58203a98 100644
--- a/t/perf/opcount.t
+++ b/t/perf/opcount.t
@@ -707,20 +707,20 @@ test_opcount(0, "builtin::true/false are replaced with constants",
const => 2,
});
-test_opcount(0, "builtin::isbool is replaced with direct opcode",
- sub { my $x; my $y; $y = builtin::isbool($x); },
+test_opcount(0, "builtin::is_bool is replaced with direct opcode",
+ sub { my $x; my $y; $y = builtin::is_bool($x); },
{
entersub => 0,
- isbool => 1,
+ is_bool => 1,
padsv => 3, # OA_TARGLEX applies so only 3, not 4
sassign => 0,
});
-test_opcount(0, "builtin::isbool gets constant-folded",
- sub { builtin::isbool(123); },
+test_opcount(0, "builtin::is_bool gets constant-folded",
+ sub { builtin::is_bool(123); },
{
entersub => 0,
- isbool => 0,
+ is_bool => 0,
const => 1,
});
@@ -738,11 +738,11 @@ test_opcount(0, "builtin::unweaken is replaced with direct opcode",
unweaken => 1,
});
-test_opcount(0, "builtin::isweak is replaced with direct opcode",
- sub { builtin::isweak([]); },
+test_opcount(0, "builtin::is_weak is replaced with direct opcode",
+ sub { builtin::is_weak([]); },
{
entersub => 0,
- isweak => 1,
+ is_weak => 1,
});
test_opcount(0, "builtin::blessed is replaced with direct opcode",