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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « src/heap/heap.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/once.h" 10 #include "src/base/once.h"
(...skipping 4812 matching lines...) Expand 10 before | Expand all | Expand 10 after
4823 case MAP_SPACE: 4823 case MAP_SPACE:
4824 return map_space_->Contains(addr); 4824 return map_space_->Contains(addr);
4825 case LO_SPACE: 4825 case LO_SPACE:
4826 return lo_space_->SlowContains(addr); 4826 return lo_space_->SlowContains(addr);
4827 } 4827 }
4828 UNREACHABLE(); 4828 UNREACHABLE();
4829 return false; 4829 return false;
4830 } 4830 }
4831 4831
4832 4832
4833 bool Heap::IsValidAllocationSpace(AllocationSpace space) {
4834 switch (space) {
4835 case NEW_SPACE:
4836 case OLD_SPACE:
4837 case CODE_SPACE:
4838 case MAP_SPACE:
4839 case LO_SPACE:
4840 return true;
4841 default:
4842 return false;
4843 }
4844 }
4845
4846
4833 bool Heap::RootIsImmortalImmovable(int root_index) { 4847 bool Heap::RootIsImmortalImmovable(int root_index) {
4834 switch (root_index) { 4848 switch (root_index) {
4835 #define CASE(name) \ 4849 #define CASE(name) \
4836 case Heap::k##name##RootIndex: \ 4850 case Heap::k##name##RootIndex: \
4837 return true; 4851 return true;
4838 IMMORTAL_IMMOVABLE_ROOT_LIST(CASE); 4852 IMMORTAL_IMMOVABLE_ROOT_LIST(CASE);
4839 #undef CASE 4853 #undef CASE
4840 default: 4854 default:
4841 return false; 4855 return false;
4842 } 4856 }
(...skipping 1710 matching lines...) Expand 10 before | Expand all | Expand 10 after
6553 *object_type = "CODE_TYPE"; \ 6567 *object_type = "CODE_TYPE"; \
6554 *object_sub_type = "CODE_AGE/" #name; \ 6568 *object_sub_type = "CODE_AGE/" #name; \
6555 return true; 6569 return true;
6556 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) 6570 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME)
6557 #undef COMPARE_AND_RETURN_NAME 6571 #undef COMPARE_AND_RETURN_NAME
6558 } 6572 }
6559 return false; 6573 return false;
6560 } 6574 }
6561 } // namespace internal 6575 } // namespace internal
6562 } // namespace v8 6576 } // namespace v8
OLDNEW
« 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