Commit 497d3415 authored by Jakob Gruber's avatar Jakob Gruber Committed by Commit Bot

[regexp] Add use counters for slow exec and replace calls

Plumb through new V8 use counters.

V8 CL: https://crrev.com/c/1873698

Bug: v8:5577
Change-Id: I6e57be213c50d27c3c5fabe873532f3e43be95ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1875250
Commit-Queue: Jakob Gruber <jgruber@chromium.org>
Reviewed-by: default avatarMichael Lippautz <mlippautz@chromium.org>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#708940}
parent bf582604
......@@ -2445,6 +2445,8 @@ enum WebFeature {
kDecompressionStreamConstructor = 3061,
kV8RTCRtpReceiver_PlayoutDelayHint_AttributeGetter = 3062,
kV8RTCRtpReceiver_PlayoutDelayHint_AttributeSetter = 3063,
kV8RegExpExecCalledOnSlowRegExp = 3064,
kV8RegExpReplaceCalledOnSlowRegExp = 3065,
// Add new features immediately above this line. Don't change assigned
// numbers of any item, and don't reuse removed slots.
......
......@@ -234,6 +234,12 @@ void UseCounterCallback(v8::Isolate* isolate,
case v8::Isolate::kCallSiteAPIGetThisSloppyCall:
blink_feature = WebFeature::kV8CallSiteAPIGetThisSloppyCall;
break;
case v8::Isolate::kRegExpExecCalledOnSlowRegExp:
blink_feature = WebFeature::kV8RegExpExecCalledOnSlowRegExp;
break;
case v8::Isolate::kRegExpReplaceCalledOnSlowRegExp:
blink_feature = WebFeature::kV8RegExpReplaceCalledOnSlowRegExp;
break;
default:
// This can happen if V8 has added counters that this version of Blink
// does not know about. It's harmless.
......
......@@ -25159,6 +25159,8 @@ Called by update_net_error_codes.py.-->
<int value="3061" label="DecompressionStreamConstructor"/>
<int value="3062" label="V8RTCRtpReceiver_PlayoutDelayHint_AttributeGetter"/>
<int value="3063" label="V8RTCRtpReceiver_PlayoutDelayHint_AttributeSetter"/>
<int value="3064" label="V8RegExpExecCalledOnSlowRegExp"/>
<int value="3065" label="V8RegExpReplaceCalledOnSlowRegExp"/>
</enum>
<enum name="FeaturePolicyAllowlistType">
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