| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Very nice.
You can streamline the optimization a bit using sym_is_immortal and you might want to add a test for optimizing the POP_TOP after a call that returns None.
Sorry, something went wrong.
…nner/cpython into eliminate_store_fast_refcount
| JitOptRef temp = retval; | ||
| // We wrap and unwrap the value to mimic PyStackRef_MakeHeapSafe | ||
| // in bytecodes.c | ||
| JitOptRef temp = PyJitRef_Wrap(PyJitRef_Unwrap(retval)); |
There was a problem hiding this comment.
This was a bug in the previous implementation. This was only exposed in this PR.
Sorry, something went wrong.
| if (sym->tag == JIT_SYM_KNOWN_CLASS_TAG) { | ||
| return sym->cls.type == &PyBool_Type; | ||
| } | ||
| if (sym->tag == JIT_SYM_TRUTHINESS_TAG) { |
There was a problem hiding this comment.
A truthiness is not immortal. This is a false asumption.
Sorry, something went wrong.
There was a problem hiding this comment.
Looks good.
This should wait for TOS caching, otherwise it is adding overhead to STORE_FAST. But once that is in, this makes a nice improvement.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.