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

Side by Side Diff: src/heap/heap.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 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 #ifndef V8_HEAP_HEAP_H_ 5 #ifndef V8_HEAP_HEAP_H_
6 #define V8_HEAP_HEAP_H_ 6 #define V8_HEAP_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 #include <map> 9 #include <map>
10 10
(...skipping 1628 matching lines...) Expand 10 before | Expand all | Expand 10 after
1639 1639
1640 StoreBuffer* store_buffer() { return store_buffer_; } 1640 StoreBuffer* store_buffer() { return store_buffer_; }
1641 1641
1642 void set_current_gc_flags(int flags) { 1642 void set_current_gc_flags(int flags) {
1643 current_gc_flags_ = flags; 1643 current_gc_flags_ = flags;
1644 DCHECK(!ShouldFinalizeIncrementalMarking() || 1644 DCHECK(!ShouldFinalizeIncrementalMarking() ||
1645 !ShouldAbortIncrementalMarking()); 1645 !ShouldAbortIncrementalMarking());
1646 } 1646 }
1647 1647
1648 inline bool ShouldReduceMemory() const { 1648 inline bool ShouldReduceMemory() const {
1649 return current_gc_flags_ & kReduceMemoryFootprintMask; 1649 return (current_gc_flags_ & kReduceMemoryFootprintMask) != 0;
1650 } 1650 }
1651 1651
1652 inline bool ShouldAbortIncrementalMarking() const { 1652 inline bool ShouldAbortIncrementalMarking() const {
1653 return current_gc_flags_ & kAbortIncrementalMarkingMask; 1653 return (current_gc_flags_ & kAbortIncrementalMarkingMask) != 0;
1654 } 1654 }
1655 1655
1656 inline bool ShouldFinalizeIncrementalMarking() const { 1656 inline bool ShouldFinalizeIncrementalMarking() const {
1657 return current_gc_flags_ & kFinalizeIncrementalMarkingMask; 1657 return (current_gc_flags_ & kFinalizeIncrementalMarkingMask) != 0;
1658 } 1658 }
1659 1659
1660 void PreprocessStackTraces(); 1660 void PreprocessStackTraces();
1661 1661
1662 // Checks whether a global GC is necessary 1662 // Checks whether a global GC is necessary
1663 GarbageCollector SelectGarbageCollector(AllocationSpace space, 1663 GarbageCollector SelectGarbageCollector(AllocationSpace space,
1664 const char** reason); 1664 const char** reason);
1665 1665
1666 // Make sure there is a filler value behind the top of the new space 1666 // Make sure there is a filler value behind the top of the new space
1667 // so that the GC does not confuse some unintialized/stale memory 1667 // so that the GC does not confuse some unintialized/stale memory
(...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after
2614 friend class LargeObjectSpace; 2614 friend class LargeObjectSpace;
2615 friend class NewSpace; 2615 friend class NewSpace;
2616 friend class PagedSpace; 2616 friend class PagedSpace;
2617 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); 2617 DISALLOW_COPY_AND_ASSIGN(AllocationObserver);
2618 }; 2618 };
2619 2619
2620 } // namespace internal 2620 } // namespace internal
2621 } // namespace v8 2621 } // namespace v8
2622 2622
2623 #endif // V8_HEAP_HEAP_H_ 2623 #endif // V8_HEAP_HEAP_H_
OLDNEW
« src/compiler/gap-resolver.cc ('K') | « src/globals.h ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698