• Home
  • Raw
  • Download

Lines Matching full:thread

52         TestHelper::CreateEcmaVMWithScope(instance, thread, scope);  in SetUp()
62 JSThread *thread {nullptr}; member in panda::test::BuiltinsRegExpTest
65 JSTaggedValue CreateRegExpObjByPatternAndFlags(JSThread *thread, const JSHandle<EcmaString> &patter… in CreateRegExpObjByPatternAndFlags() argument
68 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in CreateRegExpObjByPatternAndFlags()
70 JSHandle<JSObject> globalObject(thread, env->GetGlobalObject()); in CreateRegExpObjByPatternAndFlags()
73 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*regexp), 8… in CreateRegExpObjByPatternAndFlags()
79 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo.get()); in CreateRegExpObjByPatternAndFlags()
88 …JSHandle<EcmaString> pattern = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("\\w+… in HWTEST_F_L0()
89 JSHandle<EcmaString> flags = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("i"); in HWTEST_F_L0()
90 JSTaggedValue result = CreateRegExpObjByPatternAndFlags(thread, pattern, flags); in HWTEST_F_L0()
93 JSHandle<JSTaggedValue> regexpObject(thread, result); in HWTEST_F_L0()
94 ASSERT_TRUE(JSObject::IsRegExp(thread, regexpObject)); in HWTEST_F_L0()
96 JSHandle<JSRegExp> jsRegexp(thread, JSRegExp::Cast(regexpObject->GetTaggedObject())); in HWTEST_F_L0()
97 JSHandle<JSTaggedValue> originalSource(thread, jsRegexp->GetOriginalSource()); in HWTEST_F_L0()
99 …JSHandle<JSTaggedValue> originalFlags(thread, BuiltinsRegExp::FlagsBitsToString(thread, flagsBits)… in HWTEST_F_L0()
107 …JSHandle<EcmaString> pattern = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("\\w+… in HWTEST_F_L0()
108 JSHandle<EcmaString> flags = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("i"); in HWTEST_F_L0()
109 JSTaggedValue result1 = CreateRegExpObjByPatternAndFlags(thread, pattern, flags); in HWTEST_F_L0()
110 JSHandle<JSRegExp> value(thread, reinterpret_cast<JSRegExp *>(result1.GetRawData())); in HWTEST_F_L0()
112 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0()
114 JSHandle<JSObject> globalObject(thread, env->GetGlobalObject()); in HWTEST_F_L0()
116 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*regexp), 8… in HWTEST_F_L0()
122 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo.get()); 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()->NewFromCanBeCompressString("\\w… in HWTEST_F_L0()
142 … JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("i"); in HWTEST_F_L0()
143 JSTaggedValue result1 = CreateRegExpObjByPatternAndFlags(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()->NewFromCanBeCompressString("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.get()); 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()->NewFromCanBeCompressString(""); in HWTEST_F_L0()
177 … JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("i"); in HWTEST_F_L0()
178 JSTaggedValue result1 = CreateRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
179 JSHandle<JSTaggedValue> result1Handle(thread, result1); in HWTEST_F_L0()
183thread, thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("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()->NewFromCanBeCompressString("(?:)"… in HWTEST_F_L0()
193 …JSHandle<EcmaString> pattern1 = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("/w+… in HWTEST_F_L0()
194 … JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("i"); in HWTEST_F_L0()
195 JSTaggedValue result1 = CreateRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
196 JSHandle<JSTaggedValue> result1Handle(thread, result1); in HWTEST_F_L0()
199 …JSHandle<JSTaggedValue> source(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("sour… 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()->NewFromCanBeCompressString("\\/w+… in HWTEST_F_L0()
209 …JSHandle<EcmaString> pattern1 = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("\\w… in HWTEST_F_L0()
210 …JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("gimuy… in HWTEST_F_L0()
211 JSTaggedValue result1 = CreateRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
212 JSHandle<JSTaggedValue> result1Handle(thread, result1); in HWTEST_F_L0()
214 …JSHandle<JSTaggedValue> global(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("glob… in HWTEST_F_L0()
216 … JSTaggedValue(JSObject::GetProperty(thread, result1Handle, global).GetValue().GetTaggedValue()); in HWTEST_F_L0()
219 …JSHandle<JSTaggedValue> ignoreCase(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("… in HWTEST_F_L0()
221 …JSTaggedValue(JSObject::GetProperty(thread, result1Handle, ignoreCase).GetValue().GetTaggedValue()… in HWTEST_F_L0()
224 …JSHandle<JSTaggedValue> multiline(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("m… in HWTEST_F_L0()
226 …JSTaggedValue(JSObject::GetProperty(thread, result1Handle, multiline).GetValue().GetTaggedValue()); in HWTEST_F_L0()
229 …JSHandle<JSTaggedValue> sticky(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("stic… in HWTEST_F_L0()
231 … JSTaggedValue(JSObject::GetProperty(thread, result1Handle, sticky).GetValue().GetTaggedValue()); in HWTEST_F_L0()
234 …JSHandle<JSTaggedValue> unicode(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("uni… in HWTEST_F_L0()
236 … JSTaggedValue(JSObject::GetProperty(thread, result1Handle, unicode).GetValue().GetTaggedValue()); in HWTEST_F_L0()
243 …JSHandle<EcmaString> pattern1 = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("\\w… in HWTEST_F_L0()
244 …JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("imuyg… in HWTEST_F_L0()
245 JSTaggedValue result1 = CreateRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
246 JSHandle<JSTaggedValue> result1Handle(thread, result1); in HWTEST_F_L0()
249 …JSHandle<JSTaggedValue> flags(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("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()->NewFromCanBeCompressString(… in HWTEST_F_L0()
259 …JSHandle<EcmaString> pattern1 = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("\\w… in HWTEST_F_L0()
260 …JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("imuyg… in HWTEST_F_L0()
261 JSTaggedValue result1 = CreateRegExpObjByPatternAndFlags(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.get()); in HWTEST_F_L0()
272 JSHandle<JSTaggedValue> toStringResultHandle(thread, toStringResult); in HWTEST_F_L0()
273 …JSHandle<EcmaString> expectResult = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(… in HWTEST_F_L0()
281 thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("quick\\s(brown).+?(jumps)"); in HWTEST_F_L0()
282 … JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("ig"); in HWTEST_F_L0()
283 JSTaggedValue result1 = CreateRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
284 JSHandle<JSRegExp> value(thread, reinterpret_cast<JSRegExp *>(result1.GetRawData())); in HWTEST_F_L0()
287thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("The Quick Brown Fox Jumps Over The … in HWTEST_F_L0()
288 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
293 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo.get()); in HWTEST_F_L0()
297 JSHandle<JSTaggedValue> execResult(thread, results); in HWTEST_F_L0()
299 thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("Quick Brown Fox Jumps"); in HWTEST_F_L0()
300 …JSHandle<EcmaString> resultOne = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("Br… in HWTEST_F_L0()
301 …JSHandle<EcmaString> resultTwo = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("Ju… in HWTEST_F_L0()
303 …JSHandle<JSTaggedValue> index(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("index… in HWTEST_F_L0()
304 … JSHandle<JSTaggedValue> indexHandle(JSObject::GetProperty(thread, execResult, index).GetValue()); in HWTEST_F_L0()
305 uint32_t resultIndex = JSTaggedValue::ToUint32(thread, indexHandle); in HWTEST_F_L0()
308 …JSHandle<JSTaggedValue> input(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("input… in HWTEST_F_L0()
310 … JSHandle<JSTaggedValue> inputHandle(JSObject::GetProperty(thread, execResult, input).GetValue()); in HWTEST_F_L0()
311 JSHandle<EcmaString> outputInput = JSTaggedValue::ToString(thread, inputHandle); in HWTEST_F_L0()
314 … JSHandle<JSTaggedValue> zero(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("0")); in HWTEST_F_L0()
315 JSHandle<JSTaggedValue> zeroHandle(JSObject::GetProperty(thread, execResult, zero).GetValue()); in HWTEST_F_L0()
316 JSHandle<EcmaString> outputZero = JSTaggedValue::ToString(thread, zeroHandle); in HWTEST_F_L0()
319 … JSHandle<JSTaggedValue> first(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("1")); in HWTEST_F_L0()
320 JSHandle<JSTaggedValue> oneHandle(JSObject::GetProperty(thread, execResult, first).GetValue()); in HWTEST_F_L0()
321 JSHandle<EcmaString> outputOne = JSTaggedValue::ToString(thread, oneHandle); in HWTEST_F_L0()
324 …JSHandle<JSTaggedValue> second(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("2")); in HWTEST_F_L0()
325 JSHandle<JSTaggedValue> twoHandle(JSObject::GetProperty(thread, execResult, second).GetValue()); in HWTEST_F_L0()
326 JSHandle<EcmaString> outputTwo = JSTaggedValue::ToString(thread, twoHandle); in HWTEST_F_L0()
330 …JSHandle<JSTaggedValue> lastIndexHandle(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressStr… in HWTEST_F_L0()
331 …JSHandle<JSTaggedValue> lastIndexObj(JSObject::GetProperty(thread, regexp, lastIndexHandle).GetVal… in HWTEST_F_L0()
340 thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("((1)|(12))((3)|(23))"); in HWTEST_F_L0()
341 … JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("ig"); in HWTEST_F_L0()
342 JSTaggedValue result1 = CreateRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
343 JSHandle<JSRegExp> value(thread, reinterpret_cast<JSRegExp *>(result1.GetRawData())); in HWTEST_F_L0()
345 …JSHandle<EcmaString> inputString = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("… in HWTEST_F_L0()
346 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
351 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo.get()); in HWTEST_F_L0()
355 JSHandle<JSTaggedValue> execResult(thread, results); in HWTEST_F_L0()
356 …JSHandle<EcmaString> resultZero = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("1… in HWTEST_F_L0()
357 …JSHandle<EcmaString> resultOne = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("1"… in HWTEST_F_L0()
358 …JSHandle<EcmaString> resultTwo = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("1"… in HWTEST_F_L0()
359 …JSHandle<EcmaString> resultFour = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("2… in HWTEST_F_L0()
360 …JSHandle<EcmaString> resultSix = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("23… in HWTEST_F_L0()
362 …JSHandle<JSTaggedValue> index(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("index… in HWTEST_F_L0()
363 … JSHandle<JSTaggedValue> indexHandle(JSObject::GetProperty(thread, execResult, index).GetValue()); in HWTEST_F_L0()
364 uint32_t resultIndex = JSTaggedValue::ToUint32(thread, indexHandle); in HWTEST_F_L0()
367 …JSHandle<JSTaggedValue> input(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("input… in HWTEST_F_L0()
368 … JSHandle<JSTaggedValue> inputHandle(JSObject::GetProperty(thread, execResult, input).GetValue()); in HWTEST_F_L0()
369 JSHandle<EcmaString> outputInput = JSTaggedValue::ToString(thread, inputHandle); in HWTEST_F_L0()
372 … JSHandle<JSTaggedValue> zero(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("0")); in HWTEST_F_L0()
373 JSHandle<JSTaggedValue> zeroHandle(JSObject::GetProperty(thread, execResult, zero).GetValue()); in HWTEST_F_L0()
374 JSHandle<EcmaString> outputZero = JSTaggedValue::ToString(thread, zeroHandle); in HWTEST_F_L0()
377 … JSHandle<JSTaggedValue> first(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("1")); in HWTEST_F_L0()
378 JSHandle<JSTaggedValue> oneHandle(JSObject::GetProperty(thread, execResult, first).GetValue()); in HWTEST_F_L0()
379 JSHandle<EcmaString> outputOne = JSTaggedValue::ToString(thread, oneHandle); in HWTEST_F_L0()
382 …JSHandle<JSTaggedValue> second(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("2")); in HWTEST_F_L0()
383 JSHandle<JSTaggedValue> twoHandle(JSObject::GetProperty(thread, execResult, second).GetValue()); in HWTEST_F_L0()
384 JSHandle<EcmaString> outputTwo = JSTaggedValue::ToString(thread, twoHandle); in HWTEST_F_L0()
388 …JSHandle<JSTaggedValue> lastIndexHandle(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressStr… in HWTEST_F_L0()
389 …JSHandle<JSTaggedValue> lastIndexObj(JSObject::GetProperty(thread, regexp, lastIndexHandle).GetVal… in HWTEST_F_L0()
393 … JSHandle<JSTaggedValue> third(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("3")); in HWTEST_F_L0()
394 … JSHandle<JSTaggedValue> thirdHandle(JSObject::GetProperty(thread, execResult, third).GetValue()); in HWTEST_F_L0()
397 … JSHandle<JSTaggedValue> four(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("4")); in HWTEST_F_L0()
398 JSHandle<JSTaggedValue> fourHandle(JSObject::GetProperty(thread, execResult, four).GetValue()); in HWTEST_F_L0()
399 JSHandle<EcmaString> outputFour = JSTaggedValue::ToString(thread, fourHandle); in HWTEST_F_L0()
402 … JSHandle<JSTaggedValue> five(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("5")); in HWTEST_F_L0()
403 JSHandle<JSTaggedValue> fiveHandle(JSObject::GetProperty(thread, execResult, five).GetValue()); in HWTEST_F_L0()
406 JSHandle<JSTaggedValue> six(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("6")); in HWTEST_F_L0()
407 JSHandle<JSTaggedValue> sixHandle(JSObject::GetProperty(thread, execResult, six).GetValue()); in HWTEST_F_L0()
408 JSHandle<EcmaString> outputSix = JSTaggedValue::ToString(thread, sixHandle); in HWTEST_F_L0()
416 thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("quick\\s(brown).+?(jumps)"); in HWTEST_F_L0()
417 …JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("iug"); in HWTEST_F_L0()
418 JSTaggedValue result1 = CreateRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
419 JSHandle<JSRegExp> value(thread, reinterpret_cast<JSRegExp *>(result1.GetRawData())); in HWTEST_F_L0()
422thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("The Quick Brown Fox Jumps Over The … in HWTEST_F_L0()
423 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
428 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo.get()); in HWTEST_F_L0()
432 JSHandle<JSTaggedValue> matchResult(thread, matchResults); in HWTEST_F_L0()
433 … JSHandle<JSTaggedValue> zero(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("0")); in HWTEST_F_L0()
435 thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("Quick Brown Fox Jumps"); in HWTEST_F_L0()
436 JSHandle<JSTaggedValue> zeroHandle(JSObject::GetProperty(thread, matchResult, zero).GetValue()); in HWTEST_F_L0()
437 JSHandle<EcmaString> outputZero = JSTaggedValue::ToString(thread, zeroHandle); in HWTEST_F_L0()
445 thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("quick\\s(brown).+?(jumps)"); in HWTEST_F_L0()
446 …JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("iug"); in HWTEST_F_L0()
447 JSTaggedValue result1 = CreateRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
448 JSHandle<JSRegExp> value(thread, reinterpret_cast<JSRegExp *>(result1.GetRawData())); in HWTEST_F_L0()
451thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("The Quick Brown Fox Jumps Over The … in HWTEST_F_L0()
452 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
457 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo.get()); in HWTEST_F_L0()
467 thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("quick\\s(brown).+?(jumps)"); in HWTEST_F_L0()
468 …JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("iug"); in HWTEST_F_L0()
469 JSTaggedValue result1 = CreateRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
470 JSHandle<JSRegExp> value(thread, reinterpret_cast<JSRegExp *>(result1.GetRawData())); in HWTEST_F_L0()
473thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("The Quick Brown Fox Jumps Over The … in HWTEST_F_L0()
474 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
479 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo.get()); in HWTEST_F_L0()
488 …JSHandle<EcmaString> pattern1 = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("-"); in HWTEST_F_L0()
489 …JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("iug"); in HWTEST_F_L0()
490 JSTaggedValue result1 = CreateRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
491 JSHandle<JSRegExp> value(thread, reinterpret_cast<JSRegExp *>(result1.GetRawData())); in HWTEST_F_L0()
493 …JSHandle<EcmaString> inputString = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("… in HWTEST_F_L0()
495 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
501 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo.get()); in HWTEST_F_L0()
504 JSHandle<JSTaggedValue> splitResult(thread, splitResults); in HWTEST_F_L0()
506 … JSHandle<JSTaggedValue> zero(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("0")); in HWTEST_F_L0()
507 JSHandle<JSTaggedValue> zeroHandle(JSObject::GetProperty(thread, splitResult, zero).GetValue()); in HWTEST_F_L0()
508 JSHandle<EcmaString> outputZero = JSTaggedValue::ToString(thread, zeroHandle); in HWTEST_F_L0()
516 …JSHandle<EcmaString> pattern1 = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("-"); in HWTEST_F_L0()
517 …JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("iug"); in HWTEST_F_L0()
518 JSTaggedValue result1 = CreateRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
519 JSHandle<JSRegExp> value(thread, reinterpret_cast<JSRegExp *>(result1.GetRawData())); in HWTEST_F_L0()
521 …JSHandle<EcmaString> inputString = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("… in HWTEST_F_L0()
523 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
529 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo.get()); in HWTEST_F_L0()
532 JSHandle<JSTaggedValue> splitResult(thread, splitResults); in HWTEST_F_L0()
533 …JSHandle<EcmaString> resultZero = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("a… in HWTEST_F_L0()
534 …JSHandle<EcmaString> resultOne = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("b"… in HWTEST_F_L0()
535 …JSHandle<EcmaString> resultTwo = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("c"… in HWTEST_F_L0()
537 … JSHandle<JSTaggedValue> zero(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("0")); in HWTEST_F_L0()
538 JSHandle<JSTaggedValue> zeroHandle(JSObject::GetProperty(thread, splitResult, zero).GetValue()); in HWTEST_F_L0()
539 JSHandle<EcmaString> outputZero = JSTaggedValue::ToString(thread, zeroHandle); in HWTEST_F_L0()
542 … JSHandle<JSTaggedValue> first(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("1")); in HWTEST_F_L0()
543 JSHandle<JSTaggedValue> oneHandle(JSObject::GetProperty(thread, splitResult, first).GetValue()); in HWTEST_F_L0()
544 JSHandle<EcmaString> outputOne = JSTaggedValue::ToString(thread, oneHandle); in HWTEST_F_L0()
547 …JSHandle<JSTaggedValue> second(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("2")); in HWTEST_F_L0()
548 … JSHandle<JSTaggedValue> twoHandle(JSObject::GetProperty(thread, splitResult, second).GetValue()); in HWTEST_F_L0()
549 JSHandle<EcmaString> outputTwo = JSTaggedValue::ToString(thread, twoHandle); in HWTEST_F_L0()
556 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0()
563 …JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(newTarget), speciesSymbol).GetValue().GetTag… in HWTEST_F_L0()
571 thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("quick\\s(brown).+?(jumps)"); in HWTEST_F_L0()
572 …JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("iug"); in HWTEST_F_L0()
573 JSTaggedValue result1 = CreateRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
574 JSHandle<JSRegExp> value(thread, reinterpret_cast<JSRegExp *>(result1.GetRawData())); in HWTEST_F_L0()
577thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("The Quick Brown Fox Jumps Over The … in HWTEST_F_L0()
579thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("$&a $` $\' $2 $01 $$1 $21 $32 a"); in HWTEST_F_L0()
580 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
586 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo.get()); in HWTEST_F_L0()
589 JSHandle<JSTaggedValue> replaceResult(thread, results); in HWTEST_F_L0()
590 JSHandle<EcmaString> resultZero = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString( in HWTEST_F_L0()
598 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
601 JSTaggedValue result1 = CreateRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
602 JSHandle<JSRegExp> value(thread, reinterpret_cast<JSRegExp *>(result1.GetRawData())); in HWTEST_F_L0()
606 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
612 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo.get()); in HWTEST_F_L0()
615 JSHandle<JSTaggedValue> replaceResult(thread, results); in HWTEST_F_L0()
623 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
626 JSTaggedValue result1 = CreateRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0()
627 JSHandle<JSRegExp> value(thread, reinterpret_cast<JSRegExp *>(result1.GetRawData())); in HWTEST_F_L0()
631 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
637 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo.get()); in HWTEST_F_L0()
640 JSHandle<JSTaggedValue> replaceResult(thread, results); in HWTEST_F_L0()
647 RegExpParserCache *regExpParserCache = thread->GetEcmaVM()->GetRegExpParserCache(); in HWTEST_F_L0()
648 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()