@@ -2158,6 +2158,8 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
2158
2158
Builtin::kStringPrototypeIncludes , 1 , false );
2159
2159
SimpleInstallFunction (isolate_, prototype, " indexOf" ,
2160
2160
Builtin::kStringPrototypeIndexOf , 1 , false );
2161
+ SimpleInstallFunction (isolate (), prototype, " isWellFormed" ,
2162
+ Builtin::kStringPrototypeIsWellFormed , 0 , false );
2161
2163
SimpleInstallFunction (isolate_, prototype, " italics" ,
2162
2164
Builtin::kStringPrototypeItalics , 0 , false );
2163
2165
SimpleInstallFunction (isolate_, prototype, " lastIndexOf" ,
@@ -2214,6 +2216,8 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
2214
2216
Builtin::kStringPrototypeStartsWith , 1 , false );
2215
2217
SimpleInstallFunction (isolate_, prototype, " toString" ,
2216
2218
Builtin::kStringPrototypeToString , 0 , true );
2219
+ SimpleInstallFunction (isolate (), prototype, " toWellFormed" ,
2220
+ Builtin::kStringPrototypeToWellFormed , 0 , false );
2217
2221
SimpleInstallFunction (isolate_, prototype, " trim" ,
2218
2222
Builtin::kStringPrototypeTrim , 0 , false );
2219
2223
@@ -5068,18 +5072,6 @@ void Genesis::InitializeGlobal_harmony_rab_gsab() {
5068
5072
Builtin::kSharedArrayBufferPrototypeGrow , 1 , true );
5069
5073
}
5070
5074
5071
- void Genesis::InitializeGlobal_harmony_string_is_well_formed () {
5072
- if (!v8_flags.harmony_string_is_well_formed ) return ;
5073
- Handle <JSFunction> string_function (native_context ()->string_function (),
5074
- isolate ());
5075
- Handle <JSObject> string_prototype (
5076
- JSObject::cast (string_function->initial_map ()->prototype ()), isolate ());
5077
- SimpleInstallFunction (isolate (), string_prototype, " isWellFormed" ,
5078
- Builtin::kStringPrototypeIsWellFormed , 0 , false );
5079
- SimpleInstallFunction (isolate (), string_prototype, " toWellFormed" ,
5080
- Builtin::kStringPrototypeToWellFormed , 0 , false );
5081
- }
5082
-
5083
5075
void Genesis::InitializeGlobal_harmony_temporal () {
5084
5076
if (!v8_flags.harmony_temporal ) return ;
5085
5077
// -- T e m p o r a l
0 commit comments