Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Unified Diff: test/cctest/test-ordered-hash-table.cc

Issue 260313003: OrderedHashTable::FindEntry() handlified. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/test-dictionary.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-ordered-hash-table.cc
diff --git a/test/cctest/test-ordered-hash-table.cc b/test/cctest/test-ordered-hash-table.cc
index 79523be2ff0e97ea9cf9df2f2a3a6e28b009c2ef..48a457f5eec61c521ae3060a0b0168109d539737 100644
--- a/test/cctest/test-ordered-hash-table.cc
+++ b/test/cctest/test-ordered-hash-table.cc
@@ -71,13 +71,13 @@ TEST(Set) {
Handle<Map> map = factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize);
Handle<JSObject> obj = factory->NewJSObjectFromMap(map);
- CHECK(!ordered_set->Contains(*obj));
+ CHECK(!ordered_set->Contains(obj));
ordered_set = OrderedHashSet::Add(ordered_set, obj);
CHECK_EQ(1, ordered_set->NumberOfElements());
- CHECK(ordered_set->Contains(*obj));
+ CHECK(ordered_set->Contains(obj));
ordered_set = OrderedHashSet::Remove(ordered_set, obj);
CHECK_EQ(0, ordered_set->NumberOfElements());
- CHECK(!ordered_set->Contains(*obj));
+ CHECK(!ordered_set->Contains(obj));
// Test for collisions/chaining
Handle<JSObject> obj1 = factory->NewJSObjectFromMap(map);
@@ -87,9 +87,9 @@ TEST(Set) {
Handle<JSObject> obj3 = factory->NewJSObjectFromMap(map);
ordered_set = OrderedHashSet::Add(ordered_set, obj3);
CHECK_EQ(3, ordered_set->NumberOfElements());
- CHECK(ordered_set->Contains(*obj1));
- CHECK(ordered_set->Contains(*obj2));
- CHECK(ordered_set->Contains(*obj3));
+ CHECK(ordered_set->Contains(obj1));
+ CHECK(ordered_set->Contains(obj2));
+ CHECK(ordered_set->Contains(obj3));
// Test iteration
CheckIterResultObject(
@@ -107,11 +107,11 @@ TEST(Set) {
ordered_set = OrderedHashSet::Add(ordered_set, obj);
Handle<JSObject> obj4 = factory->NewJSObjectFromMap(map);
ordered_set = OrderedHashSet::Add(ordered_set, obj4);
- CHECK(ordered_set->Contains(*obj));
- CHECK(ordered_set->Contains(*obj1));
- CHECK(ordered_set->Contains(*obj2));
- CHECK(ordered_set->Contains(*obj3));
- CHECK(ordered_set->Contains(*obj4));
+ CHECK(ordered_set->Contains(obj));
+ CHECK(ordered_set->Contains(obj1));
+ CHECK(ordered_set->Contains(obj2));
+ CHECK(ordered_set->Contains(obj3));
+ CHECK(ordered_set->Contains(obj4));
CHECK_EQ(5, ordered_set->NumberOfElements());
CHECK_EQ(0, ordered_set->NumberOfDeletedElements());
CHECK_EQ(4, ordered_set->NumberOfBuckets());
« no previous file with comments | « test/cctest/test-dictionary.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698