• Tobias Tebbi's avatar
    [builtins] add Torque fast-path for String.prototype.localeCompare · 6181ce59
    Tobias Tebbi authored
    This fast path works for ASCII-only strings and is similar to the
    existing fast-path in C++. Important differences:
    - The locale check is done at Turbofan optimization time instead of
      at runtime
    - Use tables of size 256 instead of 128 to save a bounds-check when
      handling one-byte strings.
    - It first performs an equality check that's optimized for detecting
      inequality quickly by comparing the strings from both ends. If the
      equality check succeeds, we are done. Otherwise chances are high
      that the strings differ according to collation level L1 already.
      Therefore, we first do an L1 check and perform the L3 check
      only when L1 didn't find a difference. This is based on the assumption
      that few strings are identical except for different capitalization.
    - Use the Torque version of string flattening instead of the runtime
      version.
    
    Bug: v8:12196
    Change-Id: I2d043c1138846783f6d567b736d34063ba9301e5
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3268465Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
    Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
    Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#77946}
    6181ce59
Name
Last commit
Last update
..
bigint Loading commit data...
break-iterator Loading commit data...
collator Loading commit data...
date-format Loading commit data...
displaynames Loading commit data...
enumeration Loading commit data...
general Loading commit data...
list-format Loading commit data...
locale Loading commit data...
localematcher Loading commit data...
number-format Loading commit data...
overrides Loading commit data...
plural-rules Loading commit data...
relative-time-format Loading commit data...
segmenter Loading commit data...
string Loading commit data...
BUILD.gn Loading commit data...
DIR_METADATA Loading commit data...
OWNERS Loading commit data...
assert.js Loading commit data...
bad-target.js Loading commit data...
default_locale.js Loading commit data...
intl.status Loading commit data...
not-constructors.js Loading commit data...
regress-1003748.js Loading commit data...
regress-1012579.js Loading commit data...
regress-10248.js Loading commit data...
regress-1030160.js Loading commit data...
regress-1041319.js Loading commit data...
regress-10437.js Loading commit data...
regress-10438.js Loading commit data...
regress-10526.js Loading commit data...
regress-10527.js Loading commit data...
regress-10528.js Loading commit data...
regress-10529.js Loading commit data...
regress-10573.js Loading commit data...
regress-10599.js Loading commit data...
regress-10613.js Loading commit data...
regress-1074578.js Loading commit data...
regress-10836.js Loading commit data...
regress-10960.js Loading commit data...
regress-1107661.js Loading commit data...
regress-1108810.js Loading commit data...
regress-1121156.js Loading commit data...
regress-11295.js Loading commit data...
regress-1130489.js Loading commit data...
regress-1132641.js Loading commit data...
regress-11350.js Loading commit data...
regress-1146468.js Loading commit data...
regress-11595.js Loading commit data...
regress-1170305.js Loading commit data...
regress-1177623.js Loading commit data...
regress-1177812.js Loading commit data...
regress-1224869.js Loading commit data...
regress-364374.js Loading commit data...
regress-4870.js Loading commit data...
regress-5179.js Loading commit data...
regress-527926.js Loading commit data...
regress-7481.js Loading commit data...
regress-7770.js Loading commit data...
regress-7982.js Loading commit data...
regress-8030.js Loading commit data...
regress-8031.js Loading commit data...
regress-8348.js Loading commit data...
regress-8432.js Loading commit data...
regress-8469.js Loading commit data...
regress-8525.js Loading commit data...
regress-8604.js Loading commit data...
regress-8657.js Loading commit data...
regress-8725514.js Loading commit data...
regress-875643.js Loading commit data...
regress-8866.js Loading commit data...
regress-888299.js Loading commit data...
regress-895942.js Loading commit data...
regress-900013.js Loading commit data...
regress-9035.js Loading commit data...
regress-903566.js Loading commit data...
regress-9084.js Loading commit data...
regress-917151.js Loading commit data...
regress-925216.js Loading commit data...
regress-928068.js Loading commit data...
regress-930304.js Loading commit data...
regress-9312.js Loading commit data...
regress-9356.js Loading commit data...
regress-9408.js Loading commit data...
regress-9464.js Loading commit data...
regress-9475.js Loading commit data...
regress-9513.js Loading commit data...
regress-9642.js Loading commit data...
regress-966285.js Loading commit data...
regress-971636.js Loading commit data...
regress-9731.js Loading commit data...
regress-9747.js Loading commit data...
regress-9786.js Loading commit data...
regress-9787.js Loading commit data...
regress-9788.js Loading commit data...
regress-9812.js Loading commit data...
regress-9849.js Loading commit data...
regress-9887.js Loading commit data...
regress-9912.js Loading commit data...
regress-992694.js Loading commit data...
regress-997401.js Loading commit data...
string-localecompare.js Loading commit data...
testcfg.py Loading commit data...
toStringTag.js Loading commit data...
utils.js Loading commit data...