Lines Matching defs:thisObj

143     JSHandle<JSTaggedValue> thisObj = GetThis(argv);
151 if (!thisObj->IsECMAObject()) {
156 if (!thisObj->IsJSRegExp()) {
162 bool isFastPath = IsFastRegExp(thread, thisObj);
169 return RegExpBuiltinExec(thread, thisObj, string, isFastPath, useCache);
180 JSHandle<JSTaggedValue> thisObj = GetThis(argv);
183 if (!thisObj->IsECMAObject()) {
193 if (IsFastRegExp(thread, thisObj)) {
194 return RegExpTestFast(thread, thisObj, string, true);
198 JSTaggedValue matchResult = RegExpExec(thread, thisObj, string, false);
321 JSHandle<JSTaggedValue> thisObj = GetThis(argv);
324 if (!thisObj->IsECMAObject()) {
332 if (IsFastRegExp(thread, thisObj)) {
333 JSHandle<JSRegExp> regexp(thread, JSRegExp::Cast(thisObj->GetTaggedObject()));
346 getSource.Update(JSObject::GetProperty(thread, thisObj, sourceString).GetValue());
349 getFlags.Update(JSObject::GetProperty(thread, thisObj, flagsString).GetValue());
369 JSHandle<JSTaggedValue> thisObj = GetThis(argv);
371 if (!thisObj->IsECMAObject()) {
376 if (!IsFastRegExp(thread, thisObj)) {
377 return GetAllFlagsInternal(thread, thisObj);
379 uint8_t flagsBits = static_cast<uint8_t>(JSRegExp::Cast(thisObj->GetTaggedObject())->GetOriginalFlags().GetInt());
383 JSTaggedValue BuiltinsRegExp::GetAllFlagsInternal(JSThread *thread, JSHandle<JSTaggedValue> &thisObj)
394 JSHandle<JSTaggedValue> hasIndicesResult = JSObject::GetProperty(thread, thisObj, hasIndicesKey).GetValue();
401 JSHandle<JSTaggedValue> globalResult = JSObject::GetProperty(thread, thisObj, globalKey).GetValue();
408 JSHandle<JSTaggedValue> ignoreCaseResult = JSObject::GetProperty(thread, thisObj, ignoreCaseKey).GetValue();
415 JSHandle<JSTaggedValue> multilineResult = JSObject::GetProperty(thread, thisObj, multilineKey).GetValue();
422 JSHandle<JSTaggedValue> dotAllResult = JSObject::GetProperty(thread, thisObj, dotAllKey).GetValue();
429 JSHandle<JSTaggedValue> unicodeResult = JSObject::GetProperty(thread, thisObj, unicodeKey).GetValue();
436 JSHandle<JSTaggedValue> stickyResult = JSObject::GetProperty(thread, thisObj, stickyKey).GetValue();
456 JSHandle<JSTaggedValue> thisObj = GetThis(argv);
458 return GetFlagsInternal(thread, thisObj, constructor, RegExpParser::FLAG_GLOBAL);
468 JSHandle<JSTaggedValue> thisObj = GetThis(argv);
470 return GetFlagsInternal(thread, thisObj, constructor, RegExpParser::FLAG_HASINDICES);
480 JSHandle<JSTaggedValue> thisObj = GetThis(argv);
482 return GetFlagsInternal(thread, thisObj, constructor, RegExpParser::FLAG_IGNORECASE);
492 JSHandle<JSTaggedValue> thisObj = GetThis(argv);
494 return GetFlagsInternal(thread, thisObj, constructor, RegExpParser::FLAG_MULTILINE);
503 JSHandle<JSTaggedValue> thisObj = GetThis(argv);
505 return GetFlagsInternal(thread, thisObj, constructor, RegExpParser::FLAG_DOTALL);
516 JSHandle<JSTaggedValue> thisObj = GetThis(argv);
520 if (!thisObj->IsECMAObject()) {
524 if (!thisObj->IsJSRegExp()) {
528 JSHandle<JSTaggedValue> objConstructor = JSTaggedValue::GetProperty(thread, thisObj, constructorKey).GetValue();
536 if (objRealm->GetRegExpPrototype() == thisObj && *objRealm == *ctorRealm) {
545 JSHandle<JSRegExp> regexpObj(thread, JSRegExp::Cast(thisObj->GetTaggedObject()));
561 JSHandle<JSTaggedValue> thisObj = GetThis(argv);
563 return GetFlagsInternal(thread, thisObj, constructor, RegExpParser::FLAG_STICKY);
573 JSHandle<JSTaggedValue> thisObj = GetThis(argv);
575 return GetFlagsInternal(thread, thisObj, constructor, RegExpParser::FLAG_UTF16);
594 JSHandle<JSTaggedValue> thisObj = GetThis(argv);
601 if (!thisObj->IsECMAObject()) {
605 bool isFastPath = IsFastRegExp(thread, thisObj);
606 return RegExpMatch(thread, thisObj, string, isFastPath);
744 JSHandle<JSTaggedValue> thisObj = GetThis(argv);
745 if (!thisObj->IsECMAObject()) {
753 bool isFastPath = IsFastRegExp(thread, thisObj);
754 return RegExpMatchAll(thread, thisObj, stringHandle, isFastPath);
985 JSHandle<JSTaggedValue> thisObj = GetThis(argv);
986 if (!thisObj->IsECMAObject()) {
993 return ReplaceInternal(thread, thisObj, string, inputReplaceValue);
997 JSHandle<JSTaggedValue> thisObj,
1024 bool isFastPath = IsFastRegExp(thread, thisObj);
1026 isGlobal = GetOriginalFlag(thread, thisObj, RegExpParser::FLAG_GLOBAL);
1027 fullUnicode = GetOriginalFlag(thread, thisObj, RegExpParser::FLAG_UTF16);
1029 SetLastIndex(thread, thisObj, JSTaggedValue(0), isFastPath);
1034 isGlobal = GetFlag(thread, thisObj, RegExpParser::FLAG_GLOBAL, isFastPath);
1039 fullUnicode = GetFlag(thread, thisObj, RegExpParser::FLAG_UTF16, isFastPath);
1042 SetLastIndex(thread, thisObj, JSTaggedValue(0), isFastPath);
1054 return RegExpReplaceFast(thread, thisObj, srcString, length);
1056 JSHandle<JSRegExp> regexpHandle(thisObj);
1069 uint32_t lastIndexInput = static_cast<uint32_t>(GetLastIndex(thread, thisObj, isFastPath));
1071 RegExpExecResultCache::REPLACE_TYPE, thisObj, JSTaggedValue(lastIndexInput),
1089 uint32_t lastIndexInput = static_cast<uint32_t>(GetLastIndex(thread, thisObj, isFastPath));
1091 RegExpExecResultCache::INTERMEDIATE_REPLACE_TYPE, thisObj,
1102 execResult.Update(RegExpExec(thread, thisObj, inputStr, useCache, true));
1134 uint32_t thisIndex = static_cast<uint32_t>(GetLastIndex(thread, thisObj, isFastPath));
1140 SetLastIndex(thread, thisObj, nextIndexHandle.GetTaggedValue(), isFastPath);
1146 RegExpExecResultCache::AddResultInCache(thread, cacheTable, thisObj, string,
1331 RegExpExecResultCache::AddResultInCache(thread, cacheTable, thisObj, string,
1347 JSHandle<JSTaggedValue> thisObj = GetThis(argv);
1354 if (!thisObj->IsECMAObject()) {
1358 return RegExpSearch(thread, thisObj, string);
1642 JSHandle<JSTaggedValue> thisObj = GetThis(argv);
1651 if (!thisObj->IsECMAObject()) {
1655 bool isFastPath = IsFastRegExp(thread, thisObj);
1656 return RegExpSplit(thread, thisObj, jsString, limit, isFastPath);