Commit b832d8e0 authored by hpayer@chromium.org's avatar hpayer@chromium.org

Ignore external strings in old pointer space migration invariant check.

BUG=
R=jkummerow@chromium.org

Review URL: https://codereview.chromium.org/20142008

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15880 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 5de783d4
......@@ -2742,8 +2742,9 @@ void MarkCompactCollector::MigrateObject(Address dst,
CHECK(dest != LO_SPACE && size <= Page::kMaxNonCodeHeapObjectSize);
if (dest == OLD_POINTER_SPACE) {
// TODO(hpayer): Replace this check with an assert.
CHECK(heap_->TargetSpace(HeapObject::FromAddress(src)) ==
heap_->old_pointer_space());
HeapObject* heap_object = HeapObject::FromAddress(src);
CHECK(heap_object->IsExternalString() ||
heap_->TargetSpace(heap_object) == heap_->old_pointer_space());
Address src_slot = src;
Address dst_slot = dst;
ASSERT(IsAligned(size, kPointerSize));
......
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