Index: test/cctest/test-migrations.cc |
diff --git a/test/cctest/test-migrations.cc b/test/cctest/test-migrations.cc |
index c7aaf29d6643e420254aeefa6d4df871ed6ca99e..9eb367639a647da1592873dc6ea569cf4c831948 100644 |
--- a/test/cctest/test-migrations.cc |
+++ b/test/cctest/test-migrations.cc |
@@ -233,14 +233,12 @@ |
representations_[descriptor])) { |
return false; |
} |
+ Object* expected_value = *values_[descriptor]; |
Object* value = descriptors->GetValue(descriptor); |
- Object* expected_value = *values_[descriptor]; |
switch (type) { |
case DATA: |
- case ACCESSOR: { |
- HeapType* type = descriptors->GetFieldType(descriptor); |
- return HeapType::cast(expected_value)->Equals(type); |
- } |
+ case ACCESSOR: |
+ return HeapType::cast(expected_value)->Equals(HeapType::cast(value)); |
case DATA_CONSTANT: |
return value == expected_value; |