Skip to content

Commit 0f9ebbc

Browse files
legendecasV8 LUCI CQ
authored andcommitted
[flags] Remove --harmony-string-is-well-formed
The String.prototype.isWellFormed and toWellFormed have shipped since M111. Bug: v8:13557 Change-Id: I27e332d2fde0f9ea8ad649c016a84d2d3e0bf592 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4931269 Reviewed-by: Shu-yu Guo <[email protected]> Commit-Queue: Chengzhong Wu (legendecas) <[email protected]> Cr-Commit-Position: refs/heads/main@{#90398}
1 parent 6552cb6 commit 0f9ebbc

2 files changed

Lines changed: 4 additions & 13 deletions

File tree

src/flags/flag-definitions.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,6 @@ DEFINE_WEAK_IMPLICATION(harmony_rab_gsab_transfer, harmony_rab_gsab)
293293
#define HARMONY_SHIPPING_BASE(V) \
294294
V(harmony_import_assertions, "harmony import assertions") \
295295
V(harmony_change_array_by_copy, "harmony change-Array-by-copy") \
296-
V(harmony_string_is_well_formed, "harmony String#{is,to}WellFormed") \
297296
V(harmony_rab_gsab, \
298297
"harmony ResizableArrayBuffer / GrowableSharedArrayBuffer") \
299298
V(harmony_regexp_unicode_sets, "harmony RegExp Unicode Sets") \

src/init/bootstrapper.cc

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2821,6 +2821,8 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
28212821
Builtin::kStringPrototypeIncludes, 1, false);
28222822
SimpleInstallFunction(isolate_, prototype, "indexOf",
28232823
Builtin::kStringPrototypeIndexOf, 1, false);
2824+
SimpleInstallFunction(isolate(), prototype, "isWellFormed",
2825+
Builtin::kStringPrototypeIsWellFormed, 0, false);
28242826
SimpleInstallFunction(isolate_, prototype, "italics",
28252827
Builtin::kStringPrototypeItalics, 0, false);
28262828
SimpleInstallFunction(isolate_, prototype, "lastIndexOf",
@@ -2877,6 +2879,8 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
28772879
Builtin::kStringPrototypeStartsWith, 1, false);
28782880
SimpleInstallFunction(isolate_, prototype, "toString",
28792881
Builtin::kStringPrototypeToString, 0, true);
2882+
SimpleInstallFunction(isolate(), prototype, "toWellFormed",
2883+
Builtin::kStringPrototypeToWellFormed, 0, false);
28802884
SimpleInstallFunction(isolate_, prototype, "trim",
28812885
Builtin::kStringPrototypeTrim, 0, false);
28822886

@@ -5732,18 +5736,6 @@ void Genesis::InitializeGlobal_harmony_rab_gsab() {
57325736
Builtin::kSharedArrayBufferPrototypeGrow, 1, true);
57335737
}
57345738

5735-
void Genesis::InitializeGlobal_harmony_string_is_well_formed() {
5736-
if (!v8_flags.harmony_string_is_well_formed) return;
5737-
Handle<JSFunction> string_function(native_context()->string_function(),
5738-
isolate());
5739-
Handle<JSObject> string_prototype(
5740-
JSObject::cast(string_function->initial_map()->prototype()), isolate());
5741-
SimpleInstallFunction(isolate(), string_prototype, "isWellFormed",
5742-
Builtin::kStringPrototypeIsWellFormed, 0, false);
5743-
SimpleInstallFunction(isolate(), string_prototype, "toWellFormed",
5744-
Builtin::kStringPrototypeToWellFormed, 0, false);
5745-
}
5746-
57475739
void Genesis::InitializeGlobal_harmony_temporal() {
57485740
if (!v8_flags.harmony_temporal) return;
57495741

0 commit comments

Comments
 (0)