| 42 | } |
| 43 | |
| 44 | bool |
| 45 | FrameObject::getIsShim( |
| 46 | const std::shared_ptr<const AbstractProcessManager>& manager, |
| 47 | Structure<py_frame_v>& frame) |
| 48 | { |
| 49 | if (manager->versionIsAtLeast(3, 12)) { |
| 50 | constexpr int FRAME_OWNED_BY_CSTACK = 3; |
| 51 | return frame.getField(&py_frame_v::o_owner) == FRAME_OWNED_BY_CSTACK; |
| 52 | } |
| 53 | return false; // Versions before 3.12 don't have shim frames. |
| 54 | } |
| 55 | |
| 56 | std::unique_ptr<CodeObject> |
| 57 | FrameObject::getCode( |
nothing calls this directly
no test coverage detected