• Home
  • Raw
  • Download

Lines Matching full:thread

54         TestHelper::CreateEcmaVMWithScope(instance, thread, scope);  in SetUp()
64 JSThread *thread {nullptr}; member in panda::test::JSObjectTest
67 static JSFunction *JSObjectTestCreate(JSThread *thread) in JSObjectTestCreate() argument
69 JSHandle<GlobalEnv> globalEnv = thread->GetEcmaVM()->GetGlobalEnv(); in JSObjectTestCreate()
75 JSHandle<JSTaggedValue> objFunc(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
77thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc), objFunc… in HWTEST_F_L0()
83 JSHandle<JSTaggedValue> objFunc(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
85thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc), objFunc… in HWTEST_F_L0()
89 … JSHandle<JSTaggedValue> key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(array)); in HWTEST_F_L0()
90 JSHandle<JSTaggedValue> value(thread, JSTaggedValue(1)); in HWTEST_F_L0()
92 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(jsobject), key, value); in HWTEST_F_L0()
93 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(jsobject), key).GetValue()->GetInt… in HWTEST_F_L0()
95 JSHandle<JSTaggedValue> value2(thread, JSTaggedValue(2)); in HWTEST_F_L0()
96 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(jsobject), key, value2); in HWTEST_F_L0()
97 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(jsobject), key).GetValue()->GetInt… in HWTEST_F_L0()
102 JSHandle<JSTaggedValue> objFunc(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
104thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc), objFunc… in HWTEST_F_L0()
108 … JSHandle<JSTaggedValue> key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(array)); in HWTEST_F_L0()
109 JSHandle<JSTaggedValue> value(thread, JSTaggedValue(1)); in HWTEST_F_L0()
111 …EXPECT_TRUE(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), key).GetValue()->IsUndefin… in HWTEST_F_L0()
113 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj), key, value); in HWTEST_F_L0()
114 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), key).GetValue()->GetInt(), 1… in HWTEST_F_L0()
119 JSHandle<JSTaggedValue> objFunc(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
121thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc), objFunc… in HWTEST_F_L0()
125 … JSHandle<JSTaggedValue> key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(array)); in HWTEST_F_L0()
126 JSHandle<JSTaggedValue> value(thread, JSTaggedValue(1)); in HWTEST_F_L0()
128 JSObject::DeleteProperty(thread, (obj), key); in HWTEST_F_L0()
129 …EXPECT_TRUE(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), key).GetValue()->IsUndefin… in HWTEST_F_L0()
131 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj), key, value); in HWTEST_F_L0()
132 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), key).GetValue()->GetInt(), 1… in HWTEST_F_L0()
134 …JSHandle<JSTaggedValue> key2(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("print_… in HWTEST_F_L0()
135 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj), key2, in HWTEST_F_L0()
136 JSHandle<JSTaggedValue>(thread, JSTaggedValue(10))); in HWTEST_F_L0()
137 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), key2).GetValue()->GetInt(), … in HWTEST_F_L0()
139 JSObject::DeleteProperty(thread, (obj), key); in HWTEST_F_L0()
140 …EXPECT_TRUE(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), key).GetValue()->IsUndefin… in HWTEST_F_L0()
141 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), key2).GetValue()->GetInt(), … in HWTEST_F_L0()
146 JSHandle<GlobalEnv> globalEnv = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0()
147 JSHandle<JSTaggedValue> global(thread, globalEnv->GetGlobalObject()); in HWTEST_F_L0()
148 …JSHandle<JSTaggedValue> printKey(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("pr… in HWTEST_F_L0()
149 …JSHandle<JSTaggedValue> printTestKey(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString… in HWTEST_F_L0()
151 JSHandle<JSTaggedValue> value = JSObject::GetProperty(thread, global, printKey).GetValue(); in HWTEST_F_L0()
153 JSObject::SetProperty(thread, global, printTestKey, value); in HWTEST_F_L0()
155 …JSTaggedValue val2 = JSObject::GetProperty(thread, global, printTestKey).GetValue().GetTaggedValue… in HWTEST_F_L0()
157 JSTaggedValue::DeletePropertyOrThrow(thread, global, printTestKey); in HWTEST_F_L0()
158 … JSTaggedValue val3 = JSObject::GetProperty(thread, global, printKey).GetValue().GetTaggedValue(); in HWTEST_F_L0()
164 JSHandle<JSObject> nullHandle(thread, JSTaggedValue::Null()); in HWTEST_F_L0()
165 JSHandle<JSObject> grandfather = JSObject::ObjectCreate(thread, nullHandle); in HWTEST_F_L0()
166 JSHandle<JSObject> father = JSObject::ObjectCreate(thread, grandfather); in HWTEST_F_L0()
167 JSHandle<JSObject> son = JSObject::ObjectCreate(thread, father); in HWTEST_F_L0()
169 …JSHandle<JSTaggedValue> sonKey(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key1… in HWTEST_F_L0()
170 …JSHandle<JSTaggedValue> fatherKey(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("k… in HWTEST_F_L0()
171 …JSHandle<JSTaggedValue> grandfatherKey(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressStri… in HWTEST_F_L0()
172 JSHandle<JSTaggedValue> sonValue(thread, JSTaggedValue(1)); in HWTEST_F_L0()
173 JSHandle<JSTaggedValue> fatherValue(thread, JSTaggedValue(2)); in HWTEST_F_L0()
174 JSHandle<JSTaggedValue> grandfatherValue(thread, JSTaggedValue(3)); in HWTEST_F_L0()
176 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(son), sonKey, sonValue); in HWTEST_F_L0()
177 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(father), fatherKey, fatherValue); in HWTEST_F_L0()
178 …JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(grandfather), grandfatherKey, grandfatherVal… in HWTEST_F_L0()
181 … JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(son), sonKey).GetValue().GetTaggedValue()); in HWTEST_F_L0()
183 …JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(son), fatherKey).GetValue().GetTaggedValue()… in HWTEST_F_L0()
185 …JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(son), grandfatherKey).GetValue().GetTaggedVa… in HWTEST_F_L0()
190 JSHandle<JSTaggedValue> constructor(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
192thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), con… in HWTEST_F_L0()
194thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), con… in HWTEST_F_L0()
196 …JSHandle<JSTaggedValue> key1(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key3")… in HWTEST_F_L0()
197 …JSHandle<JSTaggedValue> key2(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key3")… in HWTEST_F_L0()
199 JSHandle<JSTaggedValue> value1(thread, JSTaggedValue(1)); in HWTEST_F_L0()
200 JSHandle<JSTaggedValue> value2(thread, JSTaggedValue(2)); in HWTEST_F_L0()
203 PropertyDescriptor desc(thread); in HWTEST_F_L0()
206 JSObject::DefineOwnProperty(thread, obj1, key1, desc); in HWTEST_F_L0()
207 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1, value2); in HWTEST_F_L0()
208 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj2), key1, value1); in HWTEST_F_L0()
209 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj2), key1, value2); in HWTEST_F_L0()
210 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1).GetValue().GetTaggedV… in HWTEST_F_L0()
212 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj2), key1).GetValue().GetTaggedV… in HWTEST_F_L0()
216 PropertyDescriptor desc1(thread); in HWTEST_F_L0()
219 JSObject::DefineOwnProperty(thread, obj1, key2, desc1); in HWTEST_F_L0()
220 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key2, value1); in HWTEST_F_L0()
221 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj2), key2, value1); in HWTEST_F_L0()
222 JSObject::DeleteProperty(thread, (obj1), key2); in HWTEST_F_L0()
223 JSObject::DeleteProperty(thread, (obj2), key2); in HWTEST_F_L0()
224 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj1), key2).GetValue().GetTaggedV… in HWTEST_F_L0()
226 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj2), key2).GetValue().GetTaggedV… in HWTEST_F_L0()
232 JSHandle<JSTaggedValue> objFunc(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
234thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc), objFunc… in HWTEST_F_L0()
238 … JSHandle<JSTaggedValue> key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(array)); in HWTEST_F_L0()
239 JSHandle<JSTaggedValue> value(thread, JSTaggedValue(1)); in HWTEST_F_L0()
241 bool success = JSObject::CreateDataProperty(thread, obj, key, value); in HWTEST_F_L0()
244 success = JSTaggedValue::HasOwnProperty(thread, JSHandle<JSTaggedValue>::Cast(obj), key); in HWTEST_F_L0()
247 PropertyDescriptor desc(thread); in HWTEST_F_L0()
248 success = JSObject::GetOwnProperty(thread, obj, key, desc); in HWTEST_F_L0()
257 JSHandle<JSTaggedValue> objFunc(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
259thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc), objFunc… in HWTEST_F_L0()
263 … JSHandle<JSTaggedValue> key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(array)); in HWTEST_F_L0()
264 JSHandle<JSTaggedValue> value(thread, JSTaggedValue(1)); in HWTEST_F_L0()
266 bool success = JSObject::CreateMethodProperty(thread, obj, key, value); in HWTEST_F_L0()
269 success = JSTaggedValue::HasOwnProperty(thread, JSHandle<JSTaggedValue>::Cast(obj), key); in HWTEST_F_L0()
272 PropertyDescriptor desc(thread); in HWTEST_F_L0()
273 success = JSObject::GetOwnProperty(thread, obj, key, desc); in HWTEST_F_L0()
282 JSHandle<JSTaggedValue> objFunc(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
284thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc), objFunc… in HWTEST_F_L0()
288 … JSHandle<JSTaggedValue> key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(array)); in HWTEST_F_L0()
290 …PropertyDescriptor desc1(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(1)), true, true, tr… in HWTEST_F_L0()
291 …bool success = JSTaggedValue::DefinePropertyOrThrow(thread, JSHandle<JSTaggedValue>(obj), key, des… in HWTEST_F_L0()
293 PropertyDescriptor descRes1(thread); in HWTEST_F_L0()
294 success = JSObject::GetOwnProperty(thread, obj, key, descRes1); in HWTEST_F_L0()
301 PropertyDescriptor desc2(thread, false, true, true); in HWTEST_F_L0()
302 … success = JSTaggedValue::DefinePropertyOrThrow(thread, JSHandle<JSTaggedValue>(obj), key, desc2); in HWTEST_F_L0()
304 PropertyDescriptor descRes2(thread); in HWTEST_F_L0()
305 success = JSObject::GetOwnProperty(thread, obj, key, descRes2); in HWTEST_F_L0()
312 PropertyDescriptor desc3(thread); in HWTEST_F_L0()
316 … success = JSTaggedValue::DefinePropertyOrThrow(thread, JSHandle<JSTaggedValue>(obj), key, desc3); in HWTEST_F_L0()
318 PropertyDescriptor descRes3(thread); in HWTEST_F_L0()
319 success = JSObject::GetOwnProperty(thread, obj, key, descRes3); in HWTEST_F_L0()
326 PropertyDescriptor desc4(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(2))); in HWTEST_F_L0()
327 … success = JSTaggedValue::DefinePropertyOrThrow(thread, JSHandle<JSTaggedValue>(obj), key, desc4); in HWTEST_F_L0()
333 JSHandle<JSTaggedValue> objFunc(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
335thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc), objFunc… in HWTEST_F_L0()
339 … JSHandle<JSTaggedValue> key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(array)); in HWTEST_F_L0()
340 JSHandle<JSTaggedValue> value(thread, JSTaggedValue(1)); in HWTEST_F_L0()
342 bool flag = JSObject::HasProperty(thread, obj, key); in HWTEST_F_L0()
345 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj), key, value); in HWTEST_F_L0()
346 flag = JSObject::HasProperty(thread, obj, key); in HWTEST_F_L0()
349 JSObject::DeleteProperty(thread, (obj), key); in HWTEST_F_L0()
350 flag = JSObject::HasProperty(thread, obj, key); in HWTEST_F_L0()
356 JSHandle<JSObject> nullHandle(thread, JSTaggedValue::Null()); in HWTEST_F_L0()
357 JSHandle<JSObject> grandfather = JSObject::ObjectCreate(thread, nullHandle); in HWTEST_F_L0()
358 JSHandle<JSObject> father = JSObject::ObjectCreate(thread, grandfather); in HWTEST_F_L0()
359 JSHandle<JSObject> son = JSObject::ObjectCreate(thread, father); in HWTEST_F_L0()
361 auto testGrand = grandfather->GetPrototype(thread); in HWTEST_F_L0()
362 auto testFather = father->GetPrototype(thread); in HWTEST_F_L0()
363 auto testSon = son->GetPrototype(thread); in HWTEST_F_L0()
366 …JSHandle<JSTaggedValue> sonKey(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key1… in HWTEST_F_L0()
367 …JSHandle<JSTaggedValue> fatherKey(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("k… in HWTEST_F_L0()
368 …JSHandle<JSTaggedValue> grandfatherKey(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressStri… in HWTEST_F_L0()
369 JSHandle<JSTaggedValue> sonValue(thread, JSTaggedValue(1)); in HWTEST_F_L0()
370 JSHandle<JSTaggedValue> fatherValue(thread, JSTaggedValue(2)); in HWTEST_F_L0()
371 JSHandle<JSTaggedValue> grandfatherValue(thread, JSTaggedValue(3)); in HWTEST_F_L0()
373 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(son), sonKey, sonValue); in HWTEST_F_L0()
374 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(father), fatherKey, fatherValue); in HWTEST_F_L0()
375 …JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(grandfather), grandfatherKey, grandfatherVal… in HWTEST_F_L0()
377 bool flag = JSObject::HasProperty(thread, son, sonKey); in HWTEST_F_L0()
379 flag = JSObject::HasProperty(thread, son, fatherKey); in HWTEST_F_L0()
381 flag = JSObject::HasProperty(thread, son, grandfatherKey); in HWTEST_F_L0()
387 JSHandle<JSObject> nullHandle(thread, JSTaggedValue::Null()); in HWTEST_F_L0()
388 JSHandle<JSObject> grandfather = JSObject::ObjectCreate(thread, nullHandle); in HWTEST_F_L0()
389 JSHandle<JSObject> father = JSObject::ObjectCreate(thread, grandfather); in HWTEST_F_L0()
390 JSHandle<JSObject> son = JSObject::ObjectCreate(thread, father); in HWTEST_F_L0()
392 …JSHandle<JSTaggedValue> sonKey(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key1… in HWTEST_F_L0()
393 …JSHandle<JSTaggedValue> fatherKey(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("k… in HWTEST_F_L0()
394 …JSHandle<JSTaggedValue> grandfatherKey(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressStri… in HWTEST_F_L0()
395 JSHandle<JSTaggedValue> sonValue(thread, JSTaggedValue(1)); in HWTEST_F_L0()
396 JSHandle<JSTaggedValue> fatherValue(thread, JSTaggedValue(2)); in HWTEST_F_L0()
397 JSHandle<JSTaggedValue> grandfatherValue(thread, JSTaggedValue(3)); in HWTEST_F_L0()
399 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(son), sonKey, sonValue); in HWTEST_F_L0()
400 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(father), fatherKey, fatherValue); in HWTEST_F_L0()
401 …JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(grandfather), grandfatherKey, grandfatherVal… in HWTEST_F_L0()
403 bool flag = JSTaggedValue::HasOwnProperty(thread, JSHandle<JSTaggedValue>::Cast(son), sonKey); in HWTEST_F_L0()
405 flag = JSTaggedValue::HasOwnProperty(thread, JSHandle<JSTaggedValue>::Cast(son), fatherKey); in HWTEST_F_L0()
407 … flag = JSTaggedValue::HasOwnProperty(thread, JSHandle<JSTaggedValue>::Cast(son), grandfatherKey); in HWTEST_F_L0()
413 JSHandle<JSTaggedValue> constructor(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
415thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), con… in HWTEST_F_L0()
417 … JSHandle<JSTaggedValue> key1(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("x")); in HWTEST_F_L0()
418 … JSHandle<JSTaggedValue> key2(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("y")); in HWTEST_F_L0()
419 … JSHandle<JSTaggedValue> key3(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("3")); in HWTEST_F_L0()
420 … JSHandle<JSTaggedValue> key4(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("4")); in HWTEST_F_L0()
421 JSHandle<JSTaggedValue> value1(thread, JSTaggedValue(1)); in HWTEST_F_L0()
422 JSHandle<JSTaggedValue> value2(thread, JSTaggedValue(2)); in HWTEST_F_L0()
423 JSHandle<JSTaggedValue> value3(thread, JSTaggedValue(3)); in HWTEST_F_L0()
424 JSHandle<JSTaggedValue> value4(thread, JSTaggedValue(4)); in HWTEST_F_L0()
426 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj), key1, value1); in HWTEST_F_L0()
427 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj), key2, value2); in HWTEST_F_L0()
428 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj), key3, value3); in HWTEST_F_L0()
429 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj), key4, value4); in HWTEST_F_L0()
431 JSHandle<TaggedArray> array = JSObject::GetOwnPropertyKeys(thread, obj); in HWTEST_F_L0()
436 JSHandle<JSTaggedValue> key(thread, array->Get(i)); in HWTEST_F_L0()
437 … sum += JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), key).GetValue()->GetInt(); in HWTEST_F_L0()
444 JSHandle<JSObject> nullHandle(thread, JSTaggedValue::Null()); in HWTEST_F_L0()
445 JSHandle<JSObject> grandfather = JSObject::ObjectCreate(thread, nullHandle); in HWTEST_F_L0()
446 JSHandle<JSObject> father = JSObject::ObjectCreate(thread, grandfather); in HWTEST_F_L0()
447 JSHandle<JSObject> son = JSObject::ObjectCreate(thread, father); in HWTEST_F_L0()
449 EXPECT_EQ(son->GetPrototype(thread), father.GetTaggedValue()); in HWTEST_F_L0()
450 EXPECT_EQ(father->GetPrototype(thread), grandfather.GetTaggedValue()); in HWTEST_F_L0()
451 EXPECT_EQ(grandfather->GetPrototype(thread), JSTaggedValue::Null()); in HWTEST_F_L0()
456 JSHandle<JSObject> nullHandle(thread, JSTaggedValue::Null()); in HWTEST_F_L0()
457 JSHandle<JSObject> obj = JSObject::ObjectCreate(thread, nullHandle); in HWTEST_F_L0()
458 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0()
459 JSHandle<JSTaggedValue> func(thread->GetEcmaVM()->GetFactory()->NewJSFunction(env)); in HWTEST_F_L0()
462 JSHandle<JSTaggedValue> key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("1")); in HWTEST_F_L0()
463 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj), key, func); in HWTEST_F_L0()
464 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), key).GetValue().GetTaggedVal… in HWTEST_F_L0()
470 JSHandle<JSTaggedValue> objFunc(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
472thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc), objFunc… in HWTEST_F_L0()
476 …JSHandle<EcmaString> tagString = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(&ta… in HWTEST_F_L0()
479 JSHandle<JSTaggedValue> value(thread, JSTaggedValue(1)); in HWTEST_F_L0()
481 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj), key, value); in HWTEST_F_L0()
482 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), key).GetValue()->GetInt(), 1… in HWTEST_F_L0()
484 JSHandle<TaggedArray> names = JSObject::EnumerableOwnNames(thread, obj); in HWTEST_F_L0()
486 JSHandle<JSTaggedValue> keyFromNames(thread, JSTaggedValue(names->Get(0))); in HWTEST_F_L0()
487 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), keyFromNames).GetValue()->Ge… in HWTEST_F_L0()
489 PropertyDescriptor descNoEnum(thread); in HWTEST_F_L0()
491 JSTaggedValue::DefinePropertyOrThrow(thread, JSHandle<JSTaggedValue>(obj), key, descNoEnum); in HWTEST_F_L0()
492 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), key).GetValue()->GetInt(), 1… in HWTEST_F_L0()
494 JSHandle<TaggedArray> namesNoEnum = JSObject::EnumerableOwnNames(thread, obj); in HWTEST_F_L0()
497 PropertyDescriptor descEnum(thread); in HWTEST_F_L0()
500 JSTaggedValue::DefinePropertyOrThrow(thread, JSHandle<JSTaggedValue>(obj), key, descEnum); in HWTEST_F_L0()
501 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), key).GetValue()->GetInt(), 1… in HWTEST_F_L0()
503 JSHandle<TaggedArray> namesNoConfig = JSObject::EnumerableOwnNames(thread, obj); in HWTEST_F_L0()
505 JSHandle<JSTaggedValue> keyNoConfig(thread, JSTaggedValue(namesNoConfig->Get(0))); in HWTEST_F_L0()
506 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), keyNoConfig).GetValue()->Get… in HWTEST_F_L0()
511 JSHandle<JSTaggedValue> dynclass1(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
513thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(dynclass1), dyncl… in HWTEST_F_L0()
516 …JSHandle<JSTaggedValue> key1(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(&undefi… in HWTEST_F_L0()
517 JSHandle<JSTaggedValue> value1(thread, JSTaggedValue(1)); in HWTEST_F_L0()
518 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1, value1); in HWTEST_F_L0()
522 bool status1 = JSObject::SetIntegrityLevel(thread, jsobject, IntegrityLevel::SEALED); in HWTEST_F_L0()
524 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1).GetValue().GetTaggedV… in HWTEST_F_L0()
526 PropertyDescriptor desc1(thread); in HWTEST_F_L0()
527 bool success1 = JSObject::GetOwnProperty(thread, jsobject, key1, desc1); in HWTEST_F_L0()
536 JSHandle<JSTaggedValue> dynclass1(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
538thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(dynclass1), dyncl… in HWTEST_F_L0()
542 …JSHandle<JSTaggedValue> key1(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(&undefi… in HWTEST_F_L0()
543 JSHandle<JSTaggedValue> value1(thread, JSTaggedValue(1)); in HWTEST_F_L0()
544 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1, value1); in HWTEST_F_L0()
547 bool status1 = JSObject::SetIntegrityLevel(thread, obj1, IntegrityLevel::FROZEN); in HWTEST_F_L0()
549 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1).GetValue().GetTaggedV… in HWTEST_F_L0()
551 PropertyDescriptor desc1(thread); in HWTEST_F_L0()
552 bool success1 = JSObject::GetOwnProperty(thread, obj1, key1, desc1); in HWTEST_F_L0()
561 JSHandle<JSTaggedValue> dynclass1(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
563thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(dynclass1), dyncl… in HWTEST_F_L0()
565 …JSHandle<JSTaggedValue> key1(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(&undefi… in HWTEST_F_L0()
566 JSHandle<JSTaggedValue> value1(thread, JSTaggedValue(1)); in HWTEST_F_L0()
567 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1, value1); in HWTEST_F_L0()
571 bool status1 = JSObject::SetIntegrityLevel(thread, obj1, IntegrityLevel::SEALED); in HWTEST_F_L0()
573 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1).GetValue().GetTaggedV… in HWTEST_F_L0()
576 PropertyDescriptor desc1(thread); in HWTEST_F_L0()
577 bool success1 = JSObject::GetOwnProperty(thread, obj1, key1, desc1); in HWTEST_F_L0()
579 EXPECT_EQ(true, JSObject::TestIntegrityLevel(thread, obj1, IntegrityLevel::SEALED)); in HWTEST_F_L0()
580 EXPECT_EQ(false, JSObject::TestIntegrityLevel(thread, obj1, IntegrityLevel::FROZEN)); in HWTEST_F_L0()
585 JSHandle<JSTaggedValue> dynclass1(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
587thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(dynclass1), dyncl… in HWTEST_F_L0()
589 …JSHandle<JSTaggedValue> key1(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(&undefi… in HWTEST_F_L0()
590 JSHandle<JSTaggedValue> value1(thread, JSTaggedValue(1)); in HWTEST_F_L0()
591 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1, value1); in HWTEST_F_L0()
595 bool status1 = JSObject::SetIntegrityLevel(thread, obj1, IntegrityLevel::FROZEN); in HWTEST_F_L0()
597 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1).GetValue().GetTaggedV… in HWTEST_F_L0()
600 PropertyDescriptor desc1(thread); in HWTEST_F_L0()
601 bool success1 = JSObject::GetOwnProperty(thread, obj1, key1, desc1); in HWTEST_F_L0()
603 EXPECT_EQ(true, JSObject::TestIntegrityLevel(thread, obj1, IntegrityLevel::SEALED)); in HWTEST_F_L0()
604 EXPECT_EQ(true, JSObject::TestIntegrityLevel(thread, obj1, IntegrityLevel::FROZEN)); in HWTEST_F_L0()
609 JSHandle<JSTaggedValue> dynclass1(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
611thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(dynclass1), dyncl… in HWTEST_F_L0()
614 …JSHandle<JSTaggedValue> key1(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(&undefi… in HWTEST_F_L0()
618 bool status1 = JSObject::SetIntegrityLevel(thread, jsobject, IntegrityLevel::SEALED); in HWTEST_F_L0()
621 PropertyDescriptor desc1(thread); in HWTEST_F_L0()
622 bool success1 = JSObject::GetOwnProperty(thread, jsobject, key1, desc1); in HWTEST_F_L0()
624 EXPECT_EQ(true, JSObject::TestIntegrityLevel(thread, jsobject, IntegrityLevel::SEALED)); in HWTEST_F_L0()
625 EXPECT_EQ(true, JSObject::TestIntegrityLevel(thread, jsobject, IntegrityLevel::FROZEN)); in HWTEST_F_L0()
630 auto thread = argv->GetThread(); in TestGetter() local
631 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in TestGetter()
634 …JSTaggedValue value = JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), key).GetValue().… in TestGetter()
641 JSHandle<JSTaggedValue> dynclass1(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
642 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
646 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0()
648 thread->GetEcmaVM()->GetFactory()->NewJSFunction(env, reinterpret_cast<void *>(TestGetter)); in HWTEST_F_L0()
650 PropertyDescriptor desc1(thread); in HWTEST_F_L0()
652 bool success1 = JSObject::DefineOwnProperty(thread, obj, key1, desc1); in HWTEST_F_L0()
655 PropertyDescriptor desc2(thread); in HWTEST_F_L0()
656 desc2.SetValue(JSHandle<JSTaggedValue>(thread, JSTaggedValue(1))); in HWTEST_F_L0()
657 success1 = JSObject::DefineOwnProperty(thread, obj, key2, desc2); in HWTEST_F_L0()
660 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), key1).GetValue().GetTaggedVa… in HWTEST_F_L0()
666 JSThread *thread = argv->GetThread(); in TestSetter() local
667 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in TestSetter()
670 …JSTaggedValue value(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), key).GetValue().Ge… in TestSetter()
671 JSHandle<JSTaggedValue> valueHandle(thread, JSTaggedValue(value.GetInt() + 1)); in TestSetter()
672 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj), key, valueHandle); in TestSetter()
679 JSHandle<JSTaggedValue> dynclass1(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
680 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
684 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0()
686 thread->GetEcmaVM()->GetFactory()->NewJSFunction(env, reinterpret_cast<void *>(TestSetter)); in HWTEST_F_L0()
688 PropertyDescriptor desc1(thread); in HWTEST_F_L0()
690 bool success1 = JSObject::DefineOwnProperty(thread, obj, key1, desc1); in HWTEST_F_L0()
693 …PropertyDescriptor desc2(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(1)), true, true, tr… in HWTEST_F_L0()
694 success1 = JSObject::DefineOwnProperty(thread, obj, key2, desc2); in HWTEST_F_L0()
697 JSHandle<JSTaggedValue> valueHandle(thread, JSTaggedValue::Undefined()); in HWTEST_F_L0()
698 EXPECT_TRUE(JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj), key1, valueHandle)); in HWTEST_F_L0()
699 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), key2).GetValue().GetTaggedVa… in HWTEST_F_L0()
705 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
706 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0()
707 const GlobalEnvConstants *globalConst = thread->GlobalConstants(); in HWTEST_F_L0()
712 JSFunction::NewJSFunctionPrototype(thread, factory, constructorFunc); in HWTEST_F_L0()
714 JSHandle<JSObject> nullHandle(thread, JSTaggedValue::Null()); in HWTEST_F_L0()
715 JSHandle<JSTaggedValue> undefinedValue(thread, JSTaggedValue::Undefined()); in HWTEST_F_L0()
716 JSHandle<JSObject> protoObj = JSObject::ObjectCreate(thread, nullHandle); in HWTEST_F_L0()
720 JSObject::SetProperty(thread, protoObjValue, constructorKey, constructorFuncValue); in HWTEST_F_L0()
727 JSFunction::MakeConstructor(thread, speciesConstruct, undefinedValue); in HWTEST_F_L0()
730 JSObject::SetProperty(thread, constructorFuncValue, speciesSymbol, speciesConstructValue); in HWTEST_F_L0()
733 JSObject::SpeciesConstructor(thread, protoObj, constructorFuncValue).GetTaggedValue(); in HWTEST_F_L0()
751 JSHandle<JSTaggedValue> dynclass1(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
752 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
755 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0()
757thread->GetEcmaVM()->GetFactory()->NewJSFunction(env, reinterpret_cast<void *>(TestUndefinedGetter… in HWTEST_F_L0()
759thread->GetEcmaVM()->GetFactory()->NewJSFunction(env, reinterpret_cast<void *>(TestUndefinedSetter… in HWTEST_F_L0()
760 JSHandle<JSTaggedValue> unGetter(thread, JSTaggedValue::Undefined()); in HWTEST_F_L0()
762 PropertyDescriptor desc1(thread); in HWTEST_F_L0()
767 bool success1 = JSObject::DefineOwnProperty(thread, obj, key, desc1); in HWTEST_F_L0()
770 PropertyDescriptor desc2(thread); in HWTEST_F_L0()
772 bool success2 = JSObject::DefineOwnProperty(thread, obj, key, desc2); in HWTEST_F_L0()
775 PropertyDescriptor desc(thread); in HWTEST_F_L0()
776 bool success = JSObject::GetOwnProperty(thread, obj, key, desc); in HWTEST_F_L0()
784 JSHandle<JSTaggedValue> dynclass1(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
785 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
788 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0()
790thread->GetEcmaVM()->GetFactory()->NewJSFunction(env, reinterpret_cast<void *>(TestUndefinedGetter… in HWTEST_F_L0()
792thread->GetEcmaVM()->GetFactory()->NewJSFunction(env, reinterpret_cast<void *>(TestUndefinedSetter… in HWTEST_F_L0()
793 JSHandle<JSTaggedValue> unSetter(thread, JSTaggedValue::Undefined()); in HWTEST_F_L0()
795 PropertyDescriptor desc1(thread); in HWTEST_F_L0()
800 bool success1 = JSObject::DefineOwnProperty(thread, obj, key, desc1); in HWTEST_F_L0()
803 PropertyDescriptor desc2(thread); in HWTEST_F_L0()
805 bool success2 = JSObject::DefineOwnProperty(thread, obj, key, desc2); in HWTEST_F_L0()
808 PropertyDescriptor desc(thread); in HWTEST_F_L0()
809 bool success = JSObject::GetOwnProperty(thread, obj, key, desc); in HWTEST_F_L0()
813 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), key).GetValue().GetTaggedVal… in HWTEST_F_L0()
819 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
820 JSHandle<JSTaggedValue> objFunc(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
824 JSHandle<JSHClass> hc1(thread, obj1->GetJSHClass()); in HWTEST_F_L0()
825 JSHandle<JSHClass> hc2(thread, obj2->GetJSHClass()); in HWTEST_F_L0()
830 JSHandle<JSTaggedValue> value(thread, JSTaggedValue(1)); in HWTEST_F_L0()
833 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1, value); in HWTEST_F_L0()
834 JSHandle<JSHClass> hc3(thread, obj1->GetJSHClass()); in HWTEST_F_L0()
837 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj2), key1, value); in HWTEST_F_L0()
838 JSHandle<JSHClass> hc4(thread, obj2->GetJSHClass()); in HWTEST_F_L0()
842 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key2, value); in HWTEST_F_L0()
843 JSHandle<JSHClass> hc5(thread, obj1->GetJSHClass()); in HWTEST_F_L0()
846 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj2), key2, value); in HWTEST_F_L0()
847 JSHandle<JSHClass> hc6(thread, obj2->GetJSHClass()); in HWTEST_F_L0()
853 auto ecmaVM = thread->GetEcmaVM(); in HWTEST_F_L0()
856 JSHandle<JSTaggedValue> objFunc(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
860 JSMutableHandle<JSTaggedValue> number(thread, JSTaggedValue(0)); in HWTEST_F_L0()
861 JSMutableHandle<JSTaggedValue> newkey(thread, JSTaggedValue(0)); in HWTEST_F_L0()
862 JSHandle<JSTaggedValue> value(thread, JSTaggedValue(1)); in HWTEST_F_L0()
867 number.Update(JSTaggedValue::ToString(thread, number).GetTaggedValue()); in HWTEST_F_L0()
868 … EcmaString *newString = *factory->ConcatFromString(key, JSTaggedValue::ToString(thread, number)); in HWTEST_F_L0()
870 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), newkey, value); in HWTEST_F_L0()
877 number.Update(JSTaggedValue::ToString(thread, number).GetTaggedValue()); in HWTEST_F_L0()
878 … EcmaString *newString = *factory->ConcatFromString(key, JSTaggedValue::ToString(thread, number)); in HWTEST_F_L0()
880 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), newkey, value); in HWTEST_F_L0()
885 … EXPECT_EQ(dict->NextEnumerationIndex(thread), PropertyAttributes::MAX_CAPACITY_OF_PROPERTIES + 1); in HWTEST_F_L0()
890 auto ecmaVM = thread->GetEcmaVM(); in HWTEST_F_L0()
893 JSHandle<JSTaggedValue> objFunc(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
897 JSMutableHandle<JSTaggedValue> number(thread, JSTaggedValue(0)); in HWTEST_F_L0()
898 JSMutableHandle<JSTaggedValue> newkey(thread, JSTaggedValue(0)); in HWTEST_F_L0()
899 JSHandle<JSTaggedValue> value(thread, JSTaggedValue(1)); in HWTEST_F_L0()
903 number.Update(JSTaggedValue::ToString(thread, number).GetTaggedValue()); in HWTEST_F_L0()
904 … EcmaString *newString = *factory->ConcatFromString(key, JSTaggedValue::ToString(thread, number)); in HWTEST_F_L0()
906 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), newkey, value); in HWTEST_F_L0()
912 JSObject::DeleteProperty(thread, (obj1), key5); in HWTEST_F_L0()
917 EXPECT_FALSE(JSObject::HasProperty(thread, obj1, key5)); in HWTEST_F_L0()
922 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
923 JSHandle<JSTaggedValue> objFunc(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
924 JSHandle<JSTaggedValue> key0(thread, JSTaggedValue(0)); in HWTEST_F_L0()
925 JSHandle<JSTaggedValue> key1(thread, JSTaggedValue(1)); in HWTEST_F_L0()
926 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0()
927 JSHandle<JSTaggedValue> key2000(thread, JSTaggedValue(2000)); in HWTEST_F_L0()
933 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), keyStr, key2); in HWTEST_F_L0()
934 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key0, key0); in HWTEST_F_L0()
936 JSHandle<JSHClass> dynClass(thread, obj1->GetJSHClass()); in HWTEST_F_L0()
937 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1, key1); in HWTEST_F_L0()
941 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key2000, key2000); in HWTEST_F_L0()
944 … JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj1), keyStr).GetValue().GetTaggedValue(); in HWTEST_F_L0()
948 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj2), key0, key0); in HWTEST_F_L0()
950 JSHandle<JSHClass> dynClass2(thread, obj2->GetJSHClass()); in HWTEST_F_L0()
951 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj2), key2, key2); in HWTEST_F_L0()
956 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj3), key0, key0); in HWTEST_F_L0()
957 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj3), key1, key1); in HWTEST_F_L0()
958 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj3), key2, key2); in HWTEST_F_L0()
960 PropertyDescriptor desc(thread); in HWTEST_F_L0()
963 JSObject::DefineOwnProperty(thread, obj3, key1, desc); in HWTEST_F_L0()
967 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj4), key0, key0); in HWTEST_F_L0()
968 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj4), key1, key1); in HWTEST_F_L0()
969 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj4), key2, key2); in HWTEST_F_L0()
971 JSObject::DeleteProperty(thread, (obj4), key1); in HWTEST_F_L0()
974 JSHandle<JSTaggedValue> value1001(thread, JSTaggedValue(1001)); in HWTEST_F_L0()
976 PropertyDescriptor desc1(thread); in HWTEST_F_L0()
981 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj100), key0, key1); in HWTEST_F_L0()
982 JSObject::DefineOwnProperty(thread, obj100, key0, desc1); in HWTEST_F_L0()
984 … JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj100), key0).GetValue().GetTaggedValue(); in HWTEST_F_L0()
990 JSHandle<JSObject> nullHandle(thread, JSTaggedValue::Null()); in HWTEST_F_L0()
991 JSHandle<JSObject> obj1 = JSObject::ObjectCreate(thread, nullHandle); in HWTEST_F_L0()
992 JSHandle<JSObject> obj2 = JSObject::ObjectCreate(thread, obj1); in HWTEST_F_L0()
993 JSHandle<JSObject> obj3 = JSObject::ObjectCreate(thread, obj2); in HWTEST_F_L0()
995 …JSHandle<JSTaggedValue> obj1Key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key… in HWTEST_F_L0()
996 …JSHandle<JSTaggedValue> obj2Key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key… in HWTEST_F_L0()
997 …JSHandle<JSTaggedValue> obj3Key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key… in HWTEST_F_L0()
998 JSHandle<JSTaggedValue> obj1Value(thread, JSTaggedValue(1)); in HWTEST_F_L0()
999 JSHandle<JSTaggedValue> obj2Value(thread, JSTaggedValue(2)); in HWTEST_F_L0()
1000 JSHandle<JSTaggedValue> obj3Value(thread, JSTaggedValue(3)); in HWTEST_F_L0()
1002 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), obj1Key, obj1Value); in HWTEST_F_L0()
1003 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj2), obj2Key, obj2Value); in HWTEST_F_L0()
1004 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj3), obj3Key, obj3Value); in HWTEST_F_L0()
1005 JSHandle<JSHClass> obj3Dynclass(thread, obj3->GetJSHClass()); in HWTEST_F_L0()
1006 JSHandle<JSTaggedValue> resultMarker = JSHClass::EnableProtoChangeMarker(thread, obj3Dynclass); in HWTEST_F_L0()
1011 JSHandle<JSHClass> obj1Dynclass(thread, obj1->GetJSHClass()); in HWTEST_F_L0()
1012 JSHandle<JSHClass> obj2Dynclass(thread, obj2->GetJSHClass()); in HWTEST_F_L0()
1036 JSHandle<JSObject> nullHandle(thread, JSTaggedValue::Null()); in HWTEST_F_L0()
1037 JSHandle<JSObject> obj1 = JSObject::ObjectCreate(thread, nullHandle); in HWTEST_F_L0()
1038 JSHandle<JSObject> obj2 = JSObject::ObjectCreate(thread, obj1); in HWTEST_F_L0()
1039 JSHandle<JSObject> obj3 = JSObject::ObjectCreate(thread, obj2); in HWTEST_F_L0()
1040 JSHandle<JSObject> obj4 = JSObject::ObjectCreate(thread, obj2); in HWTEST_F_L0()
1041 JSHandle<JSObject> obj5 = JSObject::ObjectCreate(thread, obj4); in HWTEST_F_L0()
1042 JSHandle<JSObject> obj6 = JSObject::ObjectCreate(thread, obj2); in HWTEST_F_L0()
1043 JSHandle<JSObject> obj7 = JSObject::ObjectCreate(thread, obj6); in HWTEST_F_L0()
1045 …JSHandle<JSTaggedValue> obj1Key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key… in HWTEST_F_L0()
1046 …JSHandle<JSTaggedValue> obj2Key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key… in HWTEST_F_L0()
1047 …JSHandle<JSTaggedValue> obj3Key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key… in HWTEST_F_L0()
1048 …JSHandle<JSTaggedValue> obj4Key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key… in HWTEST_F_L0()
1049 …JSHandle<JSTaggedValue> obj5Key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key… in HWTEST_F_L0()
1050 …JSHandle<JSTaggedValue> obj6Key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key… in HWTEST_F_L0()
1051 …JSHandle<JSTaggedValue> obj7Key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key… in HWTEST_F_L0()
1053 JSHandle<JSTaggedValue> obj1Value(thread, JSTaggedValue(1)); in HWTEST_F_L0()
1054 JSHandle<JSTaggedValue> obj2Value(thread, JSTaggedValue(2)); in HWTEST_F_L0()
1055 JSHandle<JSTaggedValue> obj3Value(thread, JSTaggedValue(3)); in HWTEST_F_L0()
1056 JSHandle<JSTaggedValue> obj4Value(thread, JSTaggedValue(4)); in HWTEST_F_L0()
1057 JSHandle<JSTaggedValue> obj5Value(thread, JSTaggedValue(5)); in HWTEST_F_L0()
1058 JSHandle<JSTaggedValue> obj6Value(thread, JSTaggedValue(6)); in HWTEST_F_L0()
1059 JSHandle<JSTaggedValue> obj7Value(thread, JSTaggedValue(7)); in HWTEST_F_L0()
1061 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), obj1Key, obj1Value); in HWTEST_F_L0()
1062 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj2), obj2Key, obj2Value); in HWTEST_F_L0()
1063 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj3), obj3Key, obj3Value); in HWTEST_F_L0()
1064 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj4), obj4Key, obj4Value); in HWTEST_F_L0()
1065 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj5), obj5Key, obj5Value); in HWTEST_F_L0()
1066 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj6), obj6Key, obj6Value); in HWTEST_F_L0()
1067 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj7), obj7Key, obj7Value); in HWTEST_F_L0()
1069 JSHandle<JSHClass> obj1Dynclass(thread, obj1->GetJSHClass()); in HWTEST_F_L0()
1070 JSHandle<JSHClass> obj2Dynclass(thread, obj2->GetJSHClass()); in HWTEST_F_L0()
1071 JSHandle<JSHClass> obj3Dynclass(thread, obj3->GetJSHClass()); in HWTEST_F_L0()
1072 JSHandle<JSHClass> obj4Dynclass(thread, obj4->GetJSHClass()); in HWTEST_F_L0()
1073 JSHandle<JSHClass> obj5Dynclass(thread, obj5->GetJSHClass()); in HWTEST_F_L0()
1074 JSHandle<JSHClass> obj6Dynclass(thread, obj6->GetJSHClass()); in HWTEST_F_L0()
1075 JSHandle<JSHClass> obj7Dynclass(thread, obj7->GetJSHClass()); in HWTEST_F_L0()
1077 JSHandle<JSTaggedValue> result3Marker = JSHClass::EnableProtoChangeMarker(thread, obj3Dynclass); in HWTEST_F_L0()
1078 JSHandle<JSTaggedValue> result5Marker = JSHClass::EnableProtoChangeMarker(thread, obj5Dynclass); in HWTEST_F_L0()
1087 JSHandle<JSTaggedValue> result7Marker = JSHClass::EnableProtoChangeMarker(thread, obj7Dynclass); in HWTEST_F_L0()
1095 JSHandle<ChangeListener> listeners1(thread, listeners1Value.GetTaggedObject()); in HWTEST_F_L0()
1103 JSHandle<ChangeListener> listeners2(thread, listeners2Value.GetTaggedObject()); in HWTEST_F_L0()
1119 JSHandle<JSObject> nullHandle(thread, JSTaggedValue::Null()); in HWTEST_F_L0()
1120 JSHandle<JSObject> obj1 = JSObject::ObjectCreate(thread, nullHandle); in HWTEST_F_L0()
1121 JSHandle<JSObject> obj2 = JSObject::ObjectCreate(thread, obj1); in HWTEST_F_L0()
1122 JSHandle<JSObject> obj3 = JSObject::ObjectCreate(thread, obj2); in HWTEST_F_L0()
1123 JSHandle<JSObject> obj4 = JSObject::ObjectCreate(thread, obj2); in HWTEST_F_L0()
1124 JSHandle<JSObject> obj5 = JSObject::ObjectCreate(thread, obj4); in HWTEST_F_L0()
1125 JSHandle<JSObject> obj6 = JSObject::ObjectCreate(thread, obj2); in HWTEST_F_L0()
1126 JSHandle<JSObject> obj7 = JSObject::ObjectCreate(thread, obj6); in HWTEST_F_L0()
1128 …JSHandle<JSTaggedValue> obj1Key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key… in HWTEST_F_L0()
1129 …JSHandle<JSTaggedValue> obj2Key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key… in HWTEST_F_L0()
1130 …JSHandle<JSTaggedValue> obj3Key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key… in HWTEST_F_L0()
1131 …JSHandle<JSTaggedValue> obj4Key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key… in HWTEST_F_L0()
1132 …JSHandle<JSTaggedValue> obj5Key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key… in HWTEST_F_L0()
1133 …JSHandle<JSTaggedValue> obj6Key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key… in HWTEST_F_L0()
1134 …JSHandle<JSTaggedValue> obj7Key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key… in HWTEST_F_L0()
1136 JSHandle<JSTaggedValue> obj1Value(thread, JSTaggedValue(1)); in HWTEST_F_L0()
1137 JSHandle<JSTaggedValue> obj2Value(thread, JSTaggedValue(2)); in HWTEST_F_L0()
1138 JSHandle<JSTaggedValue> obj3Value(thread, JSTaggedValue(3)); in HWTEST_F_L0()
1139 JSHandle<JSTaggedValue> obj4Value(thread, JSTaggedValue(4)); in HWTEST_F_L0()
1140 JSHandle<JSTaggedValue> obj5Value(thread, JSTaggedValue(5)); in HWTEST_F_L0()
1141 JSHandle<JSTaggedValue> obj6Value(thread, JSTaggedValue(6)); in HWTEST_F_L0()
1142 JSHandle<JSTaggedValue> obj7Value(thread, JSTaggedValue(7)); in HWTEST_F_L0()
1144 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), obj1Key, obj1Value); in HWTEST_F_L0()
1145 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj2), obj2Key, obj2Value); in HWTEST_F_L0()
1146 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj3), obj3Key, obj3Value); in HWTEST_F_L0()
1147 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj4), obj4Key, obj4Value); in HWTEST_F_L0()
1148 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj5), obj5Key, obj5Value); in HWTEST_F_L0()
1149 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj6), obj6Key, obj6Value); in HWTEST_F_L0()
1150 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj7), obj7Key, obj7Value); in HWTEST_F_L0()
1152 JSHandle<JSHClass> obj1Dynclass(thread, obj1->GetJSHClass()); in HWTEST_F_L0()
1153 JSHandle<JSHClass> obj2Dynclass(thread, obj2->GetJSHClass()); in HWTEST_F_L0()
1154 JSHandle<JSHClass> obj3Dynclass(thread, obj3->GetJSHClass()); in HWTEST_F_L0()
1155 JSHandle<JSHClass> obj4Dynclass(thread, obj4->GetJSHClass()); in HWTEST_F_L0()
1156 JSHandle<JSHClass> obj5Dynclass(thread, obj5->GetJSHClass()); in HWTEST_F_L0()
1157 JSHandle<JSHClass> obj6Dynclass(thread, obj6->GetJSHClass()); in HWTEST_F_L0()
1158 JSHandle<JSHClass> obj7Dynclass(thread, obj7->GetJSHClass()); in HWTEST_F_L0()
1160 JSHClass::EnableProtoChangeMarker(thread, obj3Dynclass); in HWTEST_F_L0()
1161 JSHClass::EnableProtoChangeMarker(thread, obj7Dynclass); in HWTEST_F_L0()
1162 JSHClass::EnableProtoChangeMarker(thread, obj5Dynclass); in HWTEST_F_L0()
1164 JSHClass::NoticeThroughChain(thread, obj2Dynclass); in HWTEST_F_L0()
1165 JSHClass::UnregisterOnProtoChain(thread, obj2Dynclass); in HWTEST_F_L0()
1170 JSHandle<ChangeListener> listeners1(thread, listeners1Value.GetTaggedObject()); in HWTEST_F_L0()
1194 JSHandle<JSObject> nullHandle(thread, JSTaggedValue::Null()); in HWTEST_F_L0()
1195 JSHandle<JSObject> obj1 = JSObject::ObjectCreate(thread, nullHandle); in HWTEST_F_L0()
1196 JSHandle<JSObject> obj2 = JSObject::ObjectCreate(thread, obj1); in HWTEST_F_L0()
1197 JSHandle<JSObject> obj3 = JSObject::ObjectCreate(thread, obj1); in HWTEST_F_L0()
1198 JSHandle<JSObject> obj4 = JSObject::ObjectCreate(thread, obj2); in HWTEST_F_L0()
1199 JSHandle<JSObject> obj5 = JSObject::ObjectCreate(thread, obj4); in HWTEST_F_L0()
1200 JSHandle<JSObject> obj6 = JSObject::ObjectCreate(thread, obj2); in HWTEST_F_L0()
1201 JSHandle<JSObject> obj7 = JSObject::ObjectCreate(thread, obj6); in HWTEST_F_L0()
1203 …JSHandle<JSTaggedValue> obj1Key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key… in HWTEST_F_L0()
1204 …JSHandle<JSTaggedValue> obj2Key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key… in HWTEST_F_L0()
1205 …JSHandle<JSTaggedValue> obj3Key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key… in HWTEST_F_L0()
1206 …JSHandle<JSTaggedValue> obj4Key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key… in HWTEST_F_L0()
1207 …JSHandle<JSTaggedValue> obj5Key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key… in HWTEST_F_L0()
1208 …JSHandle<JSTaggedValue> obj6Key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key… in HWTEST_F_L0()
1209 …JSHandle<JSTaggedValue> obj7Key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("key… in HWTEST_F_L0()
1211 JSHandle<JSTaggedValue> obj1Value(thread, JSTaggedValue(1)); in HWTEST_F_L0()
1212 JSHandle<JSTaggedValue> obj2Value(thread, JSTaggedValue(2)); in HWTEST_F_L0()
1213 JSHandle<JSTaggedValue> obj3Value(thread, JSTaggedValue(3)); in HWTEST_F_L0()
1214 JSHandle<JSTaggedValue> obj4Value(thread, JSTaggedValue(4)); in HWTEST_F_L0()
1215 JSHandle<JSTaggedValue> obj5Value(thread, JSTaggedValue(5)); in HWTEST_F_L0()
1216 JSHandle<JSTaggedValue> obj6Value(thread, JSTaggedValue(6)); in HWTEST_F_L0()
1217 JSHandle<JSTaggedValue> obj7Value(thread, JSTaggedValue(7)); in HWTEST_F_L0()
1219 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), obj1Key, obj1Value); in HWTEST_F_L0()
1220 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj2), obj2Key, obj2Value); in HWTEST_F_L0()
1221 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj3), obj3Key, obj3Value); in HWTEST_F_L0()
1222 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj4), obj4Key, obj4Value); in HWTEST_F_L0()
1223 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj5), obj5Key, obj5Value); in HWTEST_F_L0()
1224 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj6), obj6Key, obj6Value); in HWTEST_F_L0()
1225 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj7), obj7Key, obj7Value); in HWTEST_F_L0()
1227 JSHandle<JSHClass> obj5Dynclass(thread, obj5->GetJSHClass()); in HWTEST_F_L0()
1228 JSHandle<JSHClass> obj7Dynclass(thread, obj7->GetJSHClass()); in HWTEST_F_L0()
1230 JSHClass::EnableProtoChangeMarker(thread, obj7Dynclass); in HWTEST_F_L0()
1231 JSHClass::EnableProtoChangeMarker(thread, obj5Dynclass); in HWTEST_F_L0()
1233 JSObject::SetPrototype(thread, obj2, JSHandle<JSTaggedValue>(obj3)); in HWTEST_F_L0()
1235 JSHandle<JSHClass> obj1Dynclass(thread, obj1->GetJSHClass()); in HWTEST_F_L0()
1236 JSHandle<JSHClass> obj2Dynclass(thread, obj2->GetJSHClass()); in HWTEST_F_L0()
1237 JSHandle<JSHClass> obj3Dynclass(thread, obj3->GetJSHClass()); in HWTEST_F_L0()
1238 JSHandle<JSHClass> obj4Dynclass(thread, obj4->GetJSHClass()); in HWTEST_F_L0()
1239 JSHandle<JSHClass> obj6Dynclass(thread, obj6->GetJSHClass()); in HWTEST_F_L0()
1287 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1288 JSHandle<JSTaggedValue> objFunc(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()