Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index 7f7c8ebf2bb690ac769e2ea4d18227a1d1db6ad7..217ac0123eb3e96040cebb2ebfd358d197922285 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -6227,18 +6227,7 @@ TEST(SharedFunctionInfoIterator) { |
HeapIterator it(heap); |
for (HeapObject* obj = it.next(); obj != NULL; obj = it.next()) { |
if (!obj->IsSharedFunctionInfo()) continue; |
- // Shared function infos without a script (API functions or C++ builtins) |
- // are not returned by the iterator because they are not created from a |
- // script. They are not interesting for type feedback vector anyways. |
- |
- // TODO(mvstanton): There are builtins that use type feedback vectors, |
- // consider adding these to the iterator. |
- SharedFunctionInfo* shared = SharedFunctionInfo::cast(obj); |
- if (shared->script()->IsUndefined()) { |
- CHECK(shared->native() || shared->feedback_vector()->is_empty()); |
- } else { |
- sfi_count++; |
- } |
+ sfi_count++; |
} |
} |