Skip to content
Snippets Groups Projects
  • Damien George's avatar
    bc365213
    py/vm: Optimise handling of stackless mode when pystack is enabled. · bc365213
    Damien George authored
    When pystack is enabled mp_obj_fun_bc_prepare_codestate() will always
    return a valid pointer, and if there is no more pystack available then it
    will raise an exception (a RuntimeError).  So having pystack enabled with
    stackless enabled automatically gives strict stackless mode.  There is
    therefore no need to have code for strict stackless mode when pystack is
    enabled, and this patch optimises the VM for such a case.
    bc365213
    History
    py/vm: Optimise handling of stackless mode when pystack is enabled.
    Damien George authored
    When pystack is enabled mp_obj_fun_bc_prepare_codestate() will always
    return a valid pointer, and if there is no more pystack available then it
    will raise an exception (a RuntimeError).  So having pystack enabled with
    stackless enabled automatically gives strict stackless mode.  There is
    therefore no need to have code for strict stackless mode when pystack is
    enabled, and this patch optimises the VM for such a case.