• bmeurer's avatar
    [turbofan] Relax restrictions on JSCreate inlining. · 24c8f0b0
    bmeurer authored
    No need to limit JSCreate inlining to JS_OBJECT_TYPE, since we can
    handle everything that the FastNewObjectStub can deal with. Also we
    don't need to restrict the number of inobject properties, as that is
    already taken care of by the runtime anyways (limited by the initial
    slack for the constructor).
    
    And last but not least, we can of course inline allocations for
    subclasses as long as the new.target is a JSFunction and it's initial
    map's constructor points back to the target (same condition as for
    the FastNewObjectStub fast case).
    
    R=jarin@chromium.org
    BUG=v8:4493
    LOG=n
    
    Review URL: https://codereview.chromium.org/1711883003
    
    Cr-Commit-Position: refs/heads/master@{#34138}
    24c8f0b0
js-create-lowering.cc 49 KB