• bmeurer's avatar
    [turbofan] Add initial support for growing stores. · e6822a83
    bmeurer authored
    Introduce a dedicated MaybeGrowFastElements simplified operator, which
    tries to grow a fast elements backing store for a given element that
    should be added to an array/object. Use that to lower a growing keyed
    store to a sequence of
    
     1) check index is a valid array index,
     2) check stored value,
     3) maybe grow elements backing store (and deoptimize if it would
        normalize), and
     4) store the actual element.
    
    The actual growing is done by two dedicated GrowFastDoubleElements
    and GrowFastSmiOrObjectElements builtins, which are very similar to
    the GrowArrayElementsStub that is used by Crankshaft.
    
    Drive-by-fix: Turn CopyFixedArray into CopyFastSmiOrObjectElements
    builtin, similar to the new growing builtins, so we don't need to
    inline the store+write barrier for the elements into all optimized
    code objects anymore.
    
    Also fix a bug in the OperationTyper for NumberSilenceNaN, which was
    triggered by this change.
    
    BUG=v8:5272
    
    Review-Url: https://codereview.chromium.org/2227493002
    Cr-Commit-Position: refs/heads/master@{#38418}
    e6822a83
Name
Last commit
Last update
..
arm Loading commit data...
arm64 Loading commit data...
ia32 Loading commit data...
mips Loading commit data...
mips64 Loading commit data...
ppc Loading commit data...
s390 Loading commit data...
x64 Loading commit data...
x87 Loading commit data...
builtins-api.cc Loading commit data...
builtins-array.cc Loading commit data...
builtins-arraybuffer.cc Loading commit data...
builtins-boolean.cc Loading commit data...
builtins-call.cc Loading commit data...
builtins-callsite.cc Loading commit data...
builtins-conversion.cc Loading commit data...
builtins-dataview.cc Loading commit data...
builtins-date.cc Loading commit data...
builtins-debug.cc Loading commit data...
builtins-error.cc Loading commit data...
builtins-function.cc Loading commit data...
builtins-generator.cc Loading commit data...
builtins-global.cc Loading commit data...
builtins-handler.cc Loading commit data...
builtins-internal.cc Loading commit data...
builtins-interpreter.cc Loading commit data...
builtins-json.cc Loading commit data...
builtins-math.cc Loading commit data...
builtins-number.cc Loading commit data...
builtins-object.cc Loading commit data...
builtins-proxy.cc Loading commit data...
builtins-reflect.cc Loading commit data...
builtins-sharedarraybuffer.cc Loading commit data...
builtins-string.cc Loading commit data...
builtins-symbol.cc Loading commit data...
builtins-typedarray.cc Loading commit data...
builtins-utils.h Loading commit data...
builtins.cc Loading commit data...
builtins.h Loading commit data...