v8/src
Igor Sheludko 3c57ad2121 [builtins] Port String.prototype.substr to Torque
... and refactor String.prototype.substring.

This is done to simplify cleaning up callers of ConvertToRelativeIndex()
in a follow-up CL.

This CL also introduces Smi-overflow friendly helper function
  ClampToIndexRange(index: JSAny, min: uintptr, max: uintptr): uintptr

which can be used in other String builtins as a better alternative to
  NumberMin(NumberMax(value, min), max)
pattern.

Bug: v8:8996, v8:4153
Change-Id: Ie1bb5ab305ebf851c033d109ffe9e6afb9418274
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1872392
Commit-Queue: Igor Sheludko <ishell@chromium.org>
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#64463}
2019-10-22 12:45:27 +00:00
..
api [api] Add API functions for constructing standalone BackingStores 2019-10-22 12:00:02 +00:00
asmjs [asmjs] Disallow AsmJs instantiation from a SharedArrayBuffer. 2019-10-15 12:45:29 +00:00
ast Revert "Reland "Reland "[runtime] Remove extension slots from context objects""" 2019-10-22 09:47:26 +00:00
base Enabling arc4random API for the random generator on BSD 2019-10-22 09:49:55 +00:00
builtins [builtins] Port String.prototype.substr to Torque 2019-10-22 12:45:27 +00:00
codegen Remove support for builds without embedded builtins 2019-10-22 12:02:05 +00:00
common [heap] Slots are either in sweeping or old-to-new RS after Full GC 2019-10-22 11:09:35 +00:00
compiler Revert "Reland "Reland "[runtime] Remove extension slots from context objects""" 2019-10-22 09:47:26 +00:00
compiler-dispatcher Replace base::make_unique by std::make_unique 2019-09-10 11:21:51 +00:00
d8 Remove JS natives support, step 3 2019-10-22 07:48:05 +00:00
date Avoid a FixedArray allocation in date parser 2019-08-02 10:33:58 +00:00
debug Revert "Reland "Reland "[runtime] Remove extension slots from context objects""" 2019-10-22 09:47:26 +00:00
deoptimizer [ic] KeyedLoadIC: Optimize string keys as ArrayIndex 2019-10-16 13:55:55 +00:00
diagnostics Revert "Reland "Reland "[runtime] Remove extension slots from context objects""" 2019-10-22 09:47:26 +00:00
execution Remove support for builds without embedded builtins 2019-10-22 12:02:05 +00:00
extensions GCExtension: Provide fast path when called with no arguments 2019-10-07 17:30:40 +00:00
flags Remove support for builds without embedded builtins 2019-10-22 12:02:05 +00:00
handles [api, heap] Implement TracedReference 2019-10-07 22:34:54 +00:00
heap Remove support for builds without embedded builtins 2019-10-22 12:02:05 +00:00
ic [ic] Add fast path for StaInArrayLiteral with no feedback 2019-10-18 12:47:49 +00:00
init [cleanup] Remove unnecessary forward declaration 2019-10-22 10:54:35 +00:00
inspector [wasm] Pretend that DWARF section is a fake source map 2019-10-08 10:54:09 +00:00
interpreter Remove support for builds without embedded builtins 2019-10-22 12:02:05 +00:00
json Update DescriptorArray and Map to use InternalIndex 2019-10-11 14:40:43 +00:00
libplatform Fix two warnings issued by g++ 2019-09-16 12:23:41 +00:00
libsampler [iwyu] Add missing includes of <memory> for std::unique_ptr 2019-09-13 17:13:36 +00:00
logging [api] Add API functions for constructing standalone BackingStores 2019-10-22 12:00:02 +00:00
numbers Rename clemensh to clemensb in OWNERS 2019-09-26 08:44:44 +00:00
objects Remove support for builds without embedded builtins 2019-10-22 12:02:05 +00:00
parsing [parser] Push variables of non-arrow parenthesized expression to parent 2019-10-22 10:40:05 +00:00
profiler Revert "Reland "Reland "[runtime] Remove extension slots from context objects""" 2019-10-22 09:47:26 +00:00
protobuf Add OWNERS to src/protobuf 2019-05-15 11:17:23 +00:00
regexp Remove support for builds without embedded builtins 2019-10-22 12:02:05 +00:00
roots Remove JS natives support, step 3 2019-10-22 07:48:05 +00:00
runtime Remove support for builds without embedded builtins 2019-10-22 12:02:05 +00:00
sanitizer Rename clemensh to clemensb in OWNERS 2019-09-26 08:44:44 +00:00
snapshot Remove support for builds without embedded builtins 2019-10-22 12:02:05 +00:00
strings Fix compile cctest error 2019-10-22 08:32:59 +00:00
tasks Rename clemensh to clemensb in OWNERS 2019-09-26 08:44:44 +00:00
third_party Log debug info of WASM for Intel VTune Amplifier 2019-10-17 14:03:51 +00:00
torque [torque] replace name mangling with unique numbering 2019-10-22 08:56:43 +00:00
tracing [tracing] Separate tracing implementations and add perfetto tests 2019-07-18 15:40:12 +00:00
trap-handler Remove 'set noparent' from OWNERS files where reasonable 2019-06-03 10:18:22 +00:00
utils [utils] Improve {CopyChars} speed for Atom CPUs 2019-10-19 09:41:38 +00:00
wasm [wasm] Initialize new jump table correct for lazy compilation 2019-10-22 12:44:22 +00:00
zone Rename clemensh to clemensb in OWNERS 2019-09-26 08:44:44 +00:00
DEPS [tracing] Use the new perfetto client API 2019-07-08 13:37:16 +00:00
OWNERS Use relative paths to OWNERS files 2019-08-12 13:52:52 +00:00