• Jakob Gruber's avatar
    [string] Micro-optimize String::Flatten · 4593f3c6
    Jakob Gruber authored
    - Use a StringShape instead of repeatedly querying type.
    - Add a shortcut for already-flat strings.
    - Unhandlify where possible (all except SlowFlatten).
    - Mark String::Flatten and StringShape methods V8_INLINE.
    - Add a specialized ConsString::IsFlat overload.
    
    Drive-by: Various (add const, remove this->, helper methods).
    
    Bug: v8:12195
    Change-Id: If20df12bc29c29cff2005fdc9bd826ed9f303463
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3259527
    Auto-Submit: Jakob Gruber <jgruber@chromium.org>
    Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
    Commit-Queue: Camillo Bruni <cbruni@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#77701}
    4593f3c6
Name
Last commit
Last update
..
benchmarks Loading commit data...
bigint Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
debugging Loading commit data...
fuzzer Loading commit data...
fuzzilli Loading commit data...
inspector 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...
mkgrokdump Loading commit data...
mozilla Loading commit data...
test262 Loading commit data...
torque Loading commit data...
unittests Loading commit data...
wasm-api-tests Loading commit data...
wasm-js Loading commit data...
wasm-spec-tests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
OWNERS Loading commit data...