Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index e7ff3d0b26e28aac94b15266921e5d151ff1d860..211a20c1ea109f2a8e03105558e66e6c00f59588 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -1743,14 +1743,7 @@ TEST(OptimizedAllocationAlwaysInNewSpace) { |
static int CountMapTransitions(Map* map) { |
- int result = 0; |
- DescriptorArray* descs = map->instance_descriptors(); |
- for (int i = 0; i < descs->number_of_descriptors(); i++) { |
- if (descs->IsTransitionOnly(i)) { |
- result++; |
- } |
- } |
- return result; |
+ return map->transitions()->number_of_transitions(); |
} |