Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(320)

Unified Diff: src/heap-inl.h

Issue 364173004: Fix changed expectation in Heap::AllowToBeMigrated. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap-inl.h
diff --git a/src/heap-inl.h b/src/heap-inl.h
index 77538cac52cd60ac3d3b135b8233d54511976524..fdf86ff2cc85c18809afb6d91f0112d6835ce02f 100644
--- a/src/heap-inl.h
+++ b/src/heap-inl.h
@@ -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:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698