From ade16bb73bb4f9a71f775a0cda4e31381438ab03 Mon Sep 17 00:00:00 2001 From: Jacob Bower Date: Wed, 21 Aug 2024 15:06:39 -0700 Subject: [PATCH] JIT support for raise and deopt Summary: For deopt this is mostly just updating frame reification to target `_PyInterpreterFrame` rather than `PyFrameObject`. For raising we need to adapt to 3.12 only using a single value to represent an exception rather than: value, type, and traceback. The deopt tests also execute turning `_PyInterpreterFrame`s into `PyFrameObject`s to make use of the public interpreter API and this seems to work too. Reviewed By: alexmalyshev Differential Revision: D61318124 fbshipit-source-id: 11c44f1ec079dd5023eb363a572904d94a59cd01 --- Include/cinder/exports.h | 2 -- Python/ceval.c | 5 ----- 2 files changed, 7 deletions(-) diff --git a/Include/cinder/exports.h b/Include/cinder/exports.h index 85b3c8bc5f7..21bd52d935d 100644 --- a/Include/cinder/exports.h +++ b/Include/cinder/exports.h @@ -173,8 +173,6 @@ CiAPI_FUNC(PyObject *) PyTypeObject *type, PyObject *self, PyObject *name, int call_no_args, int *meth_found); -CiAPI_FUNC(int) - Cix_do_raise(PyThreadState *tstate, PyObject *exc, PyObject *cause); CiAPI_FUNC(void) Cix_format_exc_check_arg(PyThreadState *, PyObject *, const char *, PyObject *); CiAPI_FUNC(PyObject *) diff --git a/Python/ceval.c b/Python/ceval.c index 13b776d5a34..3a74f89ef31 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -6483,11 +6483,6 @@ Cix_SuperLookupMethodOrAttr(PyThreadState *tstate, tstate, global_super, type, self, name, call_no_args, meth_found); } -int -Cix_do_raise(PyThreadState *tstate, PyObject *exc, PyObject *cause) { - return do_raise(tstate, exc, cause); -} - int Cix_eval_frame_handle_pending(PyThreadState *tstate) { return eval_frame_handle_pending(tstate);