- Timestamp:
- 06/27/08 15:54:47 (5 months ago)
- Location:
- dan/perl/Object-with/branches/yappo
- Files:
-
- 1 added
- 2 modified
-
benchmark.pl (added)
-
lib/Object/with.pm (modified) (1 diff)
-
with.xs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dan/perl/Object-with/branches/yappo/lib/Object/with.pm
r14697 r14698 39 39 delete $TMP_METHOD_CACHE{$name}; 40 40 } 41 42 _leave($code); 41 43 42 44 @ret; -
dan/perl/Object-with/branches/yappo/with.xs
r14692 r14698 27 27 28 28 29 void with_walkoptree_simple(pTHX_ OP *o ) {29 void with_walkoptree_simple(pTHX_ OP *o, int is_leave) { 30 30 if (o->op_type == OP_ENTERSUB) { 31 o->op_ppaddr = with_entersub;31 o->op_ppaddr = is_leave ? PL_ppaddr[PL_op->op_type] : with_entersub; 32 32 } 33 33 … … 35 35 OP * kid; 36 36 for (kid = cUNOPo->op_first; kid; kid = kid->op_sibling) { 37 with_walkoptree_simple(aTHX_ kid );37 with_walkoptree_simple(aTHX_ kid, is_leave); 38 38 } 39 39 } … … 50 50 CV *code; 51 51 CODE: 52 with_walkoptree_simple(aTHX_ CvROOT(code)); 52 with_walkoptree_simple(aTHX_ CvROOT(code), 0); 53 54 void 55 _leave(code) 56 CV *code; 57 CODE: 58 with_walkoptree_simple(aTHX_ CvROOT(code), 1);
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)