OLD | NEW |
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 <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 static const int kMaxSemiSpaceSizeHugeMemoryDevice = 8 * kPointerMultiplier; | 620 static const int kMaxSemiSpaceSizeHugeMemoryDevice = 8 * kPointerMultiplier; |
621 | 621 |
622 // The old space size has to be a multiple of Page::kPageSize. | 622 // The old space size has to be a multiple of Page::kPageSize. |
623 // Sizes are in MB. | 623 // Sizes are in MB. |
624 static const int kMaxOldSpaceSizeLowMemoryDevice = 128 * kPointerMultiplier; | 624 static const int kMaxOldSpaceSizeLowMemoryDevice = 128 * kPointerMultiplier; |
625 static const int kMaxOldSpaceSizeMediumMemoryDevice = | 625 static const int kMaxOldSpaceSizeMediumMemoryDevice = |
626 256 * kPointerMultiplier; | 626 256 * kPointerMultiplier; |
627 static const int kMaxOldSpaceSizeHighMemoryDevice = 512 * kPointerMultiplier; | 627 static const int kMaxOldSpaceSizeHighMemoryDevice = 512 * kPointerMultiplier; |
628 static const int kMaxOldSpaceSizeHugeMemoryDevice = 1024 * kPointerMultiplier; | 628 static const int kMaxOldSpaceSizeHugeMemoryDevice = 1024 * kPointerMultiplier; |
629 | 629 |
630 // The executable size has to be a multiple of Page::kPageSize. | |
631 // Sizes are in MB. | |
632 static const int kMaxExecutableSizeLowMemoryDevice = 96 * kPointerMultiplier; | |
633 static const int kMaxExecutableSizeMediumMemoryDevice = | |
634 192 * kPointerMultiplier; | |
635 static const int kMaxExecutableSizeHighMemoryDevice = | |
636 256 * kPointerMultiplier; | |
637 static const int kMaxExecutableSizeHugeMemoryDevice = | |
638 256 * kPointerMultiplier; | |
639 | |
640 static const int kTraceRingBufferSize = 512; | 630 static const int kTraceRingBufferSize = 512; |
641 static const int kStacktraceBufferSize = 512; | 631 static const int kStacktraceBufferSize = 512; |
642 | 632 |
643 V8_EXPORT_PRIVATE static const double kMinHeapGrowingFactor; | 633 V8_EXPORT_PRIVATE static const double kMinHeapGrowingFactor; |
644 V8_EXPORT_PRIVATE static const double kMaxHeapGrowingFactor; | 634 V8_EXPORT_PRIVATE static const double kMaxHeapGrowingFactor; |
645 static const double kMaxHeapGrowingFactorMemoryConstrained; | 635 static const double kMaxHeapGrowingFactorMemoryConstrained; |
646 static const double kMaxHeapGrowingFactorIdle; | 636 static const double kMaxHeapGrowingFactorIdle; |
647 static const double kConservativeHeapGrowingFactor; | 637 static const double kConservativeHeapGrowingFactor; |
648 static const double kTargetMutatorUtilization; | 638 static const double kTargetMutatorUtilization; |
649 | 639 |
(...skipping 1997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2647 friend class PagedSpace; | 2637 friend class PagedSpace; |
2648 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2638 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
2649 }; | 2639 }; |
2650 | 2640 |
2651 V8_EXPORT_PRIVATE const char* AllocationSpaceName(AllocationSpace space); | 2641 V8_EXPORT_PRIVATE const char* AllocationSpaceName(AllocationSpace space); |
2652 | 2642 |
2653 } // namespace internal | 2643 } // namespace internal |
2654 } // namespace v8 | 2644 } // namespace v8 |
2655 | 2645 |
2656 #endif // V8_HEAP_HEAP_H_ | 2646 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |