• mstarzinger's avatar
    [interpreter] Fix destroyed new.target register use. · 0681deb9
    mstarzinger authored
    This fixes a corner-case where the bytecode was using the <new.target>
    register directly without going through the local variable. The value
    might be clobbered because the deoptimizer doesn't properly restore the
    value. The label will causes bytecode pipeline to be flushed and hence
    ensure {BytecodeRegisterOptimizer} doesn't reuse <new.target> anymore.
    
    R=rmcilroy@chromium.org
    TEST=mjsunit/regress/regress-crbug-645103
    BUG=chromium:645103
    
    Review-Url: https://codereview.chromium.org/2325133002
    Cr-Commit-Position: refs/heads/master@{#39306}
    0681deb9
ClassAndSuperClass.golden 5.54 KB