• rmcilroy's avatar
    [Interpreter] Optimize code of the form 'if (x === undefined)'. · f4f58e31
    rmcilroy authored
    Translates code of the form 'if (x === undefined)' into the JumpIfUndefined
    bytecode, and similarly for comparisons with null. Also adds bytecodes for
    JumpIfNotUndefined / Null.
    
    Moves the peephole optimization for CompareUndefined out of the peephole
    optimizer and into the BytecodeGenerator, having the side-effect of enabling
    it for comparisons with undefined on both side of the compare operation.
    
    BUG=v8:6107
    
    Review-Url: https://codereview.chromium.org/2793923002
    Cr-Commit-Position: refs/heads/master@{#44341}
    f4f58e31
Name
Last commit
Last update
..
bytecode-array-builder-unittest.cc Loading commit data...
bytecode-array-iterator-unittest.cc Loading commit data...
bytecode-array-random-iterator-unittest.cc Loading commit data...
bytecode-array-writer-unittest.cc Loading commit data...
bytecode-dead-code-optimizer-unittest.cc Loading commit data...
bytecode-decoder-unittest.cc Loading commit data...
bytecode-operands-unittest.cc Loading commit data...
bytecode-peephole-optimizer-unittest.cc Loading commit data...
bytecode-pipeline-unittest.cc Loading commit data...
bytecode-register-allocator-unittest.cc Loading commit data...
bytecode-register-optimizer-unittest.cc Loading commit data...
bytecode-utils.h Loading commit data...
bytecodes-unittest.cc Loading commit data...
constant-array-builder-unittest.cc Loading commit data...
interpreter-assembler-unittest.cc Loading commit data...
interpreter-assembler-unittest.h Loading commit data...