Reviewers: Sven Panne,
Description:
Do not use default for switch over AllocationSpace.
[email protected]
Please review this at https://codereview.chromium.org/262583004/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+2, -2 lines):
M src/heap.cc
M src/heap-inl.h
Index: src/heap-inl.h
diff --git a/src/heap-inl.h b/src/heap-inl.h
index
ab11b325c1e0bcbfbba63f71ee88ef9f87e77532..40f4142db75296d99cc97b87306ab5768ef481ba
100644
--- a/src/heap-inl.h
+++ b/src/heap-inl.h
@@ -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();
Index: src/heap.cc
diff --git a/src/heap.cc b/src/heap.cc
index
188b246db29b8ed51c3f8aaa695b83af09423f37..1ffd5c9a3e3f4680abcd645284da165227fcdec3
100644
--- a/src/heap.cc
+++ b/src/heap.cc
@@ -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();
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.