This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
make gimme consistently U8
authorDavid Mitchell <davem@iabyn.com>
Mon, 4 Jan 2016 09:16:52 +0000 (09:16 +0000)
committerDavid Mitchell <davem@iabyn.com>
Wed, 3 Feb 2016 09:19:21 +0000 (09:19 +0000)
commit1c23e2bdad29ff1daf6392412fffae9341795834
tree2870d0000ec000d13e363c8a74ed81f224e261fa
parent263e0548e81a5558c883eb43d9a72c5f20f67741
make gimme consistently U8

The value of gimme stored in the context stack is U8.
Make all other uses in the main core consistent with this.

My primary motivation on this was that the new function cx_pushblock(),
which I gave a 'U8 gimme' parameter, was generating warnings where callers
were passing I32 gimme vars to it. Rather than play whack-a-mole, it
seemed simpler to just uniformly use U8 everywhere.

Porting/bench.pl shows a consistent reduction of about 2 instructions on
the loop and sub benchmarks, so this change isn't harming performance.
16 files changed:
cop.h
doop.c
embed.fnc
gv.c
pod/perlcall.pod
pod/perlguts.pod
pp.c
pp.h
pp_ctl.c
pp_hot.c
pp_pack.c
pp_sort.c
pp_sys.c
proto.h
regexec.c
universal.c