Home | History | Annotate | Download | only in runtime

Lines Matching refs:regexp

11 #include "src/regexp/jsregexp-inl.h"
12 #include "src/regexp/jsregexp.h"
13 #include "src/regexp/regexp-utils.h"
481 Isolate* isolate, Handle<String> subject, Handle<JSRegExp> regexp,
486 int capture_count = regexp->CaptureCount();
495 // Shortcut for simple non-regexp global replacements
496 if (regexp->TypeTag() == JSRegExp::ATOM && simple_replace) {
499 isolate, subject, regexp, replacement, last_match_info);
502 isolate, subject, regexp, replacement, last_match_info);
506 RegExpImpl::GlobalCache global_cache(regexp, subject, isolate);
563 Isolate* isolate, Handle<String> subject, Handle<JSRegExp> regexp,
567 // Shortcut for simple non-regexp global replacements
568 if (regexp->TypeTag() == JSRegExp::ATOM) {
572 isolate, subject, regexp, empty_string, last_match_info);
575 isolate, subject, regexp, empty_string, last_match_info);
579 RegExpImpl::GlobalCache global_cache(regexp, subject, isolate);
590 int capture_count = regexp->CaptureCount();
662 Isolate* isolate, Handle<JSRegExp> regexp, Handle<String> subject,
664 CHECK(regexp->GetFlags() & JSRegExp::kGlobal);
671 isolate, subject, regexp, last_match_info);
674 isolate, subject, regexp, last_match_info);
680 return StringReplaceGlobalRegExpWithString(isolate, subject, regexp,
692 CONVERT_ARG_HANDLE_CHECKED(JSRegExp, regexp, 1);
696 isolate, regexp, subject, replacement, last_match_info);
796 Handle<JSRegExp> regexp =
802 JSRegExp::Initialize(regexp, source, flags));
804 return *regexp;
810 CONVERT_ARG_HANDLE_CHECKED(JSRegExp, regexp, 0);
820 isolate, RegExpImpl::Exec(regexp, subject, index, last_match_info));
826 CONVERT_ARG_HANDLE_CHECKED(JSRegExp, regexp, 0);
834 isolate, regexp, subject, replacement, internal_match_info);
931 Handle<JSRegExp> regexp,
935 DCHECK_NE(has_capture, regexp->CaptureCount() == 0);
937 int capture_count = regexp->CaptureCount();
945 isolate->heap(), *subject, regexp->data(), &last_match_cache,
967 RegExpImpl::GlobalCache global_cache(regexp, subject, isolate);
1069 isolate, subject, handle(regexp->data(), isolate), copied_fixed_array,
1079 Isolate* isolate, Handle<String> subject, Handle<JSRegExp> regexp,
1088 RegExpImpl::Exec(regexp, subject, 0, last_match_info), String);
1091 RETURN_ON_EXCEPTION(isolate, RegExpUtils::SetLastIndex(isolate, regexp, 0),
1145 // Legacy implementation of RegExp.prototype[Symbol.replace] which
1148 Handle<JSRegExp> regexp,
1155 const int flags = regexp->GetFlags();
1169 // Non-global regexp search, string replace.
1174 RegExpImpl::Exec(regexp, string, 0, last_match_info), String);
1178 isolate, RegExpUtils::SetLastIndex(isolate, regexp, 0), String);
1203 // Global regexp search, string replace.
1205 RETURN_ON_EXCEPTION(isolate, RegExpUtils::SetLastIndex(isolate, regexp, 0),
1212 isolate, string, regexp, last_match_info);
1217 isolate, string, regexp, last_match_info);
1223 isolate, string, regexp, replace, last_match_info);
1242 CONVERT_ARG_HANDLE_CHECKED(JSRegExp, regexp, 0);
1249 CHECK(regexp->GetFlags() & JSRegExp::kGlobal);
1251 if (regexp->CaptureCount() == 0) {
1252 return SearchRegExpMultiple<false>(isolate, subject, regexp,
1255 return SearchRegExpMultiple<true>(isolate, subject, regexp, last_match_info,
1265 CONVERT_ARG_HANDLE_CHECKED(JSRegExp, regexp, 1);
1269 isolate, subject, regexp, replace));
1273 // ES#sec-regexp.prototype-@@replace
1274 // RegExp.prototype [ @@replace ] ( string, replaceValue )