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

Side by Side Diff: src/heap/spaces.h

Issue 2758563002: [gn] Enable stricter build flags (Closed)
Patch Set: Fix one last unused variable error Created 3 years, 9 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 #ifndef V8_HEAP_SPACES_H_ 5 #ifndef V8_HEAP_SPACES_H_
6 #define V8_HEAP_SPACES_H_ 6 #define V8_HEAP_SPACES_H_
7 7
8 #include <list> 8 #include <list>
9 #include <memory> 9 #include <memory>
10 #include <unordered_set> 10 #include <unordered_set>
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 inline Address MarkbitIndexToAddress(uint32_t index) const { 527 inline Address MarkbitIndexToAddress(uint32_t index) const {
528 return this->address() + (index << kPointerSizeLog2); 528 return this->address() + (index << kPointerSizeLog2);
529 } 529 }
530 530
531 void ClearLiveness(); 531 void ClearLiveness();
532 532
533 void PrintMarkbits() { markbits()->Print(); } 533 void PrintMarkbits() { markbits()->Print(); }
534 534
535 void SetFlag(Flag flag) { flags_ |= flag; } 535 void SetFlag(Flag flag) { flags_ |= flag; }
536 void ClearFlag(Flag flag) { flags_ &= ~Flags(flag); } 536 void ClearFlag(Flag flag) { flags_ &= ~Flags(flag); }
537 bool IsFlagSet(Flag flag) { return flags_ & flag; } 537 bool IsFlagSet(Flag flag) { return (flags_ & flag) != 0; }
538 538
539 // Set or clear multiple flags at a time. The flags in the mask are set to 539 // Set or clear multiple flags at a time. The flags in the mask are set to
540 // the value in "flags", the rest retain the current value in |flags_|. 540 // the value in "flags", the rest retain the current value in |flags_|.
541 void SetFlags(uintptr_t flags, uintptr_t mask) { 541 void SetFlags(uintptr_t flags, uintptr_t mask) {
542 flags_ = (flags_ & ~Flags(mask)) | (Flags(flags) & Flags(mask)); 542 flags_ = (flags_ & ~Flags(mask)) | (Flags(flags) & Flags(mask));
543 } 543 }
544 544
545 // Return all current flags. 545 // Return all current flags.
546 uintptr_t GetFlags() { return flags_; } 546 uintptr_t GetFlags() { return flags_; }
547 547
(...skipping 2409 matching lines...) Expand 10 before | Expand all | Expand 10 after
2957 PageIterator old_iterator_; 2957 PageIterator old_iterator_;
2958 PageIterator code_iterator_; 2958 PageIterator code_iterator_;
2959 PageIterator map_iterator_; 2959 PageIterator map_iterator_;
2960 LargePageIterator lo_iterator_; 2960 LargePageIterator lo_iterator_;
2961 }; 2961 };
2962 2962
2963 } // namespace internal 2963 } // namespace internal
2964 } // namespace v8 2964 } // namespace v8
2965 2965
2966 #endif // V8_HEAP_SPACES_H_ 2966 #endif // V8_HEAP_SPACES_H_
OLDNEW
« src/compiler/gap-resolver.cc ('K') | « src/heap/heap-inl.h ('k') | src/heap/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698