Commit cb62d5c7 authored by ager@chromium.org's avatar ager@chromium.org

Fix LargeObjectSpace::Verify to allow external strings in large object

space.

This can happen if a very big sequential string gets externalized.

Review URL: http://codereview.chromium.org/185005

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2817 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent d7dcf8d6
......@@ -2561,10 +2561,12 @@ void LargeObjectSpace::Verify() {
ASSERT(map->IsMap());
ASSERT(Heap::map_space()->Contains(map));
// We have only code, sequential strings, fixed arrays, and byte arrays
// in large object space.
ASSERT(object->IsCode() || object->IsSeqString()
|| object->IsFixedArray() || object->IsByteArray());
// We have only code, sequential strings, external strings
// (sequential strings that have been morphed into external
// strings), fixed arrays, and byte arrays in large object space.
ASSERT(object->IsCode() || object->IsSeqString() ||
object->IsExternalString() || object->IsFixedArray() ||
object->IsByteArray());
// The object itself should look OK.
object->Verify();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment