Lines Matching defs:thread

28     JSThread *thread = argv->GetThread();
29 [[maybe_unused]] EcmaHandleScope handleScope(thread);
37 THROW_TYPE_ERROR_AND_RETURN(thread, "this value is not a regExp iterator", JSTaggedValue::Exception());
40 JSHandle<JSTaggedValue> undefinedHandle(thread->GlobalConstants()->GetHandledUndefined());
45 return JSIterator::CreateIterResultObject(thread, undefinedHandle, true).GetTaggedValue();
52 JSHandle<JSTaggedValue> regexp(thread, jsIterator->GetIteratingRegExp());
53 JSHandle<JSTaggedValue> inputStr(thread, jsIterator->GetIteratedString());
58 JSMutableHandle<JSTaggedValue> match(thread, JSTaggedValue::Undefined());
59 bool isFastPath = BuiltinsRegExp::IsFastRegExp(thread, regexp);
61 match.Update(BuiltinsRegExp::RegExpBuiltinExec(thread, regexp, inputStr, isFastPath, true));
63 match.Update(BuiltinsRegExp::RegExpExec(thread, regexp, inputStr, false));
65 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
73 return JSIterator::CreateIterResultObject(thread, undefinedHandle, true).GetTaggedValue();
80 return JSIterator::CreateIterResultObject(thread, match, false).GetTaggedValue();
84 const GlobalEnvConstants *globalConstants = thread->GlobalConstants();
86 JSHandle<JSTaggedValue> getZero(JSObject::GetProperty(thread, match, zeroString).GetValue());
87 JSHandle<EcmaString> matchStr = JSTaggedValue::ToString(thread, getZero);
88 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
94 uint32_t lastIndex = static_cast<uint32_t>(BuiltinsRegExp::GetLastIndex(thread, regexp, isFastPath));
95 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
98 BuiltinsRegExp::SetLastIndex(thread, regexp, JSTaggedValue(nextIndex), isFastPath);
99 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
102 return JSIterator::CreateIterResultObject(thread, match, false).GetTaggedValue();
105 JSHandle<JSTaggedValue> JSRegExpIterator::CreateRegExpStringIterator(JSThread *thread,
110 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
112 JSHandle<JSTaggedValue> undefinedHandle(thread->GlobalConstants()->GetHandledUndefined());
113 THROW_TYPE_ERROR_AND_RETURN(thread, "matcher is not JSRegExp", undefinedHandle);