Skip to content
  • Damien George's avatar
    py: Reduce size of VM exception stack element by 1 machine word. · 74eb44c3
    Damien George authored
    This optimisation reduces the VM exception stack element (mp_exc_stack_t)
    by 1 word, by using bit 1 of a pointer to store whether the opcode was a
    FINALLY or WITH opcode.  This optimisation was pending, waiting for
    maturity of the exception handling code, which has now proven itself.
    
    Saves 1 machine word RAM for each exception (4->3 words per exception).
    Increases stmhal code by 4 bytes, and decreases unix x64 code by 32
    bytes.
    74eb44c3