• bmeurer's avatar
    [turbofan] Properly type field access to stable heap object maps. · 44b9122d
    bmeurer authored
    Introduce new typing rules for LoadField[Map], which try to take into
    account stable map information if the object either has type Constant or
    type Class. If the map of the object is stable but can transition we
    have to introduce a code dependency in the Typer to make sure that the
    information (the Constant type we infer for LoadField[Map]) is valid
    (and stays valid).
    
    This also settles the policy for depending on map stability: The
    definition can introduce any number of maps, without having to pay
    attention to stability (i.e. you can always use Type::Class to introduce
    a map that is propagated along the value edges), and the use site is
    responsible for checking that the type information is valid before using
    it. I.e. if you use stable map information, you'll have to add a
    stability dependency (or make sure the map cannot transition).
    
    Drive-by-improvement: Add ReferenceEqualTyper which takes input types
    into account for improved constant folding.
    
    Drive-by-fix: Apply policy mentioned above to JSNativeContextSpecialization.
    
    R=jarin@chromium.org, rossberg@chromium.org
    BUG=v8:4470
    LOG=n
    
    Review URL: https://codereview.chromium.org/1410953006
    
    Cr-Commit-Position: refs/heads/master@{#31567}
    44b9122d
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
promises-aplus Loading commit data...
simdjs Loading commit data...
test262 Loading commit data...
unittests Loading commit data...
webkit Loading commit data...
bot_default.gyp Loading commit data...
bot_default.isolate Loading commit data...
default.gyp Loading commit data...
default.isolate Loading commit data...
optimize_for_size.gyp Loading commit data...
optimize_for_size.isolate Loading commit data...