• Damien George's avatar
    py: Combine 3 comprehension opcodes (list/dict/set) into 1. · adaf0d86
    Damien George authored
    With the previous patch combining 3 emit functions into 1, it now makes
    sense to also combine the corresponding VM opcodes, which is what this
    patch does.  This eliminates 2 opcodes which simplifies the VM and reduces
    code size, in bytes: bare-arm:44, minimal:64, unix(NDEBUG,x86-64):272,
    stmhal:92, esp8266:200.  Profiling (with a simple script that creates many
    list/dict/set comprehensions) shows no measurable change in performance.
    adaf0d86