Index: src/heap-inl.h |
diff --git a/src/heap-inl.h b/src/heap-inl.h |
index 6f4b69c0a4b6864d5ab209dfe3172e8a46a5b8e6..08ca47b6fbd4765e92f37a10d7872af155e62f32 100644 |
--- a/src/heap-inl.h |
+++ b/src/heap-inl.h |
@@ -669,6 +669,19 @@ void ExternalStringTable::ShrinkNewStrings(int position) { |
} |
+void ErrorObjectList::Add(JSObject* object) { |
+ list_.Add(object); |
+} |
+ |
+ |
+void ErrorObjectList::Iterate(ObjectVisitor* v) { |
+ if (!list_.is_empty()) { |
+ Object** start = &list_[0]; |
+ v->VisitPointers(start, start + list_.length()); |
+ } |
+} |
+ |
+ |
void Heap::ClearInstanceofCache() { |
set_instanceof_cache_function(the_hole_value()); |
} |