[Intl] Track Usage for String.prototype.normalize
Bug: v8:8844 Change-Id: Id0e52a3367d641205e2f1c67d610254708fd4494 Reviewed-on: https://chromium-review.googlesource.com/c/1470813 Reviewed-by: Sathya Gunasekaran <gsathya@chromium.org> Reviewed-by: Adam Klein <adamk@chromium.org> Reviewed-by: Jakob Kummerow <jkummerow@chromium.org> Commit-Queue: Frank Tang <ftang@chromium.org> Cr-Commit-Position: refs/heads/master@{#59714}
This commit is contained in:
parent
f5c0361abc
commit
4868ee165a
@ -7553,6 +7553,7 @@ class V8_EXPORT Isolate {
|
||||
kRegExpMatchIsTrueishOnNonJSRegExp = 72,
|
||||
kRegExpMatchIsFalseishOnJSRegExp = 73,
|
||||
kDateGetTimezoneOffset = 74,
|
||||
kStringNormalize = 75,
|
||||
|
||||
// If you add new values here, you'll also need to update Chromium's:
|
||||
// web_feature.mojom, UseCounterCallback.cpp, and enums.xml. V8 changes to
|
||||
|
@ -45,6 +45,7 @@ BUILTIN(StringPrototypeToUpperCaseIntl) {
|
||||
|
||||
BUILTIN(StringPrototypeNormalizeIntl) {
|
||||
HandleScope handle_scope(isolate);
|
||||
isolate->CountUsage(v8::Isolate::UseCounterFeature::kStringNormalize);
|
||||
TO_THIS_STRING(string, "String.prototype.normalize");
|
||||
|
||||
Handle<Object> form_input = args.atOrUndefined(isolate, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user