summaryrefslogtreecommitdiff
path: root/pp.c
Commit message (Collapse)AuthorAgeFilesLines
* Speedups and shrinkages of SvREFCNT_incAndy Lester2006-02-271-9/+9
| | | | | Message-ID: <20060224205434.GA17867@petdance.com> p4raw-id: //depot/perl@27334
* Re: [perl #38619] Bug in lc and uc (interaction between UTF-8, substr, and ↵SADAHIRO Tomoyuki2006-02-251-5/+10
| | | | | | | lc/uc) Message-Id: <20060225180934.FCC3.BQW10602@nifty.com> p4raw-id: //depot/perl@27329
* 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-1/+2
| | | | | | 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
* Fix typos and a missing bracket.Nicholas Clark2006-02-221-1/+1
| | | p4raw-id: //depot/perl@27274
* Avoid C<study>ing any strings that might change underneath us, suchNicholas Clark2006-02-221-6/+15
| | | | | as tied scalars and scalars with overloaded stringification. p4raw-id: //depot/perl@27273
* Re: [perl #38485] use integer; 0x80000000/-1; # coredumpYitzchak Scott-Thoennes2006-02-171-6/+21
| | | | | Message-ID: <20060213093925.GA3476@efn.org> p4raw-id: //depot/perl@27205
* One shouldn't be able to dereference a GLOB as a SCALAR.Yitzchak Scott-Thoennes2006-02-141-0/+2
| | | | | | | | Subject: Re: [perl #38484] Data::Dumper only warns on unhandled reference types Message-ID: <20060212171839.GA3604@efn.org> plus regression tests. p4raw-id: //depot/perl@27179
* Sun Studio lint patchesAndy Lester2006-02-141-0/+2
| | | | | Message-ID: <20060214054617.GA8824@petdance.com> p4raw-id: //depot/perl@27177
* Die when integer overflow condition is detected in division underSteve Peters2006-02-111-2/+6
| | | | | C<use integer>. Hopefully fixes RT #38485. p4raw-id: //depot/perl@27155
* assert() that we can't reach two unreachable code pathsNicholas Clark2006-02-111-2/+1
| | | | | (in Perl_magic_get and Perl_pp_shift). p4raw-id: //depot/perl@27154
* Trying my "remove the pTHXes" patch againAndy Lester2006-02-091-1/+1
| | | | | Message-ID: <20060209154018.GA14610@petdance.com> p4raw-id: //depot/perl@27136
* Borland's C compiler warns that the & is unnecessary.Nicholas Clark2006-02-081-5/+5
| | | p4raw-id: //depot/perl@27127
* Merging pp_bit_or and pp_bit_xor shrinks the object code by about .7K.Nicholas Clark2006-02-071-31/+13
| | | | | The overloading tests are not free. p4raw-id: //depot/perl@27126
* All the trancendental unary operators can be merged into PP_sinNicholas Clark2006-02-071-50/+33
| | | | | (cos, exp, log, sqrt) p4raw-id: //depot/perl@27124
* Avoid gcc warning about possibly uninitialised variables.Nicholas Clark2006-02-071-3/+2
| | | p4raw-id: //depot/perl@27123
* Create new macros AMG_CALLun_var, AMG_CALLun_var and tryAMAGICun_varNicholas Clark2006-02-071-5/+5
| | | | | which don't do the pre-processor string manipulation internally. p4raw-id: //depot/perl@27122
* pp_pop can be implemented by pp_shift.Nicholas Clark2006-02-071-13/+1
| | | p4raw-id: //depot/perl@27121
* pp_hex can be implemented trivially by pp_oct, making pp_hex a mathom.Nicholas Clark2006-02-071-32/+6
| | | p4raw-id: //depot/perl@27119
* Merge pp_index and pp_rindex - we have another mathom.Nicholas Clark2006-02-071-77/+15
| | | p4raw-id: //depot/perl@27118
* Some refactoring to converge pp_index and pp_rindexNicholas Clark2006-02-071-21/+25
| | | p4raw-id: //depot/perl@27117
* Fix bug 38454 (rindex corrects for $[ on bytes rather than UTF-8)Nicholas Clark2006-02-071-1/+5
| | | p4raw-id: //depot/perl@27116
* Optimise index so that if the big string is ISO-8859-1 but the littleNicholas Clark2006-02-061-19/+42
| | | | | | | string is UTF-8, it tries to downgrade the little string, rather than upgrade the big string. For half-meg big strings this is a fourfold speed gain. p4raw-id: //depot/perl@27113
* Code assumes that *FOO{SCALAR} will always return a scalar reference,Nicholas Clark2006-01-301-1/+1
| | | | | | | so make it so, creating $FOO if necessary. (Effectively this is a policy decision that PERL_DONT_CREATE_GVSV is visible to XS code, but isn't visible to Perl code) p4raw-id: //depot/perl@27002
* Change all NEWSV() to newSV() in the core and non-dual-lived modules.Steve Hay2006-01-181-5/+5
| | | | | | | | 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-89/+102
| | | | | Message-ID: <43BE7C4D.1010302@gmail.com> p4raw-id: //depot/perl@26675
* Introduce the macros newSVpvs(str) and sv_catpvs(sv, str).Gisle Aas2006-01-041-1/+1
| | | | | Gets rid of many hardcoded string lengths. p4raw-id: //depot/perl@26641
* Update copyrights for files modified in 2006Rafael Garcia-Suarez2006-01-021-1/+1
| | | p4raw-id: //depot/perl@26562
* Making 0 pointers to NULLsAndy Lester2006-01-011-2/+2
| | | | | Message-ID: <20051231050558.GA29093@petdance.com> p4raw-id: //depot/perl@26558
* A GVs stash can be NULL, so don't call macros that assume otherwiseNicholas Clark2005-12-291-1/+2
| | | | | without checking. p4raw-id: //depot/perl@26518
* pre-likely cleanupAndy Lester2005-12-271-2/+1
| | | | | | | Message-ID: <20051227203939.GC1781@petdance.com> Includes a small fix to the changes in tryAMAGICbinW_var() in pp.h. p4raw-id: //depot/perl@26505
* Ho! Ho! Ho! Santa brings consting!Andy Lester2005-12-221-20/+22
| | | | | Message-ID: <20051222165717.GA2874@petdance.com> p4raw-id: //depot/perl@26450
* Add an optimisation to allow proxy constant subroutines to be copiedNicholas Clark2005-12-221-3/+15
| | | | | | | as proxy constant subroutines in a new symbol table where possible. (Rather than converting them to full blown constant subroutines and instantiating 2 typeglobs) p4raw-id: //depot/perl@26446
* The lref argument of sv_2cv is actually passed onwards to gv_fetchsv,Nicholas Clark2005-12-211-3/+4
| | | | | so it is a bitmap of flag bits rather than simple TRUE/FALSE. p4raw-id: //depot/perl@26434
* gv_fetchpv, gv_fetchpvn and gv_fetchsv take a bitmask of flags, ratherNicholas Clark2005-12-201-6/+6
| | | | | than a simple boolean, so passing FALSE or TRUE is bogus. p4raw-id: //depot/perl@26415
* s/Nullav/NULL/gNicholas Clark2005-12-161-1/+1
| | | p4raw-id: //depot/perl@26380
* Fix for [perl #37886] strict 'refs' doesn't apply inside definedRafael Garcia-Suarez2005-12-151-4/+7
| | | p4raw-id: //depot/perl@26374
* More consting, and putting stuff in embed.fncAndy Lester2005-12-061-29/+23
| | | | | Message-ID: <20051205194613.GB7791@petdance.com> p4raw-id: //depot/perl@26281
* Remove redundant SvUTF8_on() callsGisle Aas2005-11-301-2/+0
| | | | | Message-ID: <lrhd9uhwo9.fsf@caliper.activestate.com> p4raw-id: //depot/perl@26231
* Merge pp_slt, pp_sgt and pp_sge into pp_sle. (The most commonly usedNicholas Clark2005-11-071-38/+24
| | | | | of the 4. Not that any are that popular.) p4raw-id: //depot/perl@26039
* The rarely used lcfirst and ucfirst share almost all their code.Nicholas Clark2005-11-071-62/+13
| | | | | Merge the two as pp_ucfirst. p4raw-id: //depot/perl@26035
* Fix bug #37628 (both lcfirst and ucfirst)Nicholas Clark2005-11-071-9/+6
| | | p4raw-id: //depot/perl@26034
* Allow passing of the full enum name into the tryAMAGICbin family ofNicholas Clark2005-11-051-4/+4
| | | | | | macros, to avoid needing C pre-processor string concatenation within the lowest level expansion. p4raw-id: //depot/perl@26015
* Re: A surprising segfaultSADAHIRO Tomoyuki2005-11-051-2/+2
| | | | | Message-Id: <20051105135053.27D7.BQW10602@nifty.com> p4raw-id: //depot/perl@26011
* I barely knew ya pp_dor. Merged into pp_defined from whence you came.Steve Peters2005-11-041-30/+0
| | | | | | This change has also caused pp_defined to be promoted to being a hot op. p4raw-id: //depot/perl@26004
* All the ops that are simply C<return some_other_op();> can be bypassedNicholas Clark2005-10-311-15/+0
| | | | | in the op dispatch table, and the bodies retired. p4raw-id: //depot/perl@25940
* Replace the 3 currently "unreachable" ops with a single op bodyNicholas Clark2005-10-311-0/+7
| | | | | unimplemented_op() that panics descriptively if ever reached. p4raw-id: //depot/perl@25937
* Functions that die aren't exactly well used code.Nicholas Clark2005-10-301-10/+0
| | | | | (ck_retarget, oopsCV, pp_padany, pp_threadsv, pp_mapstart) p4raw-id: //depot/perl@25901
* Re: [PATCH] minor speed-up for pp_push()Tassilo von Parseval2005-10-261-4/+5
| | | | | Message-id: <20051025061141.GA2256@ethan> p4raw-id: //depot/perl@25854
* gcc complains when it sees variables declaredSteve Peters2005-10-141-2/+2
| | | | | | | | | const register ... switched them all to register const ... p4raw-id: //depot/perl@25757