• mythria's avatar
    [Interpreter] Fixes VisitObjectLiteral to reserve consecutive registers in innerscope. · 8ae9fb69
    mythria authored
    VisitObjectLiteral has two parts. First it creates a literal and then
    sets properties or accessor properties. Setting properties requires a
    runtime call and it expects the literal object which was created in the
    first part is contiguous with other registers it allocates. Since these
    are allocated in a different scope they are not always contiguous.
    This causes problems with mjsunit/setter-on-constructor-prototype.js.
    This cl fixes by allocating contiguous registers in the inner scope.
    Literal value is copied into the newly allocated register so that all
    the required registers are always contiguous.
    
    BUG=v8:4280
    LOG=N
    
    Review URL: https://codereview.chromium.org/1588903002
    
    Cr-Commit-Position: refs/heads/master@{#33371}
    8ae9fb69
Name
Last commit
Last update
..
DEPS Loading commit data...
OWNERS Loading commit data...
bytecode-array-builder.cc Loading commit data...
bytecode-array-builder.h Loading commit data...
bytecode-array-iterator.cc Loading commit data...
bytecode-array-iterator.h Loading commit data...
bytecode-generator.cc Loading commit data...
bytecode-generator.h Loading commit data...
bytecode-register-allocator.cc Loading commit data...
bytecode-register-allocator.h Loading commit data...
bytecode-traits.h Loading commit data...
bytecodes.cc Loading commit data...
bytecodes.h Loading commit data...
constant-array-builder.cc Loading commit data...
constant-array-builder.h Loading commit data...
control-flow-builders.cc Loading commit data...
control-flow-builders.h Loading commit data...
interpreter.cc Loading commit data...
interpreter.h Loading commit data...