Lines Matching defs:replace
989 // ES6 #sec-string.prototype.replace
995 const auto replace = Parameter<Object>(Descriptor::kReplace);
1000 RequireObjectCoercible(context, receiver, "String.prototype.replace");
1002 // Redirect to replacer method if {search[@@replace]} is not undefined.
1011 replace));
1014 Return(Call(context, fn, search, receiver, replace));
1026 // {replace}.
1032 GotoIf(TaggedIsSmi(replace), &next);
1033 GotoIfNot(IsString(CAST(replace)), &next);
1035 TNode<String> replace_string = CAST(replace);
1043 // Searching by traversing a cons string tree and replace with cons of
1068 // The spec requires to perform ToString(replace) if the {replace} is not
1072 GotoIf(TaggedIsSmi(replace), &return_subject);
1073 GotoIf(IsCallableMap(LoadMap(CAST(replace))), &return_subject);
1077 ToString_Inline(context, replace);
1105 // Compute the string to replace with.
1108 GotoIf(TaggedIsSmi(replace), &if_notcallablereplace);
1109 Branch(IsCallableMap(LoadMap(CAST(replace))), &if_iscallablereplace,
1115 Call(context, replace, UndefinedConstant(), search_string,
1126 const TNode<String> replace_string = ToString_Inline(context, replace);