• Home
  • Raw
  • Download

Lines Matching refs:subject

283 void FindOneByteStringIndices(Vector<const uint8_t> subject, uint8_t pattern,  in FindOneByteStringIndices()  argument
289 const uint8_t* subject_start = subject.start(); in FindOneByteStringIndices()
290 const uint8_t* subject_end = subject_start + subject.length(); in FindOneByteStringIndices()
303 void FindTwoByteStringIndices(const Vector<const uc16> subject, uc16 pattern, in FindTwoByteStringIndices() argument
307 const uc16* subject_start = subject.start(); in FindTwoByteStringIndices()
308 const uc16* subject_end = subject_start + subject.length(); in FindTwoByteStringIndices()
319 void FindStringIndices(Isolate* isolate, Vector<const SubjectChar> subject, in FindStringIndices() argument
329 index = search.Search(subject, index); in FindStringIndices()
338 void FindStringIndicesDispatch(Isolate* isolate, String* subject, in FindStringIndicesDispatch() argument
343 String::FlatContent subject_content = subject->GetFlatContent(); in FindStringIndicesDispatch()
392 Isolate* isolate, Handle<String> subject, Handle<JSRegExp> pattern_regexp, in StringReplaceGlobalAtomRegExpWithString() argument
394 DCHECK(subject->IsFlat()); in StringReplaceGlobalAtomRegExpWithString()
402 int subject_len = subject->length(); in StringReplaceGlobalAtomRegExpWithString()
406 FindStringIndicesDispatch(isolate, *subject, pattern, &indices, 0xffffffff, in StringReplaceGlobalAtomRegExpWithString()
410 if (matches == 0) return *subject; in StringReplaceGlobalAtomRegExpWithString()
441 String::WriteToFlat(*subject, result->GetChars() + result_pos, in StringReplaceGlobalAtomRegExpWithString()
457 String::WriteToFlat(*subject, result->GetChars() + result_pos, subject_pos, in StringReplaceGlobalAtomRegExpWithString()
463 RegExpImpl::SetLastMatchInfo(last_match_info, subject, 0, match_indices); in StringReplaceGlobalAtomRegExpWithString()
470 Isolate* isolate, Handle<String> subject, Handle<JSRegExp> regexp, in StringReplaceGlobalRegExpWithString() argument
472 DCHECK(subject->IsFlat()); in StringReplaceGlobalRegExpWithString()
476 int subject_length = subject->length(); in StringReplaceGlobalRegExpWithString()
486 if (subject->HasOnlyOneByteChars() && replacement->HasOnlyOneByteChars()) { in StringReplaceGlobalRegExpWithString()
488 isolate, subject, regexp, replacement, last_match_info); in StringReplaceGlobalRegExpWithString()
491 isolate, subject, regexp, replacement, last_match_info); in StringReplaceGlobalRegExpWithString()
495 RegExpImpl::GlobalCache global_cache(regexp, subject, isolate); in StringReplaceGlobalRegExpWithString()
501 return *subject; in StringReplaceGlobalRegExpWithString()
508 ReplacementStringBuilder builder(isolate->heap(), subject, expected_parts); in StringReplaceGlobalRegExpWithString()
544 RegExpImpl::SetLastMatchInfo(last_match_info, subject, capture_count, in StringReplaceGlobalRegExpWithString()
553 Isolate* isolate, Handle<String> subject, Handle<JSRegExp> regexp, in StringReplaceGlobalRegExpWithEmptyString() argument
555 DCHECK(subject->IsFlat()); in StringReplaceGlobalRegExpWithEmptyString()
560 if (subject->IsOneByteRepresentation()) { in StringReplaceGlobalRegExpWithEmptyString()
562 isolate, subject, regexp, empty_string, last_match_info); in StringReplaceGlobalRegExpWithEmptyString()
565 isolate, subject, regexp, empty_string, last_match_info); in StringReplaceGlobalRegExpWithEmptyString()
569 RegExpImpl::GlobalCache global_cache(regexp, subject, isolate); in StringReplaceGlobalRegExpWithEmptyString()
575 return *subject; in StringReplaceGlobalRegExpWithEmptyString()
581 int subject_length = subject->length(); in StringReplaceGlobalRegExpWithEmptyString()
603 String::WriteToFlat(*subject, answer->GetChars() + position, prev, start); in StringReplaceGlobalRegExpWithEmptyString()
613 RegExpImpl::SetLastMatchInfo(last_match_info, subject, capture_count, in StringReplaceGlobalRegExpWithEmptyString()
618 String::WriteToFlat(*subject, answer->GetChars() + position, prev, in StringReplaceGlobalRegExpWithEmptyString()
654 CONVERT_ARG_HANDLE_CHECKED(String, subject, 0); in RUNTIME_FUNCTION()
662 subject = String::Flatten(subject); in RUNTIME_FUNCTION()
665 if (subject->HasOnlyOneByteChars()) { in RUNTIME_FUNCTION()
667 isolate, subject, regexp, last_match_info); in RUNTIME_FUNCTION()
670 isolate, subject, regexp, last_match_info); in RUNTIME_FUNCTION()
676 return StringReplaceGlobalRegExpWithString(isolate, subject, regexp, in RUNTIME_FUNCTION()
684 CONVERT_ARG_HANDLE_CHECKED(String, subject, 0); in RUNTIME_FUNCTION()
689 int subject_length = subject->length(); in RUNTIME_FUNCTION()
696 RegExpResultsCache::Lookup(isolate->heap(), *subject, *pattern, in RUNTIME_FUNCTION()
712 subject = String::Flatten(subject); in RUNTIME_FUNCTION()
723 FindStringIndicesDispatch(isolate, *subject, *pattern, &indices, limit, in RUNTIME_FUNCTION()
744 elements->set(0, *subject); in RUNTIME_FUNCTION()
750 isolate->factory()->NewProperSubString(subject, part_start, part_end); in RUNTIME_FUNCTION()
758 RegExpResultsCache::Enter(isolate, subject, pattern, elements, in RUNTIME_FUNCTION()
772 CONVERT_ARG_HANDLE_CHECKED(String, subject, 1); in RUNTIME_FUNCTION()
778 CHECK(index <= subject->length()); in RUNTIME_FUNCTION()
781 isolate, RegExpImpl::Exec(regexp, subject, index, last_match_info)); in RUNTIME_FUNCTION()
839 static Object* SearchRegExpMultiple(Isolate* isolate, Handle<String> subject, in SearchRegExpMultiple() argument
843 DCHECK(subject->IsFlat()); in SearchRegExpMultiple()
847 int subject_length = subject->length(); in SearchRegExpMultiple()
854 isolate->heap(), *subject, regexp->data(), &last_match_cache, in SearchRegExpMultiple()
866 RegExpImpl::SetLastMatchInfo(last_match_array, subject, capture_count, in SearchRegExpMultiple()
873 RegExpImpl::GlobalCache global_cache(regexp, subject, isolate); in SearchRegExpMultiple()
909 match = isolate->factory()->NewProperSubString(subject, match_start, in SearchRegExpMultiple()
913 isolate->factory()->NewSubString(subject, match_start, match_end); in SearchRegExpMultiple()
930 isolate->factory()->NewSubString(subject, start, end); in SearchRegExpMultiple()
938 elements->set(capture_count + 2, *subject); in SearchRegExpMultiple()
955 RegExpImpl::SetLastMatchInfo(last_match_array, subject, capture_count, in SearchRegExpMultiple()
972 isolate, subject, handle(regexp->data(), isolate), result_fixed_array, in SearchRegExpMultiple()
990 CONVERT_ARG_HANDLE_CHECKED(String, subject, 1); in RUNTIME_FUNCTION()
996 subject = String::Flatten(subject); in RUNTIME_FUNCTION()
1000 return SearchRegExpMultiple<false>(isolate, subject, regexp, in RUNTIME_FUNCTION()
1003 return SearchRegExpMultiple<true>(isolate, subject, regexp, last_match_info, in RUNTIME_FUNCTION()