summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-09-17 00:06:53 +0000
committerNicholas Clark <nick@ccl4.org>2006-09-17 00:06:53 +0000
commit022eaa24f0f108e678e18c854c6eb92c735188c5 (patch)
treef7fa1f84dbfad01af797e9d57590d92ee5396ef7 /scope.c
parent26844e2782d7192ed739172c5303bb52947596dc (diff)
downloadperl-022eaa24f0f108e678e18c854c6eb92c735188c5.tar.gz
Store a pointer to the op in struct block_loop, rather than the
pointers to last and redo. (for ithreads also drop the next pointer, as pp_ctl.c doesn't re-write it for ithreads). This shrinks the struct to 40 bytes on ILP32 systems, and therefore struct block to 64 bytes. p4raw-id: //depot/perl@28858
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/scope.c b/scope.c
index a2a0f3a6af..8923104672 100644
--- a/scope.c
+++ b/scope.c
@@ -1069,12 +1069,10 @@ Perl_cx_dump(pTHX_ PERL_CONTEXT *cx)
cx->blk_loop.label);
PerlIO_printf(Perl_debug_log, "BLK_LOOP.RESETSP = %ld\n",
(long)cx->blk_loop.resetsp);
- PerlIO_printf(Perl_debug_log, "BLK_LOOP.REDO_OP = 0x%"UVxf"\n",
- PTR2UV(cx->blk_loop.redo_op));
+ PerlIO_printf(Perl_debug_log, "BLK_LOOP.MY_OP = 0x%"UVxf"\n",
+ PTR2UV(cx->blk_loop.my_op));
PerlIO_printf(Perl_debug_log, "BLK_LOOP.NEXT_OP = 0x%"UVxf"\n",
- PTR2UV(cx->blk_loop.next_op));
- PerlIO_printf(Perl_debug_log, "BLK_LOOP.LAST_OP = 0x%"UVxf"\n",
- PTR2UV(cx->blk_loop.last_op));
+ PTR2UV(CX_LOOP_NEXTOP_GET(cx)));
PerlIO_printf(Perl_debug_log, "BLK_LOOP.ITERIX = %ld\n",
(long)cx->blk_loop.iterix);
PerlIO_printf(Perl_debug_log, "BLK_LOOP.ITERARY = 0x%"UVxf"\n",