dotnet/runtime

[RyuJIT/x86/x64] Unify and streamline emitter for operand-size override prefix (0x66)

Aberta

#11.788 aberto em 10 de jan. de 2019

 (0 comentário) (0 reação) (0 responsável)C# (5.445 forks)batch import
arch-x64arch-x86area-CodeGen-coreclrhelp wanted

Métricas do repositório

Stars
 (17.886 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

Now, the emitter has a lot of code like below for adding operand-size override prefix (0x66) or estimating code size of it.

    if (attrSize == EA_2BYTE && ins != INS_movzx && ins != INS_movsx)
    {
        ...
    }

We need to refactor the emitter to unify and simplify the code.

cc @CarolEidt @tannergooding

category:implementation theme:emitter skill-level:beginner cost:small impact:small

Guia do colaborador