Commit 07c9bc6e authored by Simon Zünd's avatar Simon Zünd Committed by Commit Bot

Add use counter for sorting non-packed JSArrays

This CL adds a counter for sorting non-packed JSArrays where
Object.prototype was modified, or the prototype of the instance
differs from Array.prototype.

This is the Chromium side of the change.
The V8-side CL: https://crrev.com/c/1051650

R=jgruber@chromium.org

Bug: v8:7382
Change-Id: I46f0963b8b79380fe5c5defa50dba517df77b72c
Reviewed-on: https://chromium-review.googlesource.com/1051651Reviewed-by: default avatarJochen Eisinger <jochen@chromium.org>
Commit-Queue: Simon Zünd <szuend@google.com>
Cr-Commit-Position: refs/heads/master@{#558263}
parent b3a06c1b
......@@ -1906,6 +1906,8 @@ enum WebFeature {
kWebRtcVaapiHWVP8Encoding = 2433,
kPerformanceResourceTimingInitiatorType = 2434,
kPaymentRequestInvalidCurrencyCode = 2435,
kV8ArraySortNoElementsProtector = 2436,
kV8ArrayPrototypeSortJSArrayModifiedPrototype = 2437,
// Add new features immediately above this line. Don't change assigned
// numbers of any item, and don't reuse removed slots.
......
......@@ -145,6 +145,9 @@ void UseCounterCallback(v8::Isolate* isolate,
case v8::Isolate::kDeoptimizerDisableSpeculation:
blink_feature = WebFeature::kV8DeoptimizerDisableSpeculation;
break;
case v8::Isolate::kArrayPrototypeSortJSArrayModifiedPrototype:
blink_feature = WebFeature::kV8ArrayPrototypeSortJSArrayModifiedPrototype;
break;
default:
// This can happen if V8 has added counters that this version of Blink
// does not know about. It's harmless.
......
......@@ -18655,6 +18655,8 @@ Called by update_net_error_codes.py.-->
<int value="2433" label="WebRtcVaapiHWVP8Encoding"/>
<int value="2434" label="PerformanceResourceTimingInitiatorType"/>
<int value="2435" label="PaymentRequestInvalidCurrencyCode"/>
<int value="2436" label="V8ArraySortNoElementsProtector"/>
<int value="2437" label="V8ArrayPrototypeSortJSArrayModifiedPrototype"/>
</enum>
<enum name="FeedbackSource">
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment