-
-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expect PyFunctionObject* in _PyJit_IsCompiled()
Summary: If you look at most of its callsites, they already have a PyFunctionObject* but have to cast it to PyObject*. Within the function, the argument is expected to be a PyFunctionObject*. is_jit_compiled() stands out here because unlike jit_suppress(), disassemble(), and print_hir(), it does not error when it gets an argument that's not a PyFunctionObject. It just returns false. This diff keeps this behavior. Reviewed By: swtaarrs Differential Revision: D53007959 fbshipit-source-id: 1d012eae2a5a01d4d7f03b5738e1005df93f9bb9
- Loading branch information
1 parent
1acd442
commit 067fdf8
Showing
6 changed files
with
22 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters