Home | History | Annotate | Download | only in runtime

Lines Matching full:regexp

11 #include "src/regexp/jsregexp-inl.h"
12 #include "src/regexp/jsregexp.h"
470 Isolate* isolate, Handle<String> subject, Handle<JSRegExp> regexp,
475 int capture_count = regexp->CaptureCount();
484 // Shortcut for simple non-regexp global replacements
485 if (regexp->TypeTag() == JSRegExp::ATOM && simple_replace) {
488 isolate, subject, regexp, replacement, last_match_info);
491 isolate, subject, regexp, replacement, last_match_info);
495 RegExpImpl::GlobalCache global_cache(regexp, subject, true, isolate);
555 Isolate* isolate, Handle<String> subject, Handle<JSRegExp> regexp,
559 // Shortcut for simple non-regexp global replacements
560 if (regexp->TypeTag() == JSRegExp::ATOM) {
564 isolate, subject, regexp, empty_string, last_match_info);
567 isolate, subject, regexp, empty_string, last_match_info);
571 RegExpImpl::GlobalCache global_cache(regexp, subject, true, isolate);
582 int capture_count = regexp->CaptureCount();
658 CONVERT_ARG_HANDLE_CHECKED(JSRegExp, regexp, 1);
661 RUNTIME_ASSERT(regexp->GetFlags() & JSRegExp::kGlobal);
669 isolate, subject, regexp, last_match_info);
672 isolate, subject, regexp, last_match_info);
678 return StringReplaceGlobalRegExpWithString(isolate, subject, regexp,
774 CONVERT_ARG_HANDLE_CHECKED(JSRegExp, regexp, 0);
786 RegExpImpl::Exec(regexp, subject, index, last_match_info));
794 CONVERT_ARG_CHECKED(JSRegExp, regexp, 0);
795 return regexp->flags();
802 CONVERT_ARG_CHECKED(JSRegExp, regexp, 0);
803 return regexp->source();
831 CONVERT_ARG_HANDLE_CHECKED(JSRegExp, regexp, 0);
836 JSRegExp::Initialize(regexp, source, flags));
838 return *regexp;
846 Handle<JSRegExp> regexp,
850 DCHECK_NE(has_capture, regexp->CaptureCount() == 0);
852 int capture_count = regexp->CaptureCount();
860 isolate->heap(), *subject, regexp->data(), &last_match_cache,
879 RegExpImpl::GlobalCache global_cache(regexp, subject, true, isolate);
978 isolate, subject, handle(regexp->data(), isolate), result_fixed_array,
995 CONVERT_ARG_HANDLE_CHECKED(JSRegExp, regexp, 0);
1003 RUNTIME_ASSERT(regexp->GetFlags() & JSRegExp::kGlobal);
1005 if (regexp->CaptureCount() == 0) {
1006 return SearchRegExpMultiple<false>(isolate, subject, regexp,
1009 return SearchRegExpMultiple<true>(isolate, subject, regexp, last_match_info,