• Home
  • Raw
  • Download

Lines Matching full:thread

50         TestHelper::CreateEcmaVMWithScope(instance, thread, scope);  in SetUp()
60 JSThread *thread {nullptr}; member in panda::test::BuiltinsObjectTest
63 JSTaggedValue CreateBuiltinJSObject(JSThread *thread, const CString keyCStr) in CreateBuiltinJSObject() argument
65 EcmaVM *ecmaVM = thread->GetEcmaVM(); in CreateBuiltinJSObject()
68 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in CreateBuiltinJSObject()
72 JSHandle<JSTaggedValue> value(thread, JSTaggedValue(1)); in CreateBuiltinJSObject()
73 JSObject::SetProperty(thread, obj, key, value); in CreateBuiltinJSObject()
77 JSFunction *BuiltinsObjectTestCreate(JSThread *thread) in BuiltinsObjectTestCreate() argument
79 EcmaVM *ecmaVM = thread->GetEcmaVM(); in BuiltinsObjectTestCreate()
84 JSObject *TestNewJSObject(JSThread *thread, const JSHandle<JSHClass> &dynClass) in TestNewJSObject() argument
86 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in TestNewJSObject()
89 obj->SetElements(thread, factory->EmptyArray().GetTaggedValue(), SKIP_BARRIER); in TestNewJSObject()
96 JSHandle<JSTaggedValue> function(thread, BuiltinsObjectTestCreate(thread)); in HWTEST_F_L0()
97 JSHandle<JSFunction> objectFunc(thread, BuiltinsObjectTestCreate(thread)); in HWTEST_F_L0()
98 JSHandle<GlobalEnv> globalEnv = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0()
101 auto objCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 4); in HWTEST_F_L0()
105 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, objCallInfo.get()); in HWTEST_F_L0()
107 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
110 …JSHandle<JSObject> jtHandle(thread, JSTaggedValue(reinterpret_cast<TaggedObject *>(result.GetRawDa… in HWTEST_F_L0()
111 JSTaggedValue resultProto = jtHandle->GetPrototype(thread); in HWTEST_F_L0()
118thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>::Cast(function), … in HWTEST_F_L0()
120 auto tgObjCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*object), 4); in HWTEST_F_L0()
125 prev = TestHelper::SetupFrame(thread, tgObjCallInfo.get()); in HWTEST_F_L0()
127 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
129 …JSHandle<JSObject> jtHandleTg(thread, JSTaggedValue(reinterpret_cast<TaggedObject *>(resultTg.GetR… in HWTEST_F_L0()
130 JSTaggedValue resultProtoTg = jtHandleTg->GetPrototype(thread); in HWTEST_F_L0()
137thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>::Cast(function), … in HWTEST_F_L0()
139 auto vnObjCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*objectVn), 6); in HWTEST_F_L0()
145 prev = TestHelper::SetupFrame(thread, vnObjCallInfo.get()); in HWTEST_F_L0()
147 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
150 …JSHandle<JSObject> jtHandleVn(thread, JSTaggedValue(reinterpret_cast<TaggedObject *>(resultVn.GetR… in HWTEST_F_L0()
151 JSTaggedValue resultProtoVn = jtHandleVn->GetPrototype(thread); in HWTEST_F_L0()
160 JSHandle<JSTaggedValue> function(thread, BuiltinsObjectTestCreate(thread)); in HWTEST_F_L0()
162thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(function), functi… in HWTEST_F_L0()
164thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(function), functi… in HWTEST_F_L0()
166 … JSHandle<JSTaggedValue> key1(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("x")); in HWTEST_F_L0()
167 JSHandle<JSTaggedValue> value1(thread, JSTaggedValue(1)); in HWTEST_F_L0()
168 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(objHandle1), key1, value1); in HWTEST_F_L0()
169 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(objHandle1), key1).GetValue()->Get… in HWTEST_F_L0()
171 … JSHandle<JSTaggedValue> key2(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("y")); in HWTEST_F_L0()
172 JSHandle<JSTaggedValue> value2(thread, JSTaggedValue(2)); in HWTEST_F_L0()
173 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(objHandle2), key2, value2); in HWTEST_F_L0()
174 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(objHandle2), key2).GetValue()->Get… in HWTEST_F_L0()
176 …auto assignObjCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(),… in HWTEST_F_L0()
182 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, assignObjCallInfo.get()); in HWTEST_F_L0()
184 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
187 …JSHandle<JSTaggedValue> jtHandle(thread, JSTaggedValue(reinterpret_cast<TaggedObject *>(result.Get… in HWTEST_F_L0()
188 EXPECT_EQ(JSObject::GetProperty(thread, jtHandle, key1).GetValue()->GetInt(), 1); in HWTEST_F_L0()
189 EXPECT_EQ(JSObject::GetProperty(thread, jtHandle, key2).GetValue()->GetInt(), 2); in HWTEST_F_L0()
195 JSHandle<JSTaggedValue> function(thread, BuiltinsObjectTestCreate(thread)); in HWTEST_F_L0()
196 JSHandle<JSFunction> objectFunc(thread, BuiltinsObjectTestCreate(thread)); in HWTEST_F_L0()
197 JSHandle<JSTaggedValue> funcProto(thread, objectFunc->GetFunctionPrototype()); in HWTEST_F_L0()
200 auto objCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6); in HWTEST_F_L0()
205 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, objCallInfo.get()); in HWTEST_F_L0()
207 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
210 …JSHandle<JSObject> jtHandle(thread, JSTaggedValue(reinterpret_cast<TaggedObject *>(result.GetRawDa… in HWTEST_F_L0()
211 JSTaggedValue resultProto = jtHandle->GetPrototype(thread); in HWTEST_F_L0()
215 …JSHandle<JSTaggedValue> key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("prop")); in HWTEST_F_L0()
217thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>::Cast(function), … in HWTEST_F_L0()
220 PropertyDescriptor desc(thread); in HWTEST_F_L0()
222 JSHandle<JSObject> descHandle(JSObject::FromPropertyDescriptor(thread, desc)); in HWTEST_F_L0()
224 PropertyDescriptor descNw(thread, JSHandle<JSTaggedValue>::Cast(descHandle), true, true, true); in HWTEST_F_L0()
225 JSObject::DefineOwnProperty(thread, objHandle, key, descNw); in HWTEST_F_L0()
227 … auto hpObjCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8); in HWTEST_F_L0()
233 prev = TestHelper::SetupFrame(thread, hpObjCallInfo.get()); in HWTEST_F_L0()
235 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
238 PropertyDescriptor descRes(thread); in HWTEST_F_L0()
239 …bool success = JSObject::GetOwnProperty(thread, JSHandle<JSObject>(thread, resultHp), key, descRes… in HWTEST_F_L0()
244 auto unCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6); in HWTEST_F_L0()
249 prev = TestHelper::SetupFrame(thread, unCallInfo.get()); in HWTEST_F_L0()
251 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
258 JSHandle<JSTaggedValue> function(thread, BuiltinsObjectTestCreate(thread)); in HWTEST_F_L0()
259 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0()
262thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(function), functi… in HWTEST_F_L0()
263 …JSHandle<JSTaggedValue> key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("prop")); in HWTEST_F_L0()
265thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(function), functi… in HWTEST_F_L0()
267 PropertyDescriptor desc(thread); in HWTEST_F_L0()
269 JSHandle<JSObject> descHandle(JSObject::FromPropertyDescriptor(thread, desc)); in HWTEST_F_L0()
271 PropertyDescriptor descNw(thread, JSHandle<JSTaggedValue>::Cast(descHandle), true, true, true); in HWTEST_F_L0()
272 JSObject::DefineOwnProperty(thread, jsobjHandle, key, descNw); in HWTEST_F_L0()
274 auto objCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8); in HWTEST_F_L0()
280 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, objCallInfo.get()); in HWTEST_F_L0()
282 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
286 PropertyDescriptor descRes(thread); in HWTEST_F_L0()
287 JSObject::GetOwnProperty(thread, JSHandle<JSObject>(thread, res), key, descRes); in HWTEST_F_L0()
294 JSHandle<JSTaggedValue> function(thread, BuiltinsObjectTestCreate(thread)); in HWTEST_F_L0()
296 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0()
299thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(function), functi… in HWTEST_F_L0()
301thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(function), functi… in HWTEST_F_L0()
303 PropertyDescriptor desc(thread); in HWTEST_F_L0()
305 JSHandle<JSTaggedValue> writableStr = thread->GlobalConstants()->GetHandledWritableString(); in HWTEST_F_L0()
306 JSHandle<JSTaggedValue> writable(thread, JSTaggedValue(desc.IsWritable())); in HWTEST_F_L0()
307 JSObject::CreateDataProperty(thread, attHandle, writableStr, writable); in HWTEST_F_L0()
309 JSHandle<JSTaggedValue> key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("x")); in HWTEST_F_L0()
311 PropertyDescriptor descNw(thread); in HWTEST_F_L0()
312 JSObject::GetOwnProperty(thread, objHandle, key, descNw); in HWTEST_F_L0()
315 … auto objCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 10); in HWTEST_F_L0()
322 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, objCallInfo.get()); in HWTEST_F_L0()
324 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
328 PropertyDescriptor descRes(thread); in HWTEST_F_L0()
329 JSObject::GetOwnProperty(thread, JSHandle<JSObject>(thread, res), key, descRes); in HWTEST_F_L0()
336 JSHandle<JSTaggedValue> function(thread, BuiltinsObjectTestCreate(thread)); in HWTEST_F_L0()
339thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(function), functi… in HWTEST_F_L0()
341 …auto nofreezeObjCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
346 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, nofreezeObjCallInfo.get()); in HWTEST_F_L0()
353 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
360 JSHandle<JSTaggedValue> function(thread, BuiltinsObjectTestCreate(thread)); in HWTEST_F_L0()
362thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(function), functi… in HWTEST_F_L0()
364 JSHandle<JSTaggedValue> key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("x")); in HWTEST_F_L0()
366 PropertyDescriptor descEnum(thread); in HWTEST_F_L0()
368 JSTaggedValue::DefinePropertyOrThrow(thread, JSHandle<JSTaggedValue>(objHandle), key, descEnum); in HWTEST_F_L0()
370 auto objCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8); in HWTEST_F_L0()
376 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, objCallInfo.get()); in HWTEST_F_L0()
378 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
382 JSHandle<JSTaggedValue> writableStr = thread->GlobalConstants()->GetHandledWritableString(); in HWTEST_F_L0()
384 PropertyDescriptor desc(thread); in HWTEST_F_L0()
385 JSObject::GetOwnProperty(thread, JSHandle<JSObject>(thread, jt), writableStr, desc); in HWTEST_F_L0()
392 JSHandle<JSTaggedValue> function(thread, BuiltinsObjectTestCreate(thread)); in HWTEST_F_L0()
394thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(function), functi… in HWTEST_F_L0()
396 JSHandle<JSTaggedValue> key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("x")); in HWTEST_F_L0()
397 JSHandle<JSTaggedValue> value(thread, JSTaggedValue(1)); in HWTEST_F_L0()
398 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(objHandle), key, value); in HWTEST_F_L0()
400 auto objCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6); in HWTEST_F_L0()
405 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, objCallInfo.get()); in HWTEST_F_L0()
407 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
415 JSHandle<JSTaggedValue> function(thread, BuiltinsObjectTestCreate(thread)); in HWTEST_F_L0()
417thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(function), functi… in HWTEST_F_L0()
418 JSHandle<JSSymbol> symbolKey = thread->GetEcmaVM()->GetFactory()->NewJSSymbol(); in HWTEST_F_L0()
420 JSHandle<JSTaggedValue> value(thread, JSTaggedValue(1)); in HWTEST_F_L0()
421 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(objHandle), key, value); in HWTEST_F_L0()
422 thread->ClearException(); in HWTEST_F_L0()
424 auto objCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6); in HWTEST_F_L0()
429 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, objCallInfo.get()); in HWTEST_F_L0()
431 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
440 JSHandle<JSTaggedValue> function(thread, BuiltinsObjectTestCreate(thread)); in HWTEST_F_L0()
443thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(function), functi… in HWTEST_F_L0()
445thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(function), functi… in HWTEST_F_L0()
447 … auto objCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8); in HWTEST_F_L0()
453 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, objCallInfo1.get()); in HWTEST_F_L0()
455 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
464 …JSHandle<EcmaString> testStrValue1 = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString… in HWTEST_F_L0()
465 …JSHandle<EcmaString> testStrValue2 = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString… in HWTEST_F_L0()
467 auto strCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8); in HWTEST_F_L0()
473 prev = TestHelper::SetupFrame(thread, strCallInfo.get()); in HWTEST_F_L0()
475 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
480 … auto boolCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8); in HWTEST_F_L0()
486 prev = TestHelper::SetupFrame(thread, boolCallInfo.get()); in HWTEST_F_L0()
488 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
493 auto numCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8); in HWTEST_F_L0()
499 prev = TestHelper::SetupFrame(thread, numCallInfo.get()); in HWTEST_F_L0()
501 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
506 … auto nullCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8); in HWTEST_F_L0()
512 prev = TestHelper::SetupFrame(thread, nullCallInfo.get()); in HWTEST_F_L0()
514 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
518 …auto undefineCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), … in HWTEST_F_L0()
524 prev = TestHelper::SetupFrame(thread, undefineCallInfo.get()); in HWTEST_F_L0()
526 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
534 JSHandle<JSTaggedValue> function(thread, BuiltinsObjectTestCreate(thread)); in HWTEST_F_L0()
538thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(function), functi… in HWTEST_F_L0()
540 …auto emptyObjCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), … in HWTEST_F_L0()
545 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, emptyObjCallInfo.get()); in HWTEST_F_L0()
547 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
559 JSHandle<JSTaggedValue> function(thread, BuiltinsObjectTestCreate(thread)); in HWTEST_F_L0()
560 JSHandle<JSTaggedValue> key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("x")); in HWTEST_F_L0()
561 JSHandle<JSTaggedValue> value(thread, JSTaggedValue(1)); in HWTEST_F_L0()
565thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>::Cast(function), … in HWTEST_F_L0()
567 …auto emptyObjCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), … in HWTEST_F_L0()
572 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, emptyObjCallInfo.get()); in HWTEST_F_L0()
574 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
579 prev = TestHelper::SetupFrame(thread, emptyObjCallInfo.get()); in HWTEST_F_L0()
581 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
584 PropertyDescriptor descEnum(thread); in HWTEST_F_L0()
588 JSTaggedValue::DefinePropertyOrThrow(thread, JSHandle<JSTaggedValue>(obj), key, descEnum); in HWTEST_F_L0()
590 …auto emptyObjCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(),… in HWTEST_F_L0()
595 prev = TestHelper::SetupFrame(thread, emptyObjCallInfo2.get()); in HWTEST_F_L0()
597 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
603 JSTaggedValue::DefinePropertyOrThrow(thread, JSHandle<JSTaggedValue>(obj), key, descEnum); in HWTEST_F_L0()
605 …auto emptyObjCallInfo3 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(),… in HWTEST_F_L0()
610 prev = TestHelper::SetupFrame(thread, emptyObjCallInfo3.get()); in HWTEST_F_L0()
612 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
620 JSHandle<JSTaggedValue> function(thread, BuiltinsObjectTestCreate(thread)); in HWTEST_F_L0()
624thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(function), functi… in HWTEST_F_L0()
626 …auto emptyObjCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), … in HWTEST_F_L0()
631 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, emptyObjCallInfo.get()); in HWTEST_F_L0()
633 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
641 JSHandle<JSTaggedValue> obj(thread, CreateBuiltinJSObject(thread, "x")); in HWTEST_F_L0()
642 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
647 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo.get()); in HWTEST_F_L0()
649 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
657 JSHandle<JSObject> obj = JSHandle<JSObject>(thread, CreateBuiltinJSObject(thread, "x")); in HWTEST_F_L0()
659 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
664 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo.get()); in HWTEST_F_L0()
666 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
670 JSHandle<JSObject> jtHandle(thread, jt); in HWTEST_F_L0()
677 JSHandle<JSTaggedValue> obj(thread, CreateBuiltinJSObject(thread, "x")); in HWTEST_F_L0()
678 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
683 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo.get()); in HWTEST_F_L0()
691 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
698 JSHandle<JSObject> obj(thread, CreateBuiltinJSObject(thread, "x")); in HWTEST_F_L0()
699 JSHandle<JSObject> objFather(thread, CreateBuiltinJSObject(thread, "y")); in HWTEST_F_L0()
701 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
707 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo.get()); in HWTEST_F_L0()
709 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
715 JSHandle<JSTaggedValue> key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("y")); in HWTEST_F_L0()
716 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), key).GetValue()->GetInt(), 1… in HWTEST_F_L0()
722 JSHandle<JSTaggedValue> obj(thread, CreateBuiltinJSObject(thread, "x")); in HWTEST_F_L0()
724 …JSHandle<EcmaString> keyString = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(&ke… in HWTEST_F_L0()
727 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
732 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo.get()); in HWTEST_F_L0()
734 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
742 JSHandle<JSTaggedValue> obj(thread, CreateBuiltinJSObject(thread, "x")); in HWTEST_F_L0()
743 JSHandle<JSTaggedValue> objFather(thread, CreateBuiltinJSObject(thread, "y")); in HWTEST_F_L0()
745 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
750 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo.get()); in HWTEST_F_L0()
752 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
759 JSHandle<JSTaggedValue> obj(thread, CreateBuiltinJSObject(thread, "x")); in HWTEST_F_L0()
760 JSHandle<JSTaggedValue> objFather(thread, CreateBuiltinJSObject(thread, "y")); in HWTEST_F_L0()
762 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0()
768 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
770 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
775 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0()
780 prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo2.get()); in HWTEST_F_L0()
782 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
790 JSHandle<JSTaggedValue> obj(thread, CreateBuiltinJSObject(thread, "x")); in HWTEST_F_L0()
791 JSHandle<JSTaggedValue> key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("x")); in HWTEST_F_L0()
793 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
798 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo.get()); in HWTEST_F_L0()
800 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
808 JSHandle<JSTaggedValue> obj(thread, CreateBuiltinJSObject(thread, "x")); in HWTEST_F_L0()
809 JSHandle<JSFunction> calleeFunc = thread->GetEcmaVM()->GetFactory()->NewJSFunction( in HWTEST_F_L0()
810 thread->GetEcmaVM()->GetGlobalEnv(), reinterpret_cast<void *>(BuiltinsObject::ToString)); in HWTEST_F_L0()
813 …JSHandle<JSTaggedValue> calleeKey(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("t… in HWTEST_F_L0()
814 JSObject::SetProperty(thread, obj, calleeKey, calleeValue); in HWTEST_F_L0()
816 …JSHandle<EcmaString> resultValue = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("… in HWTEST_F_L0()
818 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
823 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo.get()); in HWTEST_F_L0()
825 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
834 … JSHandle<JSTaggedValue> obj = JSHandle<JSTaggedValue>(thread, CreateBuiltinJSObject(thread, "x")); in HWTEST_F_L0()
837 …JSHandle<EcmaString> resultValue = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("… in HWTEST_F_L0()
838 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
842 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo.get()); in HWTEST_F_L0()
844 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
850 JSHandle<JSArray> arr = thread->GetEcmaVM()->GetFactory()->NewJSArray(); in HWTEST_F_L0()
852 thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("[object Array]"); in HWTEST_F_L0()
853 …auto arrEcmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefin… in HWTEST_F_L0()
857 prev = TestHelper::SetupFrame(thread, arrEcmaRuntimeCallInfo.get()); in HWTEST_F_L0()
859 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
865 … JSHandle<EcmaString> str = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("hello"); in HWTEST_F_L0()
867 thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("[object String]"); in HWTEST_F_L0()
868 …auto strEcmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefin… in HWTEST_F_L0()
872 prev = TestHelper::SetupFrame(thread, strEcmaRuntimeCallInfo.get()); in HWTEST_F_L0()
874 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
880 …JSHandle<JSFunction> func = thread->GetEcmaVM()->GetFactory()->NewJSFunction(thread->GetEcmaVM()->… in HWTEST_F_L0()
882 thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("[object Function]"); in HWTEST_F_L0()
883 …auto funcEcmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefi… in HWTEST_F_L0()
887 prev = TestHelper::SetupFrame(thread, funcEcmaRuntimeCallInfo.get()); in HWTEST_F_L0()
889 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
895 auto ecmaVM = thread->GetEcmaVM(); in HWTEST_F_L0()
899thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(errorObject), err… in HWTEST_F_L0()
900 …JSHandle<EcmaString> errorValue = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("[… in HWTEST_F_L0()
901 …auto errorEcmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undef… in HWTEST_F_L0()
905 prev = TestHelper::SetupFrame(thread, errorEcmaRuntimeCallInfo.get()); in HWTEST_F_L0()
907 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
913 JSHandle<JSTaggedValue> value(thread, JSTaggedValue::False()); in HWTEST_F_L0()
915 …JSHandle<JSPrimitiveRef> boolean = thread->GetEcmaVM()->GetFactory()->NewJSPrimitiveRef(booleanObj… in HWTEST_F_L0()
917 thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("[object Boolean]"); in HWTEST_F_L0()
918 …auto boolEcmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefi… in HWTEST_F_L0()
922 prev = TestHelper::SetupFrame(thread, boolEcmaRuntimeCallInfo.get()); in HWTEST_F_L0()
924 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
931 thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("[object Number]"); in HWTEST_F_L0()
932 …auto numEcmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefin… in HWTEST_F_L0()
936 prev = TestHelper::SetupFrame(thread, numEcmaRuntimeCallInfo.get()); in HWTEST_F_L0()
938 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
947 JSHandle<JSTaggedValue> obj(thread, CreateBuiltinJSObject(thread, "x")); in HWTEST_F_L0()
948 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
953 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo.get()); in HWTEST_F_L0()
955 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()