Skip to content

Commit

Permalink
pythonGH-118095: Add tier two support for BINARY_SUBSCR_GETITEM (pyth…
Browse files Browse the repository at this point in the history
  • Loading branch information
markshannon authored Aug 1, 2024
1 parent fda6bd8 commit df13a18
Show file tree
Hide file tree
Showing 10 changed files with 317 additions and 207 deletions.
3 changes: 2 additions & 1 deletion Include/internal/pycore_opcode_metadata.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions Include/internal/pycore_optimizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,16 @@ PyAPI_FUNC(PyObject *) _Py_uop_symbols_test(PyObject *self, PyObject *ignored);

PyAPI_FUNC(int) _PyOptimizer_Optimize(struct _PyInterpreterFrame *frame, _Py_CODEUNIT *start, _PyStackRef *stack_pointer, _PyExecutorObject **exec_ptr);

static inline int is_terminator(const _PyUOpInstruction *uop)
{
int opcode = uop->opcode;
return (
opcode == _EXIT_TRACE ||
opcode == _JUMP_TO_TOP ||
opcode == _DYNAMIC_EXIT
);
}

#ifdef __cplusplus
}
#endif
Expand Down
Loading

0 comments on commit df13a18

Please sign in to comment.