| 1 |
|
| /* vi: set ft=c inde=: */ |
| 2 |
|
| |
| 3 |
|
| #ifndef docatch |
| 4 |
|
| |
| 5 |
|
| #define docatch(firstpp) S_docatch(aTHX_ firstpp) |
| 6 |
|
| |
| 7 |
11 |
| static OP *S_docatch(pTHX_ Perl_ppaddr_t firstpp) |
| 8 |
|
| { |
| 9 |
|
| int ret; |
| 10 |
11 |
| OP * const oldop = PL_op; |
| 11 |
|
| dJMPENV; |
| 12 |
|
| |
| 13 |
|
| assert(CATCH_GET == TRUE); |
| 14 |
|
| |
| 15 |
11 |
| JMPENV_PUSH(ret); |
| 16 |
13 |
| switch (ret) { |
| 17 |
11 |
| case 0: |
| 18 |
11 |
| PL_op = firstpp(aTHX); |
| 19 |
11 |
| redo_body: |
| 20 |
11 |
▶ | if(PL_op) |
Branch: 1 branch
| Branch | True | False | Total |
| if(PL_op) |
11 |
0 |
11 |
|
| 21 |
11 |
| CALLRUNOPS(aTHX); |
| 22 |
11 |
| break; |
| 23 |
2 |
| case 3: |
| 24 |
|
| /* die caught by an inner eval - continue inner loop */ |
| 25 |
2 |
▶ | if (PL_restartop && PL_restartjmpenv == PL_top_env) { |
Branch: 2 branches
| Branch | True | False | Total |
| if (PL_restartop && PL_restartjmpenv == PL_top_env) { |
2 |
0 |
2 |
| if (PL_restartop && PL_restartjmpenv == PL_top_env) { |
2 |
0 |
2 |
|
| 26 |
2 |
| PL_restartjmpenv = NULL; |
| 27 |
2 |
| PL_op = PL_restartop; |
| 28 |
2 |
| PL_restartop = 0; |
| 29 |
2 |
| goto redo_body; |
| 30 |
|
| } |
| 31 |
|
| /* FALLTHROUGH */ |
| 32 |
|
| default: |
| 33 |
0 |
| JMPENV_POP; |
| 34 |
0 |
| PL_op = oldop; |
| 35 |
0 |
▶ | JMPENV_JUMP(ret); |
Branch: 2 branches
| Branch | True | False | Total |
| JMPENV_JUMP(ret); |
0 |
0 |
0 |
| JMPENV_JUMP(ret); |
0 |
0 |
0 |
|
| 36 |
|
| NOT_REACHED; /* NOTREACHED */ |
| 37 |
|
| } |
| 38 |
11 |
| JMPENV_POP; |
| 39 |
11 |
| PL_op = oldop; |
| 40 |
11 |
| return NULL; |
| 41 |
|
| } |
| 42 |
|
| |
| 43 |
|
| #endif |