Skip to content

Combined instructions #36

@gvanrossum

Description

@gvanrossum

This is a spin-off from #16 (Super-instructions). Where the idea promoted in #16 is to keep the opcode count the same and replace the first opcode of a common pair by a new instruction that peeks ahead to get the oparg of the second instruction (and moves the program counter accordingly), the idea if combined instructions is to simply replace a pair of opcodes (e.g. LOAD_FAST + RETURN_VALUE) by a single opcode (e.g. RETURN_CONST or even RETURN_NONE).

All the work I've done so far is of the latter type, so this issue is about that. Starting with python/cpython#25090.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions