• Tobias Tebbi's avatar
    [torque] uniform flattening and string access in Torque · 65d2c4b4
    Tobias Tebbi authored
    Port String::Flatten to Torque (using a fast C call for the
    non-allocating part) and provide fast and easy access to sequential
    string data in Torque: GetStringData() flattens if necessary and
    computes slices that allow direct access.
    
    Applications: String.prototype.replaceAll, String.prototype.endsWith,
      and String.prototype.beginsWith now use GetStringData() and direct
      slice access instead of the slow StringCharCodeAt and they no
      longer bail out to the runtime for flattening.
    
    Drive-by changes:
      - Expose String instance type bits as bitfields and enums in Torque.
      - Fix method lookup in Torque to include superclass methods.
      - Use char8 and char16 types in more places.
      - Allow fast C calls with void return type.
      - Add Torque macros to create subslices.
      - Add no-GC scopes to runtime functions loading external string data.
    
    
    Bug: v8:7793
    Change-Id: I763b9b24212770307c9b2fe9f070f21f65d68d58
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2565515
    Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
    Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#71611}
    65d2c4b4
Name
Last commit
Last update
build_overrides Loading commit data...
custom_deps Loading commit data...
docs Loading commit data...
gni Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.clang-tidy Loading commit data...
.editorconfig Loading commit data...
.flake8 Loading commit data...
.git-blame-ignore-revs Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.vpython Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
COMMON_OWNERS Loading commit data...
DEPS Loading commit data...
DIR_METADATA Loading commit data...
ENG_REVIEW_OWNERS Loading commit data...
INFRA_OWNERS Loading commit data...
INTL_OWNERS Loading commit data...
LICENSE Loading commit data...
LICENSE.fdlibm Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
MIPS_OWNERS Loading commit data...
OWNERS Loading commit data...
PPC_OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
S390_OWNERS Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...