Lines Matching defs:replace
284 // If capture is undefined or does not exist, replace the text
286 // Otherwise, replace the text through the following '>' with
1174 // Force tier up to native code for global replaces. The global replace is
1262 // Arguments array to replace function is match, captures, index and
1346 // Legacy implementation of RegExp.prototype[Symbol.replace] which
1350 Handle<String> replace) {
1351 // Functional fast-paths are dispatched directly by replace builtin.
1360 replace = String::Flatten(isolate, replace);
1365 // Non-global regexp search, string replace.
1405 if (replace->length() > 0) {
1409 String::GetSubstitution(isolate, &m, replace),
1418 // Global regexp search, string replace.
1423 // Force tier up to native code for global replaces. The global replace is
1436 if (replace->length() == 0) {
1451 isolate, string, regexp, replace, last_match_info);
1549 // and subject for the replace function invocation. If the RegExp contains
1640 // ES#sec-regexp.prototype-@@replace
1794 // ES#sec-regexp.prototype-@@replace
1795 // RegExp.prototype [ @@replace ] ( string, replaceValue )
1810 Handle<String> replace;
1812 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, replace,
1816 // Fast-path for unmodified JSRegExps (and non-functional replace).
1818 // We should never get here with functional replace because unmodified
1819 // regexp and functional replace should be fully handled in CSA code.
1824 RegExpReplace(isolate, Handle<JSRegExp>::cast(recv), string, replace));
1974 isolate, replacement, String::GetSubstitution(isolate, &m, replace));