[array] Add check for --force-slow-path to Array#sort
This CL changes Array#sort to use the generic path for fast elements kinds if --force-slow-path is present. Note that the IsFastJSArray macro includes this check but not the Cast itself. R=jgruber@chromium.org Bug: v8:8215 Change-Id: I1135ab9db15effd86020f49f4ae23ba1e1da07f8 Reviewed-on: https://chromium-review.googlesource.com/c/1435940 Reviewed-by: Jakob Gruber <jgruber@chromium.org> Commit-Queue: Simon Zünd <szuend@chromium.org> Cr-Commit-Position: refs/heads/master@{#59097}
This commit is contained in:
parent
8a3c4d9eec
commit
9514f0d62a
1
third_party/v8/builtins/array-sort.tq
vendored
1
third_party/v8/builtins/array-sort.tq
vendored
@ -1746,6 +1746,7 @@ namespace array {
|
||||
sortState[kInitialReceiverLengthIdx] = len;
|
||||
|
||||
try {
|
||||
GotoIfForceSlowPath() otherwise Slow;
|
||||
let a: FastJSArray = Cast<FastJSArray>(receiver) otherwise Slow;
|
||||
|
||||
const elementsKind: ElementsKind = map.elements_kind;
|
||||
|
Loading…
Reference in New Issue
Block a user