Index: test/cctest/test-migrations.cc |
diff --git a/test/cctest/test-migrations.cc b/test/cctest/test-migrations.cc |
index 443e8e1585fe365f0daebc40f6a60c5564f08d78..3be173453a5b407b6614af55f0dd348594df0030 100644 |
--- a/test/cctest/test-migrations.cc |
+++ b/test/cctest/test-migrations.cc |
@@ -233,12 +233,14 @@ class Expectations { |
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: |
- return HeapType::cast(expected_value)->Equals(HeapType::cast(value)); |
+ case ACCESSOR: { |
+ HeapType* type = descriptors->GetFieldType(descriptor); |
+ return HeapType::cast(expected_value)->Equals(type); |
+ } |
case DATA_CONSTANT: |
return value == expected_value; |