Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-98831: Typed stack effects, and more instructions converted #99764

Merged
merged 34 commits into from Dec 8, 2022

Commits on Dec 3, 2022

  1. Make BINARY_OP_INPLACE_ADD_UNICODE a legit super instruction

    This doesn't really make things much cleaner, but it works.
    gvanrossum committed Dec 3, 2022
  2. COMPARE_OP

    gvanrossum committed Dec 3, 2022
  3. COMPARE_OP_FLOAT_JUMP

    gvanrossum committed Dec 3, 2022
  4. COMPARE_OP_INT_JUMP

    gvanrossum committed Dec 3, 2022
  5. COMPARE_OP_STR_JUMP

    gvanrossum committed Dec 3, 2022
  6. Support typed stack effects

    This was more convoluted than I expected.
    gvanrossum committed Dec 3, 2022
  7. Refactor common code of analyze_{super,macro}

    Also removed some dead code from the former
    (somehow the case for CacheEffect had crept back in).
    gvanrossum committed Dec 3, 2022
  8. Reverse temporary variable numbering

    This makes the PEEK/POKE sequences less jarring.
    gvanrossum committed Dec 3, 2022
  9. STORE_ATTR

    gvanrossum committed Dec 3, 2022
  10. DELETE_ATTR

    gvanrossum committed Dec 3, 2022
  11. STORE_GLOBAL

    gvanrossum committed Dec 3, 2022
  12. STORE_ATTR_INSTANCE_VALUE

    gvanrossum committed Dec 3, 2022
  13. STORE_ATTR_WITH_HINT

    gvanrossum committed Dec 3, 2022
  14. Complete the store_subscr family: STORE_SUBSCR{,DICT,LIST_INT}

    STORE_SUBSCR was alread half converted,
    but wasn't using cache effects yet.
    gvanrossum committed Dec 3, 2022
  15. DELETE_SUBSCR

    gvanrossum committed Dec 3, 2022
  16. PRINT_EXPR

    gvanrossum committed Dec 3, 2022
  17. RETURN_VALUE

    gvanrossum committed Dec 3, 2022
  18. GET_AITER (had to restructure it some)

    The original had mysterious `SET_TOP(NULL)` before `goto error`.
    I assume those just account for `obj` having been decref'ed,
    so I got rid of them in favor of the cleanup implied by `ERROR_IF()`.
    gvanrossum committed Dec 3, 2022
  19. Typo in TODO comment

    gvanrossum committed Dec 3, 2022
  20. Emit PREDICT() macros right before DISPATCH()

    This should fix the build crash on Windows.
    gvanrossum committed Dec 3, 2022