• rmcilroy's avatar
    [Interpreter] Optimize the Register Optimizer. · ed7bef5b
    rmcilroy authored
    Modify the Bytecode Register Optimizer to be an independent component
    rather than part of the BytecodePipeline. This means the BytecodeArrayBuilder
    can explicitly call it with register operands when outputting a bytecode
    and the Bytecode Register Optimizer doesn't need to work out which operands
    are register operands. This also means we don't need to build BytecodeNodes
    for Ldar / Star / Mov bytecodes unless they are actually emitted by the
    optimizer.
    
    This change also modifies the way the BytecodeArrayBuilder converts
    operands to make use of the OperandTypes specified in bytecodes.h.
    This avoids having to individually convert operands to their raw output
    value before calling Output(...).
    
    BUG=v8:4280
    
    Review-Url: https://codereview.chromium.org/2393683004
    Cr-Commit-Position: refs/heads/master@{#40543}
    ed7bef5b
bytecode-peephole-optimizer.cc 11.4 KB