Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.3k
gh-131798: JIT: SplitCALL_ISINSTANCE
into several uops#133339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
43ec167
0ab70a9
900472a
6f49dca
8ba53c3
6e11442
be50e24
ec61bc5
b0b31dd
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -4353,26 +4353,25 @@ dummy_func( | ||
res = PyStackRef_FromPyObjectSteal(res_o); | ||
} | ||
op(_GUARD_CALLABLE_ISINSTANCE, (callable, unused, unused, unused-- callable, unused, unused, unused)) { | ||
PyObject *callable_o = PyStackRef_AsPyObjectBorrow(callable); | ||
PyInterpreterState *interp = tstate->interp; | ||
DEOPT_IF(callable_o != interp->callable_cache.isinstance); | ||
} | ||
op(_CALL_ISINSTANCE, (callable, null,inst_, cls -- res)) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I don't love the trailing underscore. Not a huge deal, but maybe just rename to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I renamed it to | ||
/* isinstance(o, o2) */ | ||
STAT_INC(CALL, hit); | ||
PyObject *inst_o = PyStackRef_AsPyObjectBorrow(inst_); | ||
PyObject *cls_o = PyStackRef_AsPyObjectBorrow(cls); | ||
int retval = PyObject_IsInstance(inst_o, cls_o); | ||
if (retval < 0) { | ||
ERROR_NO_POP(); | ||
} | ||
(void)null; // Silence compiler warnings about unused variables | ||
PyStackRef_CLOSE(cls); | ||
PyStackRef_CLOSE(inst_); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Interesting that with named stackrefs it won't let me do this: DEAD(null);PyStackRef_CLOSE(cls);PyStackRef_CLOSE(inst_); (the error is DEAD(null);PyStackRef_CLOSE(args[0]);PyStackRef_CLOSE(args[1]); I guess the cases generator can't reason about arrays? Another reason to use named stackrefs instead :) | ||
DEAD(null); | ||
PyStackRef_CLOSE(callable); | ||
res = retval ? PyStackRef_True : PyStackRef_False; | ||
assert((!PyStackRef_IsNull(res)) ^ (_PyErr_Occurred(tstate) != NULL)); | ||
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.