Lines Matching refs:regexp
610 JSHandle<JSTaggedValue> regexp = BuiltinsString::GetCallArg(argv, 0); in Match() local
611 if (thisTag->IsString() && regexp->IsECMAObject()) { in Match()
612 if (BuiltinsRegExp::IsFastRegExp(thread, regexp, BuiltinsRegExp::RegExpSymbol::MATCH)) { in Match()
613 return BuiltinsRegExp::RegExpMatch(thread, regexp, thisTag, true); in Match()
619 if (!regexp->IsUndefined() && !regexp->IsNull()) { in Match()
620 JSHandle<JSTaggedValue> matcher = JSObject::GetMethod(thread, regexp, matchTag); in Match()
624 EcmaInterpreter::NewRuntimeCallInfo(thread, matcher, regexp, undefined, 1); in Match()
633 … JSHandle<JSTaggedValue> rx(thread, BuiltinsRegExp::RegExpCreate(thread, regexp, undifinedHandle)); in Match()
651 JSHandle<JSTaggedValue> regexp = BuiltinsString::GetCallArg(argv, 0); in MatchAll() local
658 if (!regexp->IsUndefined() && !regexp->IsNull()) { in MatchAll()
660 if (regexp->IsECMAObject() && in MatchAll()
661 BuiltinsRegExp::IsFastRegExp(thread, regexp, BuiltinsRegExp::RegExpSymbol::MATCH)) { in MatchAll()
662 … bool isGlobal = BuiltinsRegExp::GetOriginalFlag(thread, regexp, RegExpParser::FLAG_GLOBAL); in MatchAll()
668 } else if (JSObject::IsRegExp(thread, regexp)) { in MatchAll()
671 … JSHandle<JSTaggedValue> flags = JSObject::GetProperty(thread, regexp, flagsString).GetValue(); in MatchAll()
689 if (thisTag->IsString() && regexp->IsECMAObject()) { in MatchAll()
691 … BuiltinsRegExp::IsFastRegExp(thread, regexp, BuiltinsRegExp::RegExpSymbol::MATCHALL)) { in MatchAll()
693 return BuiltinsRegExp::RegExpMatchAll(thread, regexp, string, true); in MatchAll()
699 (regexp->IsString() || regexp->IsNumber())); in MatchAll()
701 JSHandle<JSTaggedValue> matcher = JSObject::GetMethod(thread, regexp, matchAllTag); in MatchAll()
706 EcmaInterpreter::NewRuntimeCallInfo(thread, matcher, regexp, undefined, 1); in MatchAll()
718 thread, regexp, JSHandle<JSTaggedValue>(ecmaVm->GetFactory()->NewFromASCII("g")))); in MatchAll()
1499 JSHandle<JSTaggedValue> regexp = BuiltinsString::GetCallArg(argv, 0); in Search() local
1500 if (thisTag->IsString() && regexp->IsECMAObject()) { in Search()
1501 if (BuiltinsRegExp::IsFastRegExp(thread, regexp, BuiltinsRegExp::RegExpSymbol::SEARCH)) { in Search()
1502 return BuiltinsRegExp::RegExpSearchFast(thread, regexp, thisTag); in Search()
1507 if (!regexp->IsUndefined() && !regexp->IsNull()) { in Search()
1508 JSHandle<JSTaggedValue> searcher = JSObject::GetMethod(thread, regexp, searchTag); in Search()
1513 EcmaInterpreter::NewRuntimeCallInfo(thread, searcher, regexp, undefined, 1); in Search()
1521 JSHandle<JSTaggedValue> rx(thread, BuiltinsRegExp::RegExpCreate(thread, regexp, undefined)); in Search()