summaryrefslogtreecommitdiff
path: root/dump.c
Commit message (Collapse)AuthorAgeFilesLines
* Calling cv_undef() on the CV created by newCONSTSUB() would leak likeNicholas Clark2006-04-191-2/+6
| | | | | | | | | | a Jumblie's preferred maritime craft. To free CvFILE for this case, take advantage of the 0 length prototype that will also be there, and hang it from the prototype. To do this properly means changing code to actually pay attention to SvCUR() on prototypes. It turns out that we always know the length of the prototype string, so this may be faster. Certainly, it's a memory saving (even ignoring the leak). p4raw-id: //depot/perl@27896
* A fix to change #27845 to get it to compile with -DPERL_MAD.Steve Peters2006-04-181-1/+1
| | | | | p4raw-link: @27845 on //depot/perl: 4199688e3d699f53e17448d3bad6e93e57d49dcc p4raw-id: //depot/perl@27889
* dump.c patch reduxAndy Lester2006-04-161-54/+40
| | | | | Message-ID: <20060416052936.GA19143@petdance.com> p4raw-id: //depot/perl@27845
* Teach Perl_do_sv_dump how to cope with IOs that have bogus things inNicholas Clark2006-04-151-3/+26
| | | | | GV slots. (Which source filters are prone to do to them). p4raw-id: //depot/perl@27827
* Serialise changes to %^H onto the current COP. Return the compile timeNicholas Clark2006-03-311-0/+3
| | | | | | state of %^H as an eleventh value from caller. This allows users to write pragmas. p4raw-id: //depot/perl@27643
* Random accumulated patchesAndy Lester2006-03-311-3/+3
| | | | | Message-ID: <20060331054228.GA18940@petdance.com> p4raw-id: //depot/perl@27641
* Moving the overloading flag from the reference to the referant allowsNicholas Clark2006-03-151-2/+1
| | | | | (re)?blessing of overloaded objects to work correctly. p4raw-id: //depot/perl@27506
* Remove two NEWSV()s in the non-ithread dump code that got missed.Nicholas Clark2006-03-091-2/+2
| | | p4raw-id: //depot/perl@27455
* Fix C99ism in dump.cNicholas Clark2006-03-091-2/+2
| | | p4raw-id: //depot/perl@27434
* MAD changes to dump.cNicholas Clark2006-03-081-0/+970
| | | p4raw-id: //depot/perl@27422
* Curiously none of the macros SvIVX, SvUVX or SvNVX are used onNicholas Clark2006-02-251-3/+4
| | | | | typeglobs. p4raw-id: //depot/perl@27325
* Store GvGP in the SV head union. For all the common lookups [eg GvCV()]Nicholas Clark2006-02-251-1/+3
| | | | | | | | this avoids 1 pointer dereference and the associated risk of a CPU cache miss. Although this patch looks deceptively small, I fear its CBV(*) might be rather high. (* Crack By Volume) p4raw-id: //depot/perl@27323
* Replace direct flags tests & manipulations for SVpad_TYPED andNicholas Clark2006-02-231-3/+3
| | | | | | SVpad_OUR with macros SvPAD_TYPED(), SvPAD_OUR() etc, to abstract away the flags bits acutally used to store this information. p4raw-id: //depot/perl@27294
* Remove set magic from typeglobs. Remove typeglob magic entirely.Nicholas Clark2006-02-231-2/+0
| | | | | | Typeglobs now never access the SvPVX, SvIVX or SvNVX when holding a valid GvGP(). p4raw-id: //depot/perl@27289
* sv_dump should report the PV for PVGVs, as it can get set.Nicholas Clark2006-02-221-1/+1
| | | | | (Typeglobs stringify via a call to GET magic, which uses the PV slot.) p4raw-id: //depot/perl@27269
* PVCVs don't need XNVs either.Nicholas Clark2006-02-201-1/+1
| | | | | | (And actually remove xcv_depth) (And fix the copy lengths in bodies_by_type) p4raw-id: //depot/perl@27249
* PVFMs don't need CvDEPTH, and PVCVs don't use SvIVX, so movingNicholas Clark2006-02-201-2/+2
| | | | | | | | | xcv_depth into the IV union saves 4(ish) bytes per CV and format. "ish" because it was a long, but has been changed to I32 (along with the corresponding field in struct block_sub) so as not to enlarge the IV union on platforms where sizeof(long) > sizeof(IV), or struct block_sub where sizeof(long) > sizeof(I32) p4raw-id: //depot/perl@27247
* Fix sv_dump to dump formats without the (non-existent) NVX.Nicholas Clark2006-02-201-1/+2
| | | p4raw-id: //depot/perl@27245
* xcv_root and xcv_xsub can also be merged into a union, providing a newNicholas Clark2006-02-201-7/+14
| | | | | flag is added to denote whether the PVCV is perl or XSUB. p4raw-id: //depot/perl@27244
* xcv_start and xcv_xsubany can be merged into a union, as they are neverNicholas Clark2006-02-201-2/+2
| | | | | both needed. p4raw-id: //depot/perl@27243
* Add a new CvISXSUB() macro, for abstracting the test as to whether aNicholas Clark2006-02-201-1/+1
| | | | | PVCV is perl or XS. p4raw-id: //depot/perl@27241
* Re: [PATCH] s/Null(gv|hv|sv)/NULL/gSteven Schubiger2006-02-031-1/+1
| | | | | | Message-ID: <20060203152449.GI12591@accognoscere.homeunix.org> Date: Fri, 3 Feb 2006 16:24:49 +0100 p4raw-id: //depot/perl@27065
* s/Nullcv/NULL/gSteven Schubiger2006-02-031-1/+1
| | | | | | Message-ID: <20060202150241.GF12591@accognoscere.homeunix.org> Date: Thu, 2 Feb 2006 16:02:41 +0100 p4raw-id: //depot/perl@27060
* Re: [PATCH] s/Null(av|ch)/NULL/gSteven Schubiger2006-02-021-6/+6
| | | | | Message-ID: <20060202093849.GD12591@accognoscere.homeunix.org> p4raw-id: //depot/perl@27054
* Change all NEWSV() to newSV() in the core and non-dual-lived modules.Steve Hay2006-01-181-2/+2
| | | | | | | | Keep NEWSV() itself for backwards-compatibility outside of the core, but don't advertise it any more. (cf. change #25101). p4raw-link: @25101 on //depot/perl: a02a5408b2f199007c4dcb74559cc79066307ada p4raw-id: //depot/perl@26901
* sprinkle dVARJarkko Hietaniemi2006-01-061-0/+12
| | | | | Message-ID: <43BE7C4D.1010302@gmail.com> p4raw-id: //depot/perl@26675
* More copyright updatesRafael Garcia-Suarez2006-01-041-1/+1
| | | p4raw-id: //depot/perl@26652
* Introduce the macros newSVpvs(str) and sv_catpvs(sv, str).Gisle Aas2006-01-041-14/+14
| | | | | Gets rid of many hardcoded string lengths. p4raw-id: //depot/perl@26641
* RMAGIC on symbol tables is bad, m'kay.Nicholas Clark2005-12-301-0/+9
| | | | | | | | Allow hashes (and therefore all symbol tables) to store the backreference array in the hv_aux structure, and thereby undo the performance damage of 24966, which resulted in 60% of all hash lookups trying to mg_find tiehash magic. p4raw-id: //depot/perl@26530
* av.c cleanup, plus!Andy Lester2005-12-291-2/+2
| | | | | Message-ID: <20051228214414.GD26033@petdance.com> p4raw-id: //depot/perl@26526
* Ho! Ho! Ho! Santa brings consting!Andy Lester2005-12-221-4/+5
| | | | | Message-ID: <20051222165717.GA2874@petdance.com> p4raw-id: //depot/perl@26450
* Make sv_dump (and therefore Devel::Peek) report the value of theNicholas Clark2005-12-191-1/+15
| | | | | constant in inlineable constant subroutines. p4raw-id: //depot/perl@26404
* More consting, and putting stuff in embed.fncAndy Lester2005-12-061-15/+17
| | | | | Message-ID: <20051205194613.GB7791@petdance.com> p4raw-id: //depot/perl@26281
* Fix for [perl #36853] -Dx can crash bleadperlRafael Garcia-Suarez2005-08-161-4/+2
| | | | | The PL_op_sequence global hash wasn't initialized p4raw-id: //depot/perl@25296
* more embed cleanupAndy Lester2005-07-151-1/+1
| | | | | | | Message-ID: <20050715155115.GC29983@petdance.com> (and run regen.pl) p4raw-id: //depot/perl@25156
* Re: janitorial work ? [patch]Jim Cromie2005-07-081-1/+1
| | | | | | | | Message-ID: <42CC3CE9.5050606@divsol.com> (reverted all dual-lived modules since they must work with older perls too so must wait for a new Devel::PPPort) p4raw-id: //depot/perl@25101
* If gp_flags is unused, why are we even allocating it?Nicholas Clark2005-06-301-1/+0
| | | p4raw-id: //depot/perl@25019
* weak references aren't UVs, do don't show this in the dump flags.Nicholas Clark2005-06-211-1/+1
| | | p4raw-id: //depot/perl@24921
* Move SvPV consting, remove an n_a, and correct one error in Move()Nicholas Clark2005-06-101-9/+9
| | | p4raw-id: //depot/perl@24798
* Fixes the case of $a = \$#{[]}; and then accessing $$aNicholas Clark2005-06-091-0/+1
| | | | | (but not \$#a after local @a or my @a leave a block) p4raw-id: //depot/perl@24783
* More SvPV constingNicholas Clark2005-06-081-1/+1
| | | p4raw-id: //depot/perl@24769
* Nuke some more n_a, and convert S_gv_ename from char * to const char *Nicholas Clark2005-06-081-4/+3
| | | p4raw-id: //depot/perl@24760
* s/PERL_COPY_ON_WRITE/PERL_OLD_COPY_ON_WRITE/gNicholas Clark2005-06-081-2/+2
| | | p4raw-id: //depot/perl@24755
* Random constingAndy Lester2005-06-031-4/+4
| | | | | Message-ID: <20050602171943.GA16553@petdance.com> p4raw-id: //depot/perl@24689
* Goodbye xav_arylen. You won't be missed that much.Nicholas Clark2005-05-291-1/+2
| | | | | So now there's a buy 5 get one free offer on PVAV bodies. p4raw-id: //depot/perl@24619
* Add a union in place of xnv_nv, which allows AVs and HVs to re-useNicholas Clark2005-05-211-2/+4
| | | | | | | 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
* Move hv_name, hv_eiter and hv_riter into a new aux structure.Nicholas Clark2005-05-211-9/+14
| | | | | | Provide (more efficient) _get and _set macros. Adjust the core to use them. p4raw-id: //depot/perl@24526
* Move placeholders into a new rhash magic type.Nicholas Clark2005-05-211-0/+1
| | | p4raw-id: //depot/perl@24525
* SvPVX_const - patch #2Steve Peters2005-05-211-17/+18
| | | | | Message-Id: <20050521024210.GA29036@mccoy.peters.homeunix.org> p4raw-id: //depot/perl@24523
* Remove PMROOT and replace it with a small shell script. Er, magic.Nicholas Clark2005-05-201-2/+7
| | | | | | (PMROOT being needed to implement bare C<reset> - how often do you use that?) p4raw-id: //depot/perl@24522