Lines Matching refs:RegExpImpl
1182 Handle<Object> result = RegExpImpl::Compile(re, pattern, flags);
1741 Handle<Object> result = RegExpImpl::Exec(regexp,
1946 RegExpImpl::CreateRegExpLiteral(constructor, pattern, flags,
2774 int from = RegExpImpl::GetCapture(match_info, capture * 2);
2775 int to = RegExpImpl::GetCapture(match_info, capture * 2 + 1);
2973 Handle<Object> match = RegExpImpl::Exec(regexp_handle,
3040 RegExpImpl::GetLastCaptureCount(match_info_array));
3041 start = RegExpImpl::GetCapture(match_info_array, 0);
3042 end = RegExpImpl::GetCapture(match_info_array, 1);
3064 match = RegExpImpl::Exec(regexp_handle,
3109 Handle<Object> match = RegExpImpl::Exec(regexp_handle,
3124 start = RegExpImpl::GetCapture(match_info_array, 0);
3125 end = RegExpImpl::GetCapture(match_info_array, 1);
3179 match = RegExpImpl::Exec(regexp_handle,
3192 start = RegExpImpl::GetCapture(match_info_array, 0);
3193 end = RegExpImpl::GetCapture(match_info_array, 1);
3595 Handle<Object> match = RegExpImpl::Exec(regexp, subject, 0, regexp_info);
3613 start = Smi::cast(elements->get(RegExpImpl::kFirstCapture))->value();
3614 end = Smi::cast(elements->get(RegExpImpl::kFirstCapture + 1))->value();
3619 match = RegExpImpl::Exec(regexp, subject, end, regexp_info);
3651 last_match_info->EnsureSize(2 + RegExpImpl::kLastMatchOverhead);
3654 RegExpImpl::SetLastCaptureCount(elements, 2);
3655 RegExpImpl::SetLastInput(elements, *subject);
3656 RegExpImpl::SetLastSubject(elements, *subject);
3657 RegExpImpl::SetCapture(elements, 0, match_start);
3658 RegExpImpl::SetCapture(elements, 1, match_end);
3770 static RegExpImpl::IrregexpResult SearchRegExpNoCaptureMultiple(
3780 int required_registers = RegExpImpl::IrregexpPrepare(regexp, subject);
3781 if (required_registers < 0) return RegExpImpl::RE_EXCEPTION;
3789 RegExpImpl::IrregexpResult result =
3790 RegExpImpl::IrregexpExecOnce(regexp,
3794 if (result == RegExpImpl::RE_SUCCESS) {
3819 } else if (result == RegExpImpl::RE_FAILURE) {
3822 ASSERT_EQ(result, RegExpImpl::RE_EXCEPTION);
3838 return RegExpImpl::RE_SUCCESS;
3840 return RegExpImpl::RE_FAILURE; // No matches at all.
3845 static RegExpImpl::IrregexpResult SearchRegExpMultiple(
3853 int required_registers = RegExpImpl::IrregexpPrepare(regexp, subject);
3854 if (required_registers < 0) return RegExpImpl::RE_EXCEPTION;
3859 RegExpImpl::IrregexpResult result =
3860 RegExpImpl::IrregexpExecOnce(regexp,
3872 if (result == RegExpImpl::RE_SUCCESS) {
3944 result = RegExpImpl::IrregexpExecOnce(regexp,
3949 } while (result == RegExpImpl::RE_SUCCESS);
3951 if (result != RegExpImpl::RE_EXCEPTION) {
3961 last_match_capture_count + RegExpImpl::kLastMatchOverhead;
3965 RegExpImpl::SetLastCaptureCount(elements, last_match_capture_count);
3966 RegExpImpl::SetLastSubject(elements, *subject);
3967 RegExpImpl::SetLastInput(elements, *subject);
3969 RegExpImpl::SetCapture(elements, i, prev_register_vector[i]);
3971 return RegExpImpl::RE_SUCCESS;
4014 RegExpImpl::IrregexpResult result;
4028 if (result == RegExpImpl::RE_SUCCESS) return *builder.ToJSArray(result_array);
4029 if (result == RegExpImpl::RE_FAILURE) return isolate->heap()->null_value();
4030 ASSERT_EQ(result, RegExpImpl::RE_EXCEPTION);