Skip to content

Combine _CHECK_FUNCTION_EXACT_ARGS and _CHECK_STACK_SPACE uops? #116976

@gvanrossum

Description

@gvanrossum

These two uops always happen as a pair, and they contain a bunch of duplicate work (func = ... and code = ...). The second one doesn't use any cache entries. So they can be combined, hopefully saving a little bit of JIT template size (the combined template only needs to extract code once). Both only contain DEOPT_IF() calls.

A possible argument against would be that eventually we'd want to change one or the other to use EXIT_IF(). (Or can those coexist in one uop?)

CC: @brandtbucher @markshannon

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions