Skip to content

Commit 9ce0600

Browse files
committed
Merge branch 'main' into no-conditional-stack-effects
2 parents 6c1a7eb + ea6cc26 commit 9ce0600

File tree

21 files changed

+178
-371
lines changed

21 files changed

+178
-371
lines changed

Include/internal/pycore_optimizer.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,6 @@ struct _PyOptimizerObject {
9898
};
9999

100100
/** Test support **/
101-
typedef struct {
102-
_PyOptimizerObject base;
103-
int64_t count;
104-
} _PyCounterOptimizerObject;
105-
106101
_PyOptimizerObject *_Py_SetOptimizer(PyInterpreterState *interp, _PyOptimizerObject* optimizer);
107102

108103

@@ -119,7 +114,6 @@ PyAPI_FUNC(void) _Py_Executor_DependsOn(_PyExecutorObject *executor, void *obj);
119114
// Export for '_testinternalcapi' shared extension.
120115
PyAPI_FUNC(_PyOptimizerObject *) _Py_GetOptimizer(void);
121116
PyAPI_FUNC(int) _Py_SetTier2Optimizer(_PyOptimizerObject* optimizer);
122-
PyAPI_FUNC(PyObject *) _PyOptimizer_NewCounter(void);
123117
PyAPI_FUNC(PyObject *) _PyOptimizer_NewUOpOptimizer(void);
124118

125119
#define _Py_MAX_ALLOWED_BUILTINS_MODIFICATIONS 3
@@ -150,8 +144,6 @@ int _Py_uop_analyze_and_optimize(struct _PyInterpreterFrame *frame,
150144
_PyUOpInstruction *trace, int trace_len, int curr_stackentries,
151145
_PyBloomFilter *dependencies);
152146

153-
extern PyTypeObject _PyCounterExecutor_Type;
154-
extern PyTypeObject _PyCounterOptimizer_Type;
155147
extern PyTypeObject _PyDefaultOptimizer_Type;
156148
extern PyTypeObject _PyUOpExecutor_Type;
157149
extern PyTypeObject _PyUOpOptimizer_Type;

Include/internal/pycore_uop_ids.h

Lines changed: 87 additions & 88 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_uop_metadata.h

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

InternalDocs/generators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ execution state.
1111

1212
A generator object resumes execution in its frame when its `send()`
1313
method is called. This is analogous to a function executing in its own
14-
fram when it is called, but a function returns to the calling frame only once,
14+
frame when it is called, but a function returns to the calling frame only once,
1515
while a generator "returns" execution to the caller's frame every time
1616
it emits a new item with a
1717
[`yield` expression](https://docs.python.org/dev/reference/expressions.html#yield-expressions).

0 commit comments

Comments
 (0)