diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-05-21 22:46:50 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-05-21 22:46:50 +0000 |
commit | e4305a6302fd35f8f8c1a7e612369beaaea58a4a (patch) | |
tree | 6ac771d6994c71db69f780e38918c56d399bdfef /ext | |
parent | 0e66cca035ceb727a3ab9256f4ef9b63b31b7c37 (diff) | |
download | perl-e4305a6302fd35f8f8c1a7e612369beaaea58a4a.tar.gz |
Add a union in place of xnv_nv, which allows AVs and HVs to re-use
the memory to store pointers and integers.
(Part 1 - will be reworked to be more efficient when IV or void*
is 64 bit soon)
p4raw-id: //depot/perl@24538
Diffstat (limited to 'ext')
-rw-r--r-- | ext/B/B.pm | 2 | ||||
-rw-r--r-- | ext/B/B.xs | 6 | ||||
-rw-r--r-- | ext/Devel/Peek/t/Peek.t | 10 |
3 files changed, 0 insertions, 18 deletions
diff --git a/ext/B/B.pm b/ext/B/B.pm index 84d19dcd10..2346ac0470 100644 --- a/ext/B/B.pm +++ b/ext/B/B.pm @@ -848,8 +848,6 @@ IoIFP($io) == PerlIO_stdin() ). =item MAX -=item OFF - =item ARRAY =item ARRAYelt diff --git a/ext/B/B.xs b/ext/B/B.xs index 0426fcde98..782ba9fb96 100644 --- a/ext/B/B.xs +++ b/ext/B/B.xs @@ -1559,12 +1559,6 @@ SSize_t AvMAX(av) B::AV av -#define AvOFF(av) ((XPVAV*)SvANY(av))->xof_off - -IV -AvOFF(av) - B::AV av - void AvARRAY(av) B::AV av diff --git a/ext/Devel/Peek/t/Peek.t b/ext/Devel/Peek/t/Peek.t index 7c932d0f41..c59b9f541e 100644 --- a/ext/Devel/Peek/t/Peek.t +++ b/ext/Devel/Peek/t/Peek.t @@ -167,8 +167,6 @@ do_test(11, SV = PVAV\\($ADDR\\) at $ADDR REFCNT = 2 FLAGS = \\(\\) - IV = 0 - NV = 0 ARRAY = $ADDR FILL = 1 MAX = 1 @@ -190,8 +188,6 @@ do_test(12, SV = PVHV\\($ADDR\\) at $ADDR REFCNT = 2 FLAGS = \\(SHAREKEYS\\) - IV = 1 - NV = $FLOAT ARRAY = $ADDR \\(0:7, 1:1\\) hash quality = 100.0% KEYS = 1 @@ -286,8 +282,6 @@ do_test(16, SV = PVHV\\($ADDR\\) at $ADDR REFCNT = 2 FLAGS = \\(OBJECT,SHAREKEYS\\) - IV = 0 - NV = 0 STASH = $ADDR\\t"Tac" ARRAY = 0x0 KEYS = 0 @@ -355,8 +349,6 @@ do_test(19, SV = PVHV\\($ADDR\\) at $ADDR REFCNT = 2 FLAGS = \\(SHAREKEYS,HASKFLAGS\\) - UV = 1 - NV = $FLOAT ARRAY = $ADDR \\(0:7, 1:1\\) hash quality = 100.0% KEYS = 1 @@ -381,8 +373,6 @@ do_test(19, SV = PVHV\\($ADDR\\) at $ADDR REFCNT = 2 FLAGS = \\(SHAREKEYS,HASKFLAGS\\) - UV = 1 - NV = 0 ARRAY = $ADDR \\(0:7, 1:1\\) hash quality = 100.0% KEYS = 1 |