• Home
  • Raw
  • Download

Lines Matching full:thread

49         thread = instance->GetJSThread();  in SetUp()
50 scope = new EcmaHandleScope(thread); in SetUp()
60 JSThread *thread {nullptr}; member in panda::test::BuiltinsLocaleTest
66 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
67 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0()
71 JSHandle<JSTaggedValue> languageKey = thread->GlobalConstants()->GetHandledLanguageString(); in HWTEST_F_L0()
72 JSHandle<JSTaggedValue> regionKey = thread->GlobalConstants()->GetHandledRegionString(); in HWTEST_F_L0()
73 JSHandle<JSTaggedValue> numericKey = thread->GlobalConstants()->GetHandledNumericString(); in HWTEST_F_L0()
74 JSHandle<JSTaggedValue> scriptKey = thread->GlobalConstants()->GetHandledScriptString(); in HWTEST_F_L0()
78 JSHandle<JSTaggedValue> numericValue(thread, JSTaggedValue::True()); in HWTEST_F_L0()
82 JSObject::SetProperty(thread, optionsObj, numericKey, numericValue); in HWTEST_F_L0()
83 JSObject::SetProperty(thread, optionsObj, regionKey, regionValue); in HWTEST_F_L0()
84 JSObject::SetProperty(thread, optionsObj, languageKey, languageValue); in HWTEST_F_L0()
85 JSObject::SetProperty(thread, optionsObj, scriptKey, scriptValue); in HWTEST_F_L0()
87 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*newTarget)… in HWTEST_F_L0()
93 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
95 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
100 static JSTaggedValue JSLocaleCreateWithOptionTest(JSThread *thread) in JSLocaleCreateWithOptionTest() argument
102 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in JSLocaleCreateWithOptionTest()
103 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in JSLocaleCreateWithOptionTest()
107 JSHandle<JSTaggedValue> languageKey = thread->GlobalConstants()->GetHandledLanguageString(); in JSLocaleCreateWithOptionTest()
108 JSHandle<JSTaggedValue> regionKey = thread->GlobalConstants()->GetHandledRegionString(); in JSLocaleCreateWithOptionTest()
109 JSHandle<JSTaggedValue> scriptKey = thread->GlobalConstants()->GetHandledScriptString(); in JSLocaleCreateWithOptionTest()
116 JSObject::SetProperty(thread, optionsObj, languageKey, languageValue); in JSLocaleCreateWithOptionTest()
117 JSObject::SetProperty(thread, optionsObj, regionKey, regionValue); in JSLocaleCreateWithOptionTest()
118 JSObject::SetProperty(thread, optionsObj, scriptKey, scriptValue); in JSLocaleCreateWithOptionTest()
121 JSHandle<JSTaggedValue> calendarKey = thread->GlobalConstants()->GetHandledCalendarString(); in JSLocaleCreateWithOptionTest()
122 JSObject::SetProperty(thread, optionsObj, calendarKey, calendarValue); // test chinese calendar in JSLocaleCreateWithOptionTest()
124 JSHandle<JSTaggedValue> hourCycleKey = thread->GlobalConstants()->GetHandledHourCycleString(); in JSLocaleCreateWithOptionTest()
126 JSObject::SetProperty(thread, optionsObj, hourCycleKey, hourCycleValue); // test h24 in JSLocaleCreateWithOptionTest()
128 JSHandle<JSTaggedValue> numericKey = thread->GlobalConstants()->GetHandledNumericString(); in JSLocaleCreateWithOptionTest()
130 JSObject::SetProperty(thread, optionsObj, numericKey, numericValue); // test true in JSLocaleCreateWithOptionTest()
132 …JSHandle<JSTaggedValue> numberingSystemKey = thread->GlobalConstants()->GetHandledNumberingSystemS… in JSLocaleCreateWithOptionTest()
134 … JSObject::SetProperty(thread, optionsObj, numberingSystemKey, numberingSystemValue); // test mong in JSLocaleCreateWithOptionTest()
136 JSHandle<JSTaggedValue> collationKey = thread->GlobalConstants()->GetHandledCollationString(); in JSLocaleCreateWithOptionTest()
138 JSObject::SetProperty(thread, optionsObj, collationKey, collationValue); // test compat in JSLocaleCreateWithOptionTest()
140 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*newTarget)… in JSLocaleCreateWithOptionTest()
146 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in JSLocaleCreateWithOptionTest()
148 TestHelper::TearDownFrame(thread, prev); in JSLocaleCreateWithOptionTest()
154 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
155 JSHandle<JSLocale> jsLocale = JSHandle<JSLocale>(thread, JSLocaleCreateWithOptionTest(thread)); in HWTEST_F_L0()
157 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
161 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
163 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
166 JSHandle<EcmaString> handleEcmaStr(thread, result); in HWTEST_F_L0()
174 JSHandle<JSLocale> jsLocale = JSHandle<JSLocale>(thread, JSLocaleCreateWithOptionTest(thread)); in HWTEST_F_L0()
176 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
180 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
182 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
185 JSHandle<EcmaString> handleEcmaStr(thread, result); in HWTEST_F_L0()
191 JSHandle<JSLocale> jsLocale = JSHandle<JSLocale>(thread, JSLocaleCreateWithOptionTest(thread)); in HWTEST_F_L0()
193 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
197 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
199 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
202 JSHandle<EcmaString> handleEcmaStr(thread, result); in HWTEST_F_L0()
208 JSHandle<JSLocale> jsLocale = JSHandle<JSLocale>(thread, JSLocaleCreateWithOptionTest(thread)); in HWTEST_F_L0()
210 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
214 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
216 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
219 JSHandle<EcmaString> handleEcmaStr(thread, result); in HWTEST_F_L0()
225 JSHandle<JSLocale> jsLocale = JSHandle<JSLocale>(thread, JSLocaleCreateWithOptionTest(thread)); in HWTEST_F_L0()
227 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
231 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
233 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
236 JSHandle<EcmaString> handleEcmaStr(thread, result); in HWTEST_F_L0()
242 JSHandle<JSLocale> jsLocale = JSHandle<JSLocale>(thread, JSLocaleCreateWithOptionTest(thread)); in HWTEST_F_L0()
244 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
248 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
250 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
253 JSHandle<EcmaString> handleEcmaStr(thread, result); in HWTEST_F_L0()
259 JSHandle<JSLocale> jsLocale = JSHandle<JSLocale>(thread, JSLocaleCreateWithOptionTest(thread)); in HWTEST_F_L0()
261 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
265 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
267 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
274 JSHandle<JSLocale> jsLocale = JSHandle<JSLocale>(thread, JSLocaleCreateWithOptionTest(thread)); in HWTEST_F_L0()
276 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
280 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
282 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
285 JSHandle<EcmaString> handleEcmaStr(thread, result); in HWTEST_F_L0()
291 JSHandle<JSLocale> jsLocale = JSHandle<JSLocale>(thread, JSLocaleCreateWithOptionTest(thread)); in HWTEST_F_L0()
293 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
297 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
299 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
302 JSHandle<EcmaString> handleEcmaStr(thread, result); in HWTEST_F_L0()
308 JSHandle<JSLocale> jsLocale = JSHandle<JSLocale>(thread, JSLocaleCreateWithOptionTest(thread)); in HWTEST_F_L0()
310 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
314 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
316 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
319 JSHandle<EcmaString> handleEcmaStr(thread, result); in HWTEST_F_L0()
325 JSHandle<JSLocale> jsLocale = JSHandle<JSLocale>(thread, JSLocaleCreateWithOptionTest(thread)); in HWTEST_F_L0()
327 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
331 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
333 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
336 JSHandle<EcmaString> handleEcmaStr(thread, result); in HWTEST_F_L0()
340 static JSTaggedValue JSLocaleCreateWithOptionsTagsTest(JSThread *thread, JSHandle<JSTaggedValue> &v… in JSLocaleCreateWithOptionsTagsTest() argument
342 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in JSLocaleCreateWithOptionsTagsTest()
343 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in JSLocaleCreateWithOptionsTagsTest()
347 JSHandle<JSTaggedValue> languageKey = thread->GlobalConstants()->GetHandledLanguageString(); in JSLocaleCreateWithOptionsTagsTest()
352 JSObject::SetProperty(thread, optionsObj, languageKey, languageValue); in JSLocaleCreateWithOptionsTagsTest()
354 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*newTarget)… in JSLocaleCreateWithOptionsTagsTest()
360 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in JSLocaleCreateWithOptionsTagsTest()
363 TestHelper::TearDownFrame(thread, prev); in JSLocaleCreateWithOptionsTagsTest()
369 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
372 …JSHandle<JSLocale> jsLocale = JSHandle<JSLocale>(thread, JSLocaleCreateWithOptionsTagsTest(thread,… in HWTEST_F_L0()
374 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0()
378 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo1); in HWTEST_F_L0()
380 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
381 JSHandle<JSLocale> resultLocale(thread, resultObj); in HWTEST_F_L0()
383 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0()
387 prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo2); in HWTEST_F_L0()
389 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
392 JSHandle<EcmaString> handleEcmaStr(thread, result); in HWTEST_F_L0()
399 JSHandle<JSLocale> jsLocale = JSHandle<JSLocale>(thread, JSLocaleCreateWithOptionTest(thread)); in HWTEST_F_L0()
401 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0()
405 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo1); in HWTEST_F_L0()
407 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
408 JSHandle<JSLocale> resultLocale(thread, resultObj); in HWTEST_F_L0()
410 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0()
414 prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo2); in HWTEST_F_L0()
416 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
419 JSHandle<EcmaString> handleEcmaStr(thread, result); in HWTEST_F_L0()
426 JSHandle<JSLocale> jsLocale = JSHandle<JSLocale>(thread, JSLocaleCreateWithOptionTest(thread)); in HWTEST_F_L0()
428 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0()
432 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo1); in HWTEST_F_L0()
434 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
435 JSHandle<JSLocale> resultLocale(thread, resultObj); in HWTEST_F_L0()
437 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0()
441 prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo2); in HWTEST_F_L0()
443 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
446 JSHandle<EcmaString> handleEcmaStr(thread, result); in HWTEST_F_L0()
452 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
455 …JSHandle<JSLocale> jsLocale = JSHandle<JSLocale>(thread, JSLocaleCreateWithOptionsTagsTest(thread,… in HWTEST_F_L0()
457 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0()
461 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo1); in HWTEST_F_L0()
463 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
464 JSHandle<JSLocale> resultLocale(thread, resultObj); in HWTEST_F_L0()
466 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0()
470 prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo2); in HWTEST_F_L0()
472 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
475 JSHandle<EcmaString> handleEcmaStr(thread, result); in HWTEST_F_L0()
482 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
483 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0()
487 JSHandle<JSTaggedValue> caseFirstKey = thread->GlobalConstants()->GetHandledCaseFirstString(); in HWTEST_F_L0()
492 JSObject::SetProperty(thread, optionsObj, caseFirstKey, caseFirstValue); in HWTEST_F_L0()
494 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*newTarget)… in HWTEST_F_L0()
500 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
502 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
504 JSHandle<JSLocale> jsInitLocale(thread, result); in HWTEST_F_L0()
505 JSHandle<EcmaString> keyWords = JSLocale::NormalizeKeywordValue(thread, jsInitLocale, "kf"); in HWTEST_F_L0()