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

Unified Diff: src/heap/heap.cc

Issue 1155043005: Fix compile warning [-Wtype-limits] (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comment Created 5 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 | « src/heap/heap.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index 37eb00485f7ae463aadeb41b3a5d3a6b4143a70b..b1fa445fa4aef2e0f54976a423f9dfd21acbadd3 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -4830,6 +4830,20 @@ bool Heap::InSpace(Address addr, AllocationSpace space) {
}
+bool Heap::IsValidAllocationSpace(AllocationSpace space) {
+ switch (space) {
+ case NEW_SPACE:
+ case OLD_SPACE:
+ case CODE_SPACE:
+ case MAP_SPACE:
+ case LO_SPACE:
+ return true;
+ default:
+ return false;
+ }
+}
+
+
bool Heap::RootIsImmortalImmovable(int root_index) {
switch (root_index) {
#define CASE(name) \
« no previous file with comments | « src/heap/heap.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698