• Leszek Swirski's avatar
    [arm] Use SmallVector for pending constant pool · 14794929
    Leszek Swirski authored
    Since there usually aren't many pending 32-bit constants, we can avoid
    the cost of malloc/free for most compiles by using a base::SmallVector
    instead of std::vector.
    
    I picked a value of 32 entries as the SmallVector's inline size, based
    on compiling three.js and jquery with Sparkplug, and printing the size
    of the constant pool when emitted. 93% of emitted constant pools had
    <=32 entries.
    
    Bug: v8:11420
    Change-Id: I7d62da74c60feae08f8a4b16b1e7f93ea69d2c95
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2840447Reviewed-by: 's avatarRoss McIlroy <rmcilroy@chromium.org>
    Commit-Queue: Leszek Swirski <leszeks@chromium.org>
    Auto-Submit: Leszek Swirski <leszeks@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#74092}
    14794929
Name
Last commit
Last update
..
assembler-arm-inl.h Loading commit data...
assembler-arm.cc Loading commit data...
assembler-arm.h Loading commit data...
constants-arm.cc Loading commit data...
constants-arm.h Loading commit data...
cpu-arm.cc Loading commit data...
interface-descriptors-arm-inl.h Loading commit data...
macro-assembler-arm.cc Loading commit data...
macro-assembler-arm.h Loading commit data...
register-arm.h Loading commit data...