@@ -2114,6 +2114,8 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
2114
2114
Builtin::kStringPrototypeIncludes , 1 , false );
2115
2115
SimpleInstallFunction (isolate_, prototype, " indexOf" ,
2116
2116
Builtin::kStringPrototypeIndexOf , 1 , false );
2117
+ SimpleInstallFunction (isolate (), prototype, " isWellFormed" ,
2118
+ Builtin::kStringPrototypeIsWellFormed , 0 , false );
2117
2119
SimpleInstallFunction (isolate_, prototype, " italics" ,
2118
2120
Builtin::kStringPrototypeItalics , 0 , false );
2119
2121
SimpleInstallFunction (isolate_, prototype, " lastIndexOf" ,
@@ -2170,6 +2172,8 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
2170
2172
Builtin::kStringPrototypeStartsWith , 1 , false );
2171
2173
SimpleInstallFunction (isolate_, prototype, " toString" ,
2172
2174
Builtin::kStringPrototypeToString , 0 , true );
2175
+ SimpleInstallFunction (isolate (), prototype, " toWellFormed" ,
2176
+ Builtin::kStringPrototypeToWellFormed , 0 , false );
2173
2177
SimpleInstallFunction (isolate_, prototype, " trim" ,
2174
2178
Builtin::kStringPrototypeTrim , 0 , false );
2175
2179
@@ -4959,18 +4963,6 @@ void Genesis::InitializeGlobal_harmony_rab_gsab() {
4959
4963
Builtin::kSharedArrayBufferPrototypeGrow , 1 , true );
4960
4964
}
4961
4965
4962
- void Genesis::InitializeGlobal_harmony_string_is_well_formed () {
4963
- if (!v8_flags.harmony_string_is_well_formed ) return ;
4964
- Handle <JSFunction> string_function (native_context ()->string_function (),
4965
- isolate ());
4966
- Handle <JSObject> string_prototype (
4967
- JSObject::cast (string_function->initial_map ().prototype ()), isolate ());
4968
- SimpleInstallFunction (isolate (), string_prototype, " isWellFormed" ,
4969
- Builtin::kStringPrototypeIsWellFormed , 0 , false );
4970
- SimpleInstallFunction (isolate (), string_prototype, " toWellFormed" ,
4971
- Builtin::kStringPrototypeToWellFormed , 0 , false );
4972
- }
4973
-
4974
4966
void Genesis::InitializeGlobal_harmony_temporal () {
4975
4967
if (!v8_flags.harmony_temporal ) return ;
4976
4968
// -- T e m p o r a l
0 commit comments