Lines Matching refs:obj1

183     JSHandle<JSObject> obj1 =
198 JSObject::DefineOwnProperty(thread, obj1, key1, desc);
199 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1, value2);
202 EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1).GetValue().GetTaggedValue(),
211 JSObject::DefineOwnProperty(thread, obj1, key2, desc1);
212 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key2, value1);
214 JSObject::DeleteProperty(thread, (obj1), key2);
216 EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj1), key2).GetValue().GetTaggedValue(),
484 JSHandle<JSObject> obj1 =
486 EXPECT_TRUE(*obj1 != nullptr);
490 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1, value1);
493 JSHandle<JSObject> jsobject(obj1);
496 EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1).GetValue().GetTaggedValue(),
509 JSHandle<JSObject> obj1 =
511 EXPECT_TRUE(*obj1 != nullptr);
516 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1, value1);
519 bool status1 = JSObject::SetIntegrityLevel(thread, obj1, IntegrityLevel::FROZEN);
521 EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1).GetValue().GetTaggedValue(),
524 bool success1 = JSObject::GetOwnProperty(thread, obj1, key1, desc1);
534 JSHandle<JSObject> obj1 =
539 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1, value1);
540 obj1->GetJSHClass()->SetExtensible(false);
543 bool status1 = JSObject::SetIntegrityLevel(thread, obj1, IntegrityLevel::SEALED);
545 EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1).GetValue().GetTaggedValue(),
549 bool success1 = JSObject::GetOwnProperty(thread, obj1, key1, desc1);
551 EXPECT_EQ(true, JSObject::TestIntegrityLevel(thread, obj1, IntegrityLevel::SEALED));
552 EXPECT_EQ(false, JSObject::TestIntegrityLevel(thread, obj1, IntegrityLevel::FROZEN));
558 JSHandle<JSObject> obj1 =
563 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1, value1);
564 obj1->GetJSHClass()->SetExtensible(false);
567 bool status1 = JSObject::SetIntegrityLevel(thread, obj1, IntegrityLevel::FROZEN);
569 EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1).GetValue().GetTaggedValue(),
573 bool success1 = JSObject::GetOwnProperty(thread, obj1, key1, desc1);
575 EXPECT_EQ(true, JSObject::TestIntegrityLevel(thread, obj1, IntegrityLevel::SEALED));
576 EXPECT_EQ(true, JSObject::TestIntegrityLevel(thread, obj1, IntegrityLevel::FROZEN));
582 JSHandle<JSTaggedValue> obj1(
584 JSHandle<JSObject>::Cast(obj1)->GetJSHClass()->SetExtensible(false);
589 JSHandle<JSObject> jsobject(obj1);
785 JSHandle<JSObject> obj1 = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc), objFunc);
788 JSHandle<JSHClass> hc1(thread, obj1->GetJSHClass());
797 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1, value);
798 JSHandle<JSHClass> hc3(thread, obj1->GetJSHClass());
806 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key2, value);
807 JSHandle<JSHClass> hc5(thread, obj1->GetJSHClass());
821 JSHandle<JSObject> obj1 = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc), objFunc);
834 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), newkey, value);
838 EXPECT_FALSE(TaggedArray::Cast(obj1->GetProperties().GetTaggedObject())->IsDictionaryMode());
844 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), newkey, value);
846 EXPECT_TRUE(TaggedArray::Cast(obj1->GetProperties().GetTaggedObject())->IsDictionaryMode());
847 NameDictionary *dict = NameDictionary::Cast(obj1->GetProperties().GetTaggedObject());
859 JSHandle<JSObject> obj1 = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc), objFunc);
871 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), newkey, value);
874 EXPECT_FALSE(TaggedArray::Cast(obj1->GetProperties().GetTaggedObject())->IsDictionaryMode());
877 JSObject::DeleteProperty(thread, (obj1), key5);
879 EXPECT_TRUE(TaggedArray::Cast(obj1->GetProperties().GetTaggedObject())->IsDictionaryMode());
880 NameDictionary *dict = NameDictionary::Cast(obj1->GetProperties().GetTaggedObject());
882 EXPECT_FALSE(JSObject::HasProperty(thread, obj1, key5));
896 JSHandle<JSObject> obj1 = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc), objFunc);
897 EXPECT_TRUE(!TaggedArray::Cast(obj1->GetElements().GetTaggedObject())->IsDictionaryMode());
898 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), keyStr, key2);
899 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key0, key0);
900 EXPECT_TRUE(!TaggedArray::Cast(obj1->GetElements().GetTaggedObject())->IsDictionaryMode());
901 JSHandle<JSHClass> hclass(thread, obj1->GetJSHClass());
902 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1, key1);
903 EXPECT_TRUE(!TaggedArray::Cast(obj1->GetElements().GetTaggedObject())->IsDictionaryMode());
904 EXPECT_EQ(obj1->GetJSHClass(), *hclass);
906 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key2000, key2000);
907 EXPECT_TRUE(TaggedArray::Cast(obj1->GetElements().GetTaggedObject())->IsDictionaryMode());
909 JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj1), keyStr).GetValue().GetTaggedValue();
956 JSHandle<JSObject> obj1 = JSObject::ObjectCreate(thread, nullHandle);
957 JSHandle<JSObject> obj2 = JSObject::ObjectCreate(thread, obj1);
967 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), obj1Key, obj1Value);
976 JSHandle<JSHClass> obj1Class(thread, obj1->GetJSHClass());
1002 JSHandle<JSObject> obj1 = JSObject::ObjectCreate(thread, nullHandle);
1003 JSHandle<JSObject> obj2 = JSObject::ObjectCreate(thread, obj1);
1026 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), obj1Key, obj1Value);
1034 JSHandle<JSHClass> obj1Class(thread, obj1->GetJSHClass());
1085 JSHandle<JSObject> obj1 = JSObject::ObjectCreate(thread, nullHandle);
1086 JSHandle<JSObject> obj2 = JSObject::ObjectCreate(thread, obj1);
1109 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), obj1Key, obj1Value);
1117 JSHandle<JSHClass> obj1Class(thread, obj1->GetJSHClass());
1160 JSHandle<JSObject> obj1 = JSObject::ObjectCreate(thread, nullHandle);
1161 JSHandle<JSObject> obj2 = JSObject::ObjectCreate(thread, obj1);
1162 JSHandle<JSObject> obj3 = JSObject::ObjectCreate(thread, obj1);
1184 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), obj1Key, obj1Value);
1200 JSHandle<JSHClass> obj1Class(thread, obj1->GetJSHClass());
1287 JSHandle<JSObject> obj1 = factory->NewJSObject(hc0);
1297 // / hc1 (obj1)
1300 JSObject::SetProperty(thread, obj1, keyA, JSHandle<JSTaggedValue>(thread, JSTaggedValue(1)));
1305 obj1->GetClass());
1308 hca.Update(JSTaggedValue(obj1->GetClass()));
1311 // / hc1 --> hc3 (obj1)
1314 JSObject::SetProperty(thread, obj1, keyB, JSHandle<JSTaggedValue>(thread, JSTaggedValue(3)));