• 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
..
DIR_METADATA Loading commit data...
OWNERS Loading commit data...
runtime-array.cc Loading commit data...
runtime-atomics.cc Loading commit data...
runtime-bigint.cc Loading commit data...
runtime-classes.cc Loading commit data...
runtime-collections.cc Loading commit data...
runtime-compiler.cc Loading commit data...
runtime-date.cc Loading commit data...
runtime-debug.cc Loading commit data...
runtime-forin.cc Loading commit data...
runtime-function.cc Loading commit data...
runtime-futex.cc Loading commit data...
runtime-generator.cc Loading commit data...
runtime-internal.cc Loading commit data...
runtime-interpreter.cc Loading commit data...
runtime-intl.cc Loading commit data...
runtime-literals.cc Loading commit data...
runtime-module.cc Loading commit data...
runtime-numbers.cc Loading commit data...
runtime-object.cc Loading commit data...
runtime-operators.cc Loading commit data...
runtime-promise.cc Loading commit data...
runtime-proxy.cc Loading commit data...
runtime-regexp.cc Loading commit data...
runtime-scopes.cc Loading commit data...
runtime-strings.cc Loading commit data...
runtime-symbol.cc Loading commit data...
runtime-test.cc Loading commit data...
runtime-typedarray.cc Loading commit data...
runtime-utils.h Loading commit data...
runtime-wasm.cc Loading commit data...
runtime-weak-refs.cc Loading commit data...
runtime.cc Loading commit data...
runtime.h Loading commit data...