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

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

Issue 2416243002: Make unittests work in component build (Closed)
Patch Set: updates Created 4 years, 2 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/gc-tracer.h ('k') | src/heap/memory-reducer.h » ('j') | 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 #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 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 static const int kMaxExecutableSizeMediumMemoryDevice = 616 static const int kMaxExecutableSizeMediumMemoryDevice =
617 192 * kPointerMultiplier; 617 192 * kPointerMultiplier;
618 static const int kMaxExecutableSizeHighMemoryDevice = 618 static const int kMaxExecutableSizeHighMemoryDevice =
619 256 * kPointerMultiplier; 619 256 * kPointerMultiplier;
620 static const int kMaxExecutableSizeHugeMemoryDevice = 620 static const int kMaxExecutableSizeHugeMemoryDevice =
621 256 * kPointerMultiplier; 621 256 * kPointerMultiplier;
622 622
623 static const int kTraceRingBufferSize = 512; 623 static const int kTraceRingBufferSize = 512;
624 static const int kStacktraceBufferSize = 512; 624 static const int kStacktraceBufferSize = 512;
625 625
626 static const double kMinHeapGrowingFactor; 626 V8_EXPORT_PRIVATE static const double kMinHeapGrowingFactor;
627 static const double kMaxHeapGrowingFactor; 627 V8_EXPORT_PRIVATE static const double kMaxHeapGrowingFactor;
628 static const double kMaxHeapGrowingFactorMemoryConstrained; 628 static const double kMaxHeapGrowingFactorMemoryConstrained;
629 static const double kMaxHeapGrowingFactorIdle; 629 static const double kMaxHeapGrowingFactorIdle;
630 static const double kConservativeHeapGrowingFactor; 630 static const double kConservativeHeapGrowingFactor;
631 static const double kTargetMutatorUtilization; 631 static const double kTargetMutatorUtilization;
632 632
633 static const int kNoGCFlags = 0; 633 static const int kNoGCFlags = 0;
634 static const int kReduceMemoryFootprintMask = 1; 634 static const int kReduceMemoryFootprintMask = 1;
635 static const int kAbortIncrementalMarkingMask = 2; 635 static const int kAbortIncrementalMarkingMask = 2;
636 static const int kFinalizeIncrementalMarkingMask = 4; 636 static const int kFinalizeIncrementalMarkingMask = 4;
637 637
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 return true; 680 return true;
681 #else 681 #else
682 #ifdef VERIFY_HEAP 682 #ifdef VERIFY_HEAP
683 return FLAG_verify_heap; 683 return FLAG_verify_heap;
684 #else 684 #else
685 return false; 685 return false;
686 #endif 686 #endif
687 #endif 687 #endif
688 } 688 }
689 689
690 static double HeapGrowingFactor(double gc_speed, double mutator_speed); 690 V8_EXPORT_PRIVATE static double HeapGrowingFactor(double gc_speed,
691 double mutator_speed);
691 692
692 // Copy block of memory from src to dst. Size of block should be aligned 693 // Copy block of memory from src to dst. Size of block should be aligned
693 // by pointer size. 694 // by pointer size.
694 static inline void CopyBlock(Address dst, Address src, int byte_size); 695 static inline void CopyBlock(Address dst, Address src, int byte_size);
695 696
696 // Determines a static visitor id based on the given {map} that can then be 697 // Determines a static visitor id based on the given {map} that can then be
697 // stored on the map to facilitate fast dispatch for {StaticVisitorBase}. 698 // stored on the map to facilitate fast dispatch for {StaticVisitorBase}.
698 static int GetStaticVisitorIdForMap(Map* map); 699 static int GetStaticVisitorIdForMap(Map* map);
699 700
700 // Notifies the heap that is ok to start marking or other activities that 701 // Notifies the heap that is ok to start marking or other activities that
(...skipping 1938 matching lines...) Expand 10 before | Expand all | Expand 10 after
2639 } 2640 }
2640 2641
2641 private: 2642 private:
2642 Heap* heap_; 2643 Heap* heap_;
2643 }; 2644 };
2644 2645
2645 } // namespace internal 2646 } // namespace internal
2646 } // namespace v8 2647 } // namespace v8
2647 2648
2648 #endif // V8_HEAP_HEAP_H_ 2649 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « src/heap/gc-tracer.h ('k') | src/heap/memory-reducer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698