Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index cef8c3f25031b272c2400be433c2a3e1e9d7a479..b721ac299e8ba70f0d1859a57897cf8f0ff50d1b 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -6263,18 +6263,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++; |
} |
} |