Lines Matching refs:recursion_depth
707 if (++state->recursion_depth > state->recursion_limit) { in astfold_expr()
810 state->recursion_depth--; in astfold_expr()
823 state->recursion_depth--; in astfold_expr()
870 if (++state->recursion_depth > state->recursion_limit) { in astfold_stmt()
990 state->recursion_depth--; in astfold_stmt()
1022 if (++state->recursion_depth > state->recursion_limit) { in astfold_pattern()
1058 state->recursion_depth--; in astfold_pattern()
1091 int recursion_depth = tstate->recursion_limit - tstate->recursion_remaining; in _PyAST_Optimize() local
1092 starting_recursion_depth = (recursion_depth < INT_MAX / COMPILER_STACK_FRAME_SCALE) ? in _PyAST_Optimize()
1093 recursion_depth * COMPILER_STACK_FRAME_SCALE : recursion_depth; in _PyAST_Optimize()
1094 state->recursion_depth = starting_recursion_depth; in _PyAST_Optimize()
1102 if (ret && state->recursion_depth != starting_recursion_depth) { in _PyAST_Optimize()
1105 starting_recursion_depth, state->recursion_depth); in _PyAST_Optimize()