Index: test/cctest/test-dictionary.cc |
diff --git a/test/cctest/test-dictionary.cc b/test/cctest/test-dictionary.cc |
index 0d4edf5dd4756c53c66768f145d32e8f5807c1d7..cc4a7533d8c9c8a6386757df4f5053b6bc89b082 100644 |
--- a/test/cctest/test-dictionary.cc |
+++ b/test/cctest/test-dictionary.cc |
@@ -82,7 +82,7 @@ static void TestHashMap(Handle<HashMap> table) { |
CHECK_EQ(table->NumberOfElements(), i + 1); |
CHECK_NE(table->FindEntry(key), HashMap::kNotFound); |
CHECK_EQ(table->Lookup(key), *value); |
- CHECK(key->GetIdentityHash()->IsSmi()); |
+ CHECK(JSReceiver::GetIdentityHash(isolate, key)->IsSmi()); |
} |
// Keys never added to the map which already have an identity hash |
@@ -92,7 +92,7 @@ static void TestHashMap(Handle<HashMap> table) { |
CHECK(JSReceiver::GetOrCreateIdentityHash(key)->IsSmi()); |
CHECK_EQ(table->FindEntry(key), HashMap::kNotFound); |
CHECK_EQ(table->Lookup(key), CcTest::heap()->the_hole_value()); |
- CHECK(key->GetIdentityHash()->IsSmi()); |
+ CHECK(JSReceiver::GetIdentityHash(isolate, key)->IsSmi()); |
} |
// Keys that don't have an identity hash should not be found and also |
@@ -100,8 +100,8 @@ static void TestHashMap(Handle<HashMap> table) { |
for (int i = 0; i < 100; i++) { |
Handle<JSReceiver> key = factory->NewJSArray(7); |
CHECK_EQ(table->Lookup(key), CcTest::heap()->the_hole_value()); |
- Object* identity_hash = key->GetIdentityHash(); |
- CHECK_EQ(identity_hash, CcTest::heap()->undefined_value()); |
+ Handle<Object> identity_hash = JSReceiver::GetIdentityHash(isolate, key); |
+ CHECK_EQ(CcTest::heap()->undefined_value(), *identity_hash); |
} |
} |