hax/exec_optree.c.inc

filter: Statementstmt 100% 20 / 20 Branchbran 60.0% 6 / 10 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 86.6% 26 / 30 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« lib/Object/mop-class.xsi ↑ Summary lib/Object/mop-method.xsi »
1 /* vi: set ft=c : */
2  
3 #define exec_optree_list(o) S_exec_optree_list(aTHX_ o)
4 4 static AV *S_exec_optree_list(pTHX_ OP *o)
5 {
6 4 dSP;
7  
8 4 ENTER;
9 4 SAVETMPS;
10  
11 4 SAVEVPTR(PL_op);
12  
13 4 ▶ PL_op = LINKLIST(o);
Branch: 1 branch
BranchTrueFalseTotal
PL_op = LINKLIST(o); 4 0 4
14 4 o->op_next = NULL;
15  
16 4 ▶ PUSHMARK(SP);
Branch: 1 branch
BranchTrueFalseTotal
PUSHMARK(SP); 0 4 4
17  
18 4 CALLRUNOPS(aTHX);
19  
20 4 SPAGAIN;
21 4 I32 nargs = SP - PL_stack_base - TOPMARK;
22  
23 4 AV *ret = NULL;
24  
25 4 ▶ if(nargs) {
Branch: 1 branch
BranchTrueFalseTotal
if(nargs) { 4 0 4
26 4 SV **argsvs = SP - nargs + 1;
27 4 ret = newAV_alloc_x(nargs);
28  
29 8 ▶ for(I32 i = 0; i < nargs; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for(I32 i = 0; i < nargs; i++) { 4 4 8
30 4 av_store_simple(ret, i, newSVsv(argsvs[i]));
31 }
32 }
33  
34 4 ▶ FREETMPS;
Branch: 1 branch
BranchTrueFalseTotal
FREETMPS; 0 4 4
35 4 LEAVE;
36  
37 4 return ret;
38 }
« lib/Object/mop-class.xsi ↑ Summary lib/Object/mop-method.xsi »