• Home
  • Raw
  • Download

Lines Matching full:thread

50         TestHelper::CreateEcmaVMWithScope(instance, thread, scope);  in SetUp()
60 JSThread *thread {nullptr}; member in panda::test::BuiltinsRegExpTest
63 JSTaggedValue CreateBuiltinsRegExpObjByPatternAndFlags(JSThread *thread, const JSHandle<EcmaString>… in CreateBuiltinsRegExpObjByPatternAndFlags() argument
66 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in CreateBuiltinsRegExpObjByPatternAndFlags()
68 JSHandle<JSObject> globalObject(thread, env->GetGlobalObject()); in CreateBuiltinsRegExpObjByPatternAndFlags()
71 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*regexp), 8… in CreateBuiltinsRegExpObjByPatternAndFlags()
77 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in CreateBuiltinsRegExpObjByPatternAndFlags()
80 TestHelper::TearDownFrame(thread, prev); in CreateBuiltinsRegExpObjByPatternAndFlags()
87 JSHandle<EcmaString> pattern = thread->GetEcmaVM()->GetFactory()->NewFromASCII("\\w+"); in HWTEST_F_L0()
88 JSHandle<EcmaString> flags = thread->GetEcmaVM()->GetFactory()->NewFromASCII("i"); in HWTEST_F_L0()
89 JSTaggedValue result = CreateBuiltinsRegExpObjByPatternAndFlags(thread, pattern, flags); in HWTEST_F_L0()
92 JSHandle<JSTaggedValue> regexpObject(thread, result); in HWTEST_F_L0()
93 ASSERT_TRUE(JSObject::IsRegExp(thread, regexpObject)); in HWTEST_F_L0()
95 JSHandle<JSRegExp> jsRegexp(thread, JSRegExp::Cast(regexpObject->GetTaggedObject())); in HWTEST_F_L0()
96 JSHandle<JSTaggedValue> originalSource(thread, jsRegexp->GetOriginalSource()); in HWTEST_F_L0()
98 …JSHandle<JSTaggedValue> originalFlags(thread, BuiltinsRegExp::FlagsBitsToString(thread, flagsBits)… in HWTEST_F_L0()
106 JSHandle<EcmaString> pattern = thread->GetEcmaVM()->GetFactory()->NewFromASCII("\\w+"); in HWTEST_F_L0()
107 JSHandle<EcmaString> flags = thread->GetEcmaVM()->GetFactory()->NewFromASCII("i"); in HWTEST_F_L0()
108 JSTaggedValue result1 = CreateBuiltinsRegExpObjByPatternAndFlags(thread, pattern, flags); in HWTEST_F_L0()
109 JSHandle<JSRegExp> value(thread, reinterpret_cast<JSRegExp *>(result1.GetRawData())); in HWTEST_F_L0()
111 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0()
113 JSHandle<JSObject> globalObject(thread, env->GetGlobalObject()); in HWTEST_F_L0()
115 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*regexp), 8… in HWTEST_F_L0()
121 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
124 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
127 JSHandle<JSTaggedValue> regexpObject(thread, result2); in HWTEST_F_L0()
128 ASSERT_TRUE(JSObject::IsRegExp(thread, regexpObject)); in HWTEST_F_L0()
130 JSHandle<JSRegExp> jsRegexp(thread, JSRegExp::Cast(regexpObject->GetTaggedObject())); in HWTEST_F_L0()
131 JSHandle<JSTaggedValue> originalSource(thread, jsRegexp->GetOriginalSource()); in HWTEST_F_L0()
133 …JSHandle<JSTaggedValue> originalFlags(thread, BuiltinsRegExp::FlagsBitsToString(thread, flagsBits)… in HWTEST_F_L0()
141 JSHandle<EcmaString> pattern1 = thread->GetEcmaVM()->GetFactory()->NewFromASCII("\\w+"); in HWTEST_F_L0()
142 JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromASCII("i"); in HWTEST_F_L0()
143 JSTaggedValue result1 = CreateBuiltinsRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
144 JSHandle<JSRegExp> value(thread, reinterpret_cast<JSRegExp *>(result1.GetRawData())); in HWTEST_F_L0()
146 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0()
148 JSHandle<JSObject> globalObject(thread, env->GetGlobalObject()); in HWTEST_F_L0()
149 JSHandle<EcmaString> flags2 = thread->GetEcmaVM()->GetFactory()->NewFromASCII("gi"); in HWTEST_F_L0()
151 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*regexp), 8… in HWTEST_F_L0()
157 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
162 JSHandle<JSTaggedValue> regexpObject(thread, result2); in HWTEST_F_L0()
163 ASSERT_TRUE(JSObject::IsRegExp(thread, regexpObject)); in HWTEST_F_L0()
165 JSHandle<JSRegExp> jsRegexp(thread, JSRegExp::Cast(regexpObject->GetTaggedObject())); in HWTEST_F_L0()
166 JSHandle<JSTaggedValue> originalSource(thread, jsRegexp->GetOriginalSource()); in HWTEST_F_L0()
168 …JSHandle<JSTaggedValue> originalFlags(thread, BuiltinsRegExp::FlagsBitsToString(thread, flagsBits)… in HWTEST_F_L0()
176 JSHandle<EcmaString> pattern1 = thread->GetEcmaVM()->GetFactory()->NewFromASCII(""); in HWTEST_F_L0()
177 JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromASCII("i"); in HWTEST_F_L0()
178 JSTaggedValue result1 = CreateBuiltinsRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
179 JSHandle<JSTaggedValue> result1Handle(thread, result1); in HWTEST_F_L0()
183 thread, thread->GetEcmaVM()->GetFactory()->NewFromASCII("source").GetTaggedValue()); in HWTEST_F_L0()
184 …JSHandle<JSTaggedValue> sourceResult(JSObject::GetProperty(thread, result1Handle, source).GetValue… in HWTEST_F_L0()
186 JSHandle<EcmaString> expect = thread->GetEcmaVM()->GetFactory()->NewFromASCII("(?:)"); in HWTEST_F_L0()
193 JSHandle<EcmaString> pattern1 = thread->GetEcmaVM()->GetFactory()->NewFromASCII("/w+"); in HWTEST_F_L0()
194 JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromASCII("i"); in HWTEST_F_L0()
195 JSTaggedValue result1 = CreateBuiltinsRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
196 JSHandle<JSTaggedValue> result1Handle(thread, result1); in HWTEST_F_L0()
199 JSHandle<JSTaggedValue> source(thread->GetEcmaVM()->GetFactory()->NewFromASCII("source")); in HWTEST_F_L0()
200 …JSHandle<JSTaggedValue> sourceResult(JSObject::GetProperty(thread, result1Handle, source).GetValue… in HWTEST_F_L0()
202 JSHandle<EcmaString> expect = thread->GetEcmaVM()->GetFactory()->NewFromASCII("\\/w+"); in HWTEST_F_L0()
209 JSHandle<EcmaString> pattern1 = thread->GetEcmaVM()->GetFactory()->NewFromASCII("\\w+"); in HWTEST_F_L0()
210 JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromASCII("gimuy"); in HWTEST_F_L0()
211 JSTaggedValue result1 = CreateBuiltinsRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
212 JSHandle<JSTaggedValue> result1Handle(thread, result1); in HWTEST_F_L0()
214 JSHandle<JSTaggedValue> global(thread->GetEcmaVM()->GetFactory()->NewFromASCII("global")); in HWTEST_F_L0()
216 … JSTaggedValue(JSObject::GetProperty(thread, result1Handle, global).GetValue().GetTaggedValue()); in HWTEST_F_L0()
219 … JSHandle<JSTaggedValue> ignoreCase(thread->GetEcmaVM()->GetFactory()->NewFromASCII("ignoreCase")); in HWTEST_F_L0()
221 …JSTaggedValue(JSObject::GetProperty(thread, result1Handle, ignoreCase).GetValue().GetTaggedValue()… in HWTEST_F_L0()
224 JSHandle<JSTaggedValue> multiline(thread->GetEcmaVM()->GetFactory()->NewFromASCII("multiline")); in HWTEST_F_L0()
226 …JSTaggedValue(JSObject::GetProperty(thread, result1Handle, multiline).GetValue().GetTaggedValue()); in HWTEST_F_L0()
229 JSHandle<JSTaggedValue> sticky(thread->GetEcmaVM()->GetFactory()->NewFromASCII("sticky")); in HWTEST_F_L0()
231 … JSTaggedValue(JSObject::GetProperty(thread, result1Handle, sticky).GetValue().GetTaggedValue()); in HWTEST_F_L0()
234 JSHandle<JSTaggedValue> unicode(thread->GetEcmaVM()->GetFactory()->NewFromASCII("unicode")); in HWTEST_F_L0()
236 … JSTaggedValue(JSObject::GetProperty(thread, result1Handle, unicode).GetValue().GetTaggedValue()); in HWTEST_F_L0()
243 JSHandle<EcmaString> pattern1 = thread->GetEcmaVM()->GetFactory()->NewFromASCII("\\w+"); in HWTEST_F_L0()
244 JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromASCII("imuyg"); in HWTEST_F_L0()
245 JSTaggedValue result1 = CreateBuiltinsRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
246 JSHandle<JSTaggedValue> result1Handle(thread, result1); in HWTEST_F_L0()
249 JSHandle<JSTaggedValue> flags(thread->GetEcmaVM()->GetFactory()->NewFromASCII("flags")); in HWTEST_F_L0()
250 …JSHandle<JSTaggedValue> flagsResult(JSObject::GetProperty(thread, result1Handle, flags).GetValue()… in HWTEST_F_L0()
252 JSHandle<EcmaString> expectResult = thread->GetEcmaVM()->GetFactory()->NewFromASCII("gimuy"); in HWTEST_F_L0()
259 JSHandle<EcmaString> pattern1 = thread->GetEcmaVM()->GetFactory()->NewFromASCII("\\w+"); in HWTEST_F_L0()
260 JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromASCII("imuyg"); in HWTEST_F_L0()
261 JSTaggedValue result1 = CreateBuiltinsRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
262 JSHandle<JSRegExp> value(thread, reinterpret_cast<JSRegExp *>(result1.GetRawData())); in HWTEST_F_L0()
264 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
268 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
272 JSHandle<JSTaggedValue> toStringResultHandle(thread, toStringResult); in HWTEST_F_L0()
273 …JSHandle<EcmaString> expectResult = thread->GetEcmaVM()->GetFactory()->NewFromASCII("/\\w+/gimuy"); in HWTEST_F_L0()
282 thread->GetEcmaVM()->GetFactory()->NewFromASCII("quick\\s(brown).+?(jumps)"); in HWTEST_F_L0()
283 JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromASCII("ig"); in HWTEST_F_L0()
284 JSTaggedValue result1 = CreateBuiltinsRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
285 JSHandle<JSRegExp> value(thread, reinterpret_cast<JSRegExp *>(result1.GetRawData())); in HWTEST_F_L0()
288thread->GetEcmaVM()->GetFactory()->NewFromASCII("The Quick Brown Fox Jumps Over The Lazy Dog"); in HWTEST_F_L0()
289 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
294 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
298 JSHandle<JSTaggedValue> execResult(thread, results); in HWTEST_F_L0()
300 thread->GetEcmaVM()->GetFactory()->NewFromASCII("Quick Brown Fox Jumps"); in HWTEST_F_L0()
301 JSHandle<EcmaString> resultOne = thread->GetEcmaVM()->GetFactory()->NewFromASCII("Brown"); in HWTEST_F_L0()
302 JSHandle<EcmaString> resultTwo = thread->GetEcmaVM()->GetFactory()->NewFromASCII("Jumps"); in HWTEST_F_L0()
304 JSHandle<JSTaggedValue> index(thread->GetEcmaVM()->GetFactory()->NewFromASCII("index")); in HWTEST_F_L0()
305 … JSHandle<JSTaggedValue> indexHandle(JSObject::GetProperty(thread, execResult, index).GetValue()); in HWTEST_F_L0()
306 uint32_t resultIndex = JSTaggedValue::ToUint32(thread, indexHandle); in HWTEST_F_L0()
309 JSHandle<JSTaggedValue> input(thread->GetEcmaVM()->GetFactory()->NewFromASCII("input")); in HWTEST_F_L0()
311 … JSHandle<JSTaggedValue> inputHandle(JSObject::GetProperty(thread, execResult, input).GetValue()); in HWTEST_F_L0()
312 JSHandle<EcmaString> outputInput = JSTaggedValue::ToString(thread, inputHandle); in HWTEST_F_L0()
315 JSHandle<JSTaggedValue> zero(thread->GetEcmaVM()->GetFactory()->NewFromASCII("0")); in HWTEST_F_L0()
316 JSHandle<JSTaggedValue> zeroHandle(JSObject::GetProperty(thread, execResult, zero).GetValue()); in HWTEST_F_L0()
317 JSHandle<EcmaString> outputZero = JSTaggedValue::ToString(thread, zeroHandle); in HWTEST_F_L0()
320 JSHandle<JSTaggedValue> first(thread->GetEcmaVM()->GetFactory()->NewFromASCII("1")); in HWTEST_F_L0()
321 JSHandle<JSTaggedValue> oneHandle(JSObject::GetProperty(thread, execResult, first).GetValue()); in HWTEST_F_L0()
322 JSHandle<EcmaString> outputOne = JSTaggedValue::ToString(thread, oneHandle); in HWTEST_F_L0()
325 JSHandle<JSTaggedValue> second(thread->GetEcmaVM()->GetFactory()->NewFromASCII("2")); in HWTEST_F_L0()
326 JSHandle<JSTaggedValue> twoHandle(JSObject::GetProperty(thread, execResult, second).GetValue()); in HWTEST_F_L0()
327 JSHandle<EcmaString> outputTwo = JSTaggedValue::ToString(thread, twoHandle); in HWTEST_F_L0()
331 …JSHandle<JSTaggedValue> lastIndexHandle(thread->GetEcmaVM()->GetFactory()->NewFromASCII("lastIndex… in HWTEST_F_L0()
332 …JSHandle<JSTaggedValue> lastIndexObj(JSObject::GetProperty(thread, regexp, lastIndexHandle).GetVal… in HWTEST_F_L0()
341 thread->GetEcmaVM()->GetFactory()->NewFromASCII("((1)|(12))((3)|(23))"); in HWTEST_F_L0()
342 JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromASCII("ig"); in HWTEST_F_L0()
343 JSTaggedValue result1 = CreateBuiltinsRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
344 JSHandle<JSRegExp> value(thread, reinterpret_cast<JSRegExp *>(result1.GetRawData())); in HWTEST_F_L0()
346 JSHandle<EcmaString> inputString = thread->GetEcmaVM()->GetFactory()->NewFromASCII("123"); in HWTEST_F_L0()
347 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
352 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
356 JSHandle<JSTaggedValue> execResult(thread, results); in HWTEST_F_L0()
357 JSHandle<EcmaString> resultZero = thread->GetEcmaVM()->GetFactory()->NewFromASCII("123"); in HWTEST_F_L0()
358 JSHandle<EcmaString> resultOne = thread->GetEcmaVM()->GetFactory()->NewFromASCII("1"); in HWTEST_F_L0()
359 JSHandle<EcmaString> resultTwo = thread->GetEcmaVM()->GetFactory()->NewFromASCII("1"); in HWTEST_F_L0()
360 JSHandle<EcmaString> resultFour = thread->GetEcmaVM()->GetFactory()->NewFromASCII("23"); in HWTEST_F_L0()
361 JSHandle<EcmaString> resultSix = thread->GetEcmaVM()->GetFactory()->NewFromASCII("23"); in HWTEST_F_L0()
363 JSHandle<JSTaggedValue> index(thread->GetEcmaVM()->GetFactory()->NewFromASCII("index")); in HWTEST_F_L0()
364 … JSHandle<JSTaggedValue> indexHandle(JSObject::GetProperty(thread, execResult, index).GetValue()); in HWTEST_F_L0()
365 uint32_t resultIndex = JSTaggedValue::ToUint32(thread, indexHandle); in HWTEST_F_L0()
368 JSHandle<JSTaggedValue> input(thread->GetEcmaVM()->GetFactory()->NewFromASCII("input")); in HWTEST_F_L0()
369 … JSHandle<JSTaggedValue> inputHandle(JSObject::GetProperty(thread, execResult, input).GetValue()); in HWTEST_F_L0()
370 JSHandle<EcmaString> outputInput = JSTaggedValue::ToString(thread, inputHandle); in HWTEST_F_L0()
373 JSHandle<JSTaggedValue> zero(thread->GetEcmaVM()->GetFactory()->NewFromASCII("0")); in HWTEST_F_L0()
374 JSHandle<JSTaggedValue> zeroHandle(JSObject::GetProperty(thread, execResult, zero).GetValue()); in HWTEST_F_L0()
375 JSHandle<EcmaString> outputZero = JSTaggedValue::ToString(thread, zeroHandle); in HWTEST_F_L0()
378 JSHandle<JSTaggedValue> first(thread->GetEcmaVM()->GetFactory()->NewFromASCII("1")); in HWTEST_F_L0()
379 JSHandle<JSTaggedValue> oneHandle(JSObject::GetProperty(thread, execResult, first).GetValue()); in HWTEST_F_L0()
380 JSHandle<EcmaString> outputOne = JSTaggedValue::ToString(thread, oneHandle); in HWTEST_F_L0()
383 JSHandle<JSTaggedValue> second(thread->GetEcmaVM()->GetFactory()->NewFromASCII("2")); in HWTEST_F_L0()
384 JSHandle<JSTaggedValue> twoHandle(JSObject::GetProperty(thread, execResult, second).GetValue()); in HWTEST_F_L0()
385 JSHandle<EcmaString> outputTwo = JSTaggedValue::ToString(thread, twoHandle); in HWTEST_F_L0()
389 …JSHandle<JSTaggedValue> lastIndexHandle(thread->GetEcmaVM()->GetFactory()->NewFromASCII("lastIndex… in HWTEST_F_L0()
390 …JSHandle<JSTaggedValue> lastIndexObj(JSObject::GetProperty(thread, regexp, lastIndexHandle).GetVal… in HWTEST_F_L0()
394 JSHandle<JSTaggedValue> third(thread->GetEcmaVM()->GetFactory()->NewFromASCII("3")); in HWTEST_F_L0()
395 … JSHandle<JSTaggedValue> thirdHandle(JSObject::GetProperty(thread, execResult, third).GetValue()); in HWTEST_F_L0()
398 JSHandle<JSTaggedValue> four(thread->GetEcmaVM()->GetFactory()->NewFromASCII("4")); in HWTEST_F_L0()
399 JSHandle<JSTaggedValue> fourHandle(JSObject::GetProperty(thread, execResult, four).GetValue()); in HWTEST_F_L0()
400 JSHandle<EcmaString> outputFour = JSTaggedValue::ToString(thread, fourHandle); in HWTEST_F_L0()
403 JSHandle<JSTaggedValue> five(thread->GetEcmaVM()->GetFactory()->NewFromASCII("5")); in HWTEST_F_L0()
404 JSHandle<JSTaggedValue> fiveHandle(JSObject::GetProperty(thread, execResult, five).GetValue()); in HWTEST_F_L0()
407 JSHandle<JSTaggedValue> six(thread->GetEcmaVM()->GetFactory()->NewFromASCII("6")); in HWTEST_F_L0()
408 JSHandle<JSTaggedValue> sixHandle(JSObject::GetProperty(thread, execResult, six).GetValue()); in HWTEST_F_L0()
409 JSHandle<EcmaString> outputSix = JSTaggedValue::ToString(thread, sixHandle); in HWTEST_F_L0()
417 thread->GetEcmaVM()->GetFactory()->NewFromASCII("quick\\s(brown).+?(jumps)"); in HWTEST_F_L0()
418 JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromASCII("iug"); in HWTEST_F_L0()
419 JSTaggedValue result1 = CreateBuiltinsRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
420 JSHandle<JSRegExp> value(thread, reinterpret_cast<JSRegExp *>(result1.GetRawData())); in HWTEST_F_L0()
423thread->GetEcmaVM()->GetFactory()->NewFromASCII("The Quick Brown Fox Jumps Over The Lazy Dog"); in HWTEST_F_L0()
424 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
429 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
433 JSHandle<JSTaggedValue> matchResult(thread, matchResults); in HWTEST_F_L0()
434 JSHandle<JSTaggedValue> zero(thread->GetEcmaVM()->GetFactory()->NewFromASCII("0")); in HWTEST_F_L0()
436 thread->GetEcmaVM()->GetFactory()->NewFromASCII("Quick Brown Fox Jumps"); in HWTEST_F_L0()
437 JSHandle<JSTaggedValue> zeroHandle(JSObject::GetProperty(thread, matchResult, zero).GetValue()); in HWTEST_F_L0()
438 JSHandle<EcmaString> outputZero = JSTaggedValue::ToString(thread, zeroHandle); in HWTEST_F_L0()
446 thread->GetEcmaVM()->GetFactory()->NewFromASCII("quick\\s(brown).+?(jumps)"); in HWTEST_F_L0()
447 JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromASCII("iug"); in HWTEST_F_L0()
448 JSTaggedValue result1 = CreateBuiltinsRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
449 JSHandle<JSRegExp> value(thread, reinterpret_cast<JSRegExp *>(result1.GetRawData())); in HWTEST_F_L0()
452thread->GetEcmaVM()->GetFactory()->NewFromASCII("The Quick Brown Fox Jumps Over The Lazy Dog"); in HWTEST_F_L0()
453 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
458 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
468 thread->GetEcmaVM()->GetFactory()->NewFromASCII("quick\\s(brown).+?(jumps)"); in HWTEST_F_L0()
469 JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromASCII("iug"); in HWTEST_F_L0()
470 JSTaggedValue result1 = CreateBuiltinsRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
471 JSHandle<JSRegExp> value(thread, reinterpret_cast<JSRegExp *>(result1.GetRawData())); in HWTEST_F_L0()
474thread->GetEcmaVM()->GetFactory()->NewFromASCII("The Quick Brown Fox Jumps Over The Lazy Dog"); in HWTEST_F_L0()
475 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
480 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
489 JSHandle<EcmaString> pattern1 = thread->GetEcmaVM()->GetFactory()->NewFromASCII("-"); in HWTEST_F_L0()
490 JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromASCII("iug"); in HWTEST_F_L0()
491 JSTaggedValue result1 = CreateBuiltinsRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
492 JSHandle<JSRegExp> value(thread, reinterpret_cast<JSRegExp *>(result1.GetRawData())); in HWTEST_F_L0()
494 JSHandle<EcmaString> inputString = thread->GetEcmaVM()->GetFactory()->NewFromASCII(""); in HWTEST_F_L0()
496 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
502 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
505 JSHandle<JSTaggedValue> splitResult(thread, splitResults); in HWTEST_F_L0()
507 JSHandle<JSTaggedValue> zero(thread->GetEcmaVM()->GetFactory()->NewFromASCII("0")); in HWTEST_F_L0()
508 JSHandle<JSTaggedValue> zeroHandle(JSObject::GetProperty(thread, splitResult, zero).GetValue()); in HWTEST_F_L0()
509 JSHandle<EcmaString> outputZero = JSTaggedValue::ToString(thread, zeroHandle); in HWTEST_F_L0()
517 JSHandle<EcmaString> pattern1 = thread->GetEcmaVM()->GetFactory()->NewFromASCII("-"); in HWTEST_F_L0()
518 JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromASCII("iug"); in HWTEST_F_L0()
519 JSTaggedValue result1 = CreateBuiltinsRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
520 JSHandle<JSRegExp> value(thread, reinterpret_cast<JSRegExp *>(result1.GetRawData())); in HWTEST_F_L0()
522 JSHandle<EcmaString> inputString = thread->GetEcmaVM()->GetFactory()->NewFromASCII("a-b-c"); in HWTEST_F_L0()
524 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
530 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
533 JSHandle<JSTaggedValue> splitResult(thread, splitResults); in HWTEST_F_L0()
534 JSHandle<EcmaString> resultZero = thread->GetEcmaVM()->GetFactory()->NewFromASCII("a"); in HWTEST_F_L0()
535 JSHandle<EcmaString> resultOne = thread->GetEcmaVM()->GetFactory()->NewFromASCII("b"); in HWTEST_F_L0()
536 JSHandle<EcmaString> resultTwo = thread->GetEcmaVM()->GetFactory()->NewFromASCII("c"); in HWTEST_F_L0()
538 JSHandle<JSTaggedValue> zero(thread->GetEcmaVM()->GetFactory()->NewFromASCII("0")); in HWTEST_F_L0()
539 JSHandle<JSTaggedValue> zeroHandle(JSObject::GetProperty(thread, splitResult, zero).GetValue()); in HWTEST_F_L0()
540 JSHandle<EcmaString> outputZero = JSTaggedValue::ToString(thread, zeroHandle); in HWTEST_F_L0()
543 JSHandle<JSTaggedValue> first(thread->GetEcmaVM()->GetFactory()->NewFromASCII("1")); in HWTEST_F_L0()
544 JSHandle<JSTaggedValue> oneHandle(JSObject::GetProperty(thread, splitResult, first).GetValue()); in HWTEST_F_L0()
545 JSHandle<EcmaString> outputOne = JSTaggedValue::ToString(thread, oneHandle); in HWTEST_F_L0()
548 JSHandle<JSTaggedValue> second(thread->GetEcmaVM()->GetFactory()->NewFromASCII("2")); in HWTEST_F_L0()
549 … JSHandle<JSTaggedValue> twoHandle(JSObject::GetProperty(thread, splitResult, second).GetValue()); in HWTEST_F_L0()
550 JSHandle<EcmaString> outputTwo = JSTaggedValue::ToString(thread, twoHandle); in HWTEST_F_L0()
557 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0()
564 …JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(newTarget), speciesSymbol).GetValue().GetTag… in HWTEST_F_L0()
572 thread->GetEcmaVM()->GetFactory()->NewFromASCII("quick\\s(brown).+?(jumps)"); in HWTEST_F_L0()
573 JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromASCII("iug"); in HWTEST_F_L0()
574 JSTaggedValue result1 = CreateBuiltinsRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
575 JSHandle<JSRegExp> value(thread, reinterpret_cast<JSRegExp *>(result1.GetRawData())); in HWTEST_F_L0()
578thread->GetEcmaVM()->GetFactory()->NewFromASCII("The Quick Brown Fox Jumps Over The Lazy Dog"); in HWTEST_F_L0()
580 thread->GetEcmaVM()->GetFactory()->NewFromASCII("$&a $` $\' $2 $01 $$1 $21 $32 a"); in HWTEST_F_L0()
581 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
587 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
590 JSHandle<JSTaggedValue> replaceResult(thread, results); in HWTEST_F_L0()
591 JSHandle<EcmaString> resultZero = thread->GetEcmaVM()->GetFactory()->NewFromASCII( in HWTEST_F_L0()
599 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
602 JSTaggedValue result1 = CreateBuiltinsRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
603 JSHandle<JSRegExp> value(thread, reinterpret_cast<JSRegExp *>(result1.GetRawData())); in HWTEST_F_L0()
607 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
613 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
616 JSHandle<JSTaggedValue> replaceResult(thread, results); in HWTEST_F_L0()
624 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
627 JSTaggedValue result1 = CreateBuiltinsRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
628 JSHandle<JSRegExp> value(thread, reinterpret_cast<JSRegExp *>(result1.GetRawData())); in HWTEST_F_L0()
632 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
638 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
641 JSHandle<JSTaggedValue> replaceResult(thread, results); in HWTEST_F_L0()
648 RegExpParserCache *regExpParserCache = thread->GetEcmaVM()->GetRegExpParserCache(); in HWTEST_F_L0()
649 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()