[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:
Frank Tang 2019-02-14 13:29:11 -08:00 committed by Commit Bot
parent f5c0361abc
commit 4868ee165a
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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);