Index: test/cctest/test-field-type-tracking.cc |
diff --git a/test/cctest/test-field-type-tracking.cc b/test/cctest/test-field-type-tracking.cc |
index 2bb80530352abd349014c8c42ccc505d927dbf05..89456bd6baa193fb82f9e9b339d637a201c7c672 100644 |
--- a/test/cctest/test-field-type-tracking.cc |
+++ b/test/cctest/test-field-type-tracking.cc |
@@ -621,6 +621,17 @@ static void TestGeneralizeRepresentation( |
CHECK_EQ(expected_field_type_dependency, info.dependencies()->HasAborted()); |
} |
+ { |
+ // Check that all previous maps are not stable. |
+ Map* tmp = *new_map; |
+ while (true) { |
+ Object* back = tmp->GetBackPointer(); |
+ if (back->IsUndefined()) break; |
+ tmp = Map::cast(back); |
+ CHECK(!tmp->is_stable()); |
+ } |
+ } |
+ |
info.dependencies()->Rollback(); // Properly cleanup compilation info. |
// Update all deprecated maps and check that they are now the same. |