Used pad name lists for pad ids
authorFather Chrysostomos <sprout@cpan.org>
Wed, 17 Oct 2012 01:04:28 +0000 (18:04 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 17 Oct 2012 04:51:46 +0000 (21:51 -0700)
commit8771da69db30134352181c38401c7e50753a7ee8
tree10c5d26ce8e3d86763deb53b5d0a1e68d860ea90
parent61c8799482f9e533904bfe832138c24064709f7d
Used pad name lists for pad ids

I added pad IDs so that a pad could record which pad it closes over,
to avoid problems with closures closing over the wrong pad, resulting
in crashes or bizarre copies.  These pad IDs were shared between
clones of the same pad.

In commit 9ef8d56, for efficiency I made clones of the same closure
share the same pad name list.

It has just occurred to be that each padlist containing the same pad
name list also has the same pad ID, so we can just use the pad name
list itself as the ID.

This makes padlists 32 bits smaller and eliminates PL_pad_generation
from the interpreter struct.
embedvar.h
intrpvar.h
pad.c
pad.h
pp_ctl.c
toke.c