Commit a97789d6 authored by yangguo@chromium.org's avatar yangguo@chromium.org

Fix changed expectation in Heap::AllowToBeMigrated.

R=hpayer@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22194 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent dfa8df2f
......@@ -469,9 +469,8 @@ bool Heap::AllowedToBeMigrated(HeapObject* obj, AllocationSpace dst) {
case NEW_SPACE:
return dst == src || dst == TargetSpaceId(type);
case OLD_POINTER_SPACE:
return dst == src &&
(dst == TargetSpaceId(type) || obj->IsFiller() ||
(obj->IsExternalString() && ExternalString::cast(obj)->is_short()));
return dst == src && (dst == TargetSpaceId(type) || obj->IsFiller() ||
(obj->IsExternalString()));
case OLD_DATA_SPACE:
return dst == src && dst == TargetSpaceId(type);
case CODE_SPACE:
......
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