• Dan Elphick's avatar
    [parser] Fix bytecode mismatch for this · dd547367
    Dan Elphick authored
    Fixes bytecode mismatch between lazy and non-lazy where "this" was
    marked as maybe assigned in constructors that called the super
    constructor. Since this will return the hole in cases where it was not
    yet initialized by super (and the hole is explicitly handled by
    JSContextSpecialization::ReduceJSLoadContext), it's safe to treat it as
    a constant in all cases. In the case of lazy compilation case, "this"
    is never added to the ScopeInfo so is never seen as mutable.
    
    Bug: chromium:994719
    Change-Id: I43478fbc626b19eb1533aa9dec61b7f276ae140b
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1762025
    Commit-Queue: Dan Elphick <delphick@chromium.org>
    Reviewed-by: 's avatarRoss McIlroy <rmcilroy@chromium.org>
    Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#63283}
    dd547367
Name
Last commit
Last update
..
OWNERS Loading commit data...
expression-scope-reparenter.cc Loading commit data...
expression-scope-reparenter.h Loading commit data...
expression-scope.h Loading commit data...
func-name-inferrer.cc Loading commit data...
func-name-inferrer.h Loading commit data...
keywords-gen.h Loading commit data...
keywords.txt Loading commit data...
literal-buffer.cc Loading commit data...
literal-buffer.h Loading commit data...
parse-info.cc Loading commit data...
parse-info.h Loading commit data...
parser-base.h Loading commit data...
parser.cc Loading commit data...
parser.h Loading commit data...
parsing.cc Loading commit data...
parsing.h Loading commit data...
pending-compilation-error-handler.cc Loading commit data...
pending-compilation-error-handler.h Loading commit data...
preparse-data-impl.h Loading commit data...
preparse-data.cc Loading commit data...
preparse-data.h Loading commit data...
preparser-logger.h Loading commit data...
preparser.cc Loading commit data...
preparser.h Loading commit data...
rewriter.cc Loading commit data...
rewriter.h Loading commit data...
scanner-character-streams.cc Loading commit data...
scanner-character-streams.h Loading commit data...
scanner-inl.h Loading commit data...
scanner.cc Loading commit data...
scanner.h Loading commit data...
token.cc Loading commit data...
token.h Loading commit data...