Home | History | Annotate | Download | only in cctest

Lines Matching refs:weakmap

47   Handle<JSWeakMap> weakmap(JSWeakMap::cast(*weakmap_obj));
51 weakmap->set_table(table);
52 weakmap->set_next(Smi::FromInt(0));
53 return weakmap;
56 static void PutIntoWeakMap(Handle<JSWeakMap> weakmap,
60 Handle<ObjectHashTable>(ObjectHashTable::cast(weakmap->table())),
63 weakmap->set_table(*table);
83 Handle<JSWeakMap> weakmap = AllocateJSWeakMap(isolate);
99 PutIntoWeakMap(weakmap,
103 CHECK_EQ(1, ObjectHashTable::cast(weakmap->table())->NumberOfElements());
108 CHECK_EQ(1, ObjectHashTable::cast(weakmap->table())->NumberOfElements());
110 0, ObjectHashTable::cast(weakmap->table())->NumberOfDeletedElements());
126 CHECK_EQ(1, ObjectHashTable::cast(weakmap->table())->NumberOfElements());
128 0, ObjectHashTable::cast(weakmap->table())->NumberOfDeletedElements());
131 CHECK_EQ(0, ObjectHashTable::cast(weakmap->table())->NumberOfElements());
133 1, ObjectHashTable::cast(weakmap->table())->NumberOfDeletedElements());
143 Handle<JSWeakMap> weakmap = AllocateJSWeakMap(isolate);
146 CHECK_EQ(32, ObjectHashTable::cast(weakmap->table())->Capacity());
154 PutIntoWeakMap(weakmap, object, Handle<Smi>(Smi::FromInt(i), isolate));
159 CHECK_EQ(128, ObjectHashTable::cast(weakmap->table())->Capacity());
162 CHECK_EQ(32, ObjectHashTable::cast(weakmap->table())->NumberOfElements());
164 0, ObjectHashTable::cast(weakmap->table())->NumberOfDeletedElements());
166 CHECK_EQ(0, ObjectHashTable::cast(weakmap->table())->NumberOfElements());
168 32, ObjectHashTable::cast(weakmap->table())->NumberOfDeletedElements());
171 CHECK_EQ(32, ObjectHashTable::cast(weakmap->table())->Capacity());
187 Handle<JSWeakMap> weakmap = AllocateJSWeakMap(isolate);
200 PutIntoWeakMap(weakmap, key, object);
237 Handle<JSWeakMap> weakmap = AllocateJSWeakMap(isolate);
239 PutIntoWeakMap(weakmap,