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

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

Issue 256743008: OrderedHashMap::Lookup() and ObjectHashTable::Lookup() handlified. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebasing 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 b7c043d5e3fc0732f98ca5353c15ba89d73de83e..79523be2ff0e97ea9cf9df2f2a3a6e28b009c2ef 100644
--- a/test/cctest/test-ordered-hash-table.cc
+++ b/test/cctest/test-ordered-hash-table.cc
@@ -162,14 +162,14 @@ TEST(Map) {
Handle<Map> map = factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize);
Handle<JSObject> obj = factory->NewJSObjectFromMap(map);
Handle<JSObject> val = factory->NewJSObjectFromMap(map);
- CHECK(ordered_map->Lookup(*obj)->IsTheHole());
+ CHECK(ordered_map->Lookup(obj)->IsTheHole());
ordered_map = OrderedHashMap::Put(ordered_map, obj, val);
CHECK_EQ(1, ordered_map->NumberOfElements());
- CHECK(ordered_map->Lookup(*obj)->SameValue(*val));
+ CHECK(ordered_map->Lookup(obj)->SameValue(*val));
ordered_map = OrderedHashMap::Put(
ordered_map, obj, factory->the_hole_value());
CHECK_EQ(0, ordered_map->NumberOfElements());
- CHECK(ordered_map->Lookup(*obj)->IsTheHole());
+ CHECK(ordered_map->Lookup(obj)->IsTheHole());
// Test for collisions/chaining
Handle<JSObject> obj1 = factory->NewJSObjectFromMap(map);
@@ -182,9 +182,9 @@ TEST(Map) {
ordered_map = OrderedHashMap::Put(ordered_map, obj2, val2);
ordered_map = OrderedHashMap::Put(ordered_map, obj3, val3);
CHECK_EQ(3, ordered_map->NumberOfElements());
- CHECK(ordered_map->Lookup(*obj1)->SameValue(*val1));
- CHECK(ordered_map->Lookup(*obj2)->SameValue(*val2));
- CHECK(ordered_map->Lookup(*obj3)->SameValue(*val3));
+ CHECK(ordered_map->Lookup(obj1)->SameValue(*val1));
+ CHECK(ordered_map->Lookup(obj2)->SameValue(*val2));
+ CHECK(ordered_map->Lookup(obj3)->SameValue(*val3));
// Test iteration
CheckIterResultObject(
@@ -203,11 +203,11 @@ TEST(Map) {
Handle<JSObject> obj4 = factory->NewJSObjectFromMap(map);
Handle<JSObject> val4 = factory->NewJSObjectFromMap(map);
ordered_map = OrderedHashMap::Put(ordered_map, obj4, val4);
- CHECK(ordered_map->Lookup(*obj)->SameValue(*val));
- CHECK(ordered_map->Lookup(*obj1)->SameValue(*val1));
- CHECK(ordered_map->Lookup(*obj2)->SameValue(*val2));
- CHECK(ordered_map->Lookup(*obj3)->SameValue(*val3));
- CHECK(ordered_map->Lookup(*obj4)->SameValue(*val4));
+ CHECK(ordered_map->Lookup(obj)->SameValue(*val));
+ CHECK(ordered_map->Lookup(obj1)->SameValue(*val1));
+ CHECK(ordered_map->Lookup(obj2)->SameValue(*val2));
+ CHECK(ordered_map->Lookup(obj3)->SameValue(*val3));
+ CHECK(ordered_map->Lookup(obj4)->SameValue(*val4));
CHECK_EQ(5, ordered_map->NumberOfElements());
CHECK_EQ(4, ordered_map->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