• Leszek Swirski's avatar
    [cleanup] Remove right trimming from class boilerplate allocation · ae340e19
    Leszek Swirski authored
    During class boilerplate allocation, we were overestimating the number
    of computed properties before allocating the computed property array,
    and the array after. But, we can reasonably easily get an exact size
    for the computed properties array, and avoid the right trimming
    entirely.
    
    This will simplify off-thread class boilerplate allocation, where the
    off-thread heap doesn't currently implement right trimming.
    
    Bug: chromium:1011762
    Change-Id: Icf450340aa4e215c2063f4dd964ca7b80ef033c3
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2083029
    Auto-Submit: Leszek Swirski <leszeks@chromium.org>
    Commit-Queue: Igor Sheludko <ishell@chromium.org>
    Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#66538}
    ae340e19
literal-objects.cc 22.7 KB