Lines Matching defs:constpool
112 JSHandle<ConstantPool> constpool = factory->NewConstantPool(10);
121 constpool->SetObjectToCache(thread, 0, funcFunc.GetTaggedValue());
122 constpool->SetObjectToCache(thread, 1, dateFunc.GetTaggedValue());
123 constpool->SetObjectToCache(thread, 2, str1.GetTaggedValue());
124 constpool->SetObjectToCache(thread, 3, numberFunc.GetTaggedValue());
125 constpool->SetObjectToCache(thread, 4, str2.GetTaggedValue());
126 constpool->SetObjectToCache(thread, 5, str1.GetTaggedValue());
127 constpool->SetObjectToCache(thread, 6, str3.GetTaggedValue());
128 constpool->SetObjectToCache(thread, 7, str4.GetTaggedValue());
129 constpool->SetObjectToCache(thread, 8, str4.GetTaggedValue());
130 constpool->SetObjectToCache(thread, 9, str5.GetTaggedValue());
135 snapshotSerialize.Serialize(*constpool, nullptr, fileName);
142 EXPECT_EQ(constpool->GetClass()->SizeFromJSHClass(*constpool),
167 JSHandle<ConstantPool> constpool = factory->NewConstantPool(400);
170 constpool->SetObjectToCache(thread, i, array.GetTaggedValue());
174 constpool->SetObjectToCache(thread, i + 100, array.GetTaggedValue());
178 constpool->SetObjectToCache(thread, i + 300, constpool1.GetTaggedValue());
184 snapshotSerialize.Serialize(*constpool, nullptr, fileName);
191 EXPECT_EQ(constpool->GetClass()->SizeFromJSHClass(*constpool),
237 auto constpool = reinterpret_cast<ConstantPool *>(beginRegion->GetBegin());
238 EXPECT_TRUE(constpool->GetObjectFromCache(0).IsTaggedArray());
239 EXPECT_TRUE(constpool->GetObjectFromCache(100).IsTaggedArray());
240 auto obj1 = constpool->GetObjectFromCache(0).GetTaggedObject();
242 auto obj2 = constpool->GetObjectFromCache(100).GetTaggedObject();