Commit 528fd3c6 authored by yangguo@chromium.org's avatar yangguo@chromium.org

Do not use default for switch over AllocationSpace.

R=svenpanne@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@21089 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent f7201231
......@@ -401,7 +401,7 @@ bool Heap::AllowedToBeMigrated(HeapObject* obj, AllocationSpace dst) {
case PROPERTY_CELL_SPACE:
case LO_SPACE:
return false;
default:
case INVALID_SPACE:
break;
}
UNREACHABLE();
......
......@@ -4619,7 +4619,7 @@ bool Heap::InSpace(Address addr, AllocationSpace space) {
return property_cell_space_->Contains(addr);
case LO_SPACE:
return lo_space_->SlowContains(addr);
default:
case INVALID_SPACE:
break;
}
UNREACHABLE();
......
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