| 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 <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 static const int kMaxSemiSpaceSizeMediumMemoryDevice = 4 * kPointerMultiplier; | 596 static const int kMaxSemiSpaceSizeMediumMemoryDevice = 4 * kPointerMultiplier; |
| 597 static const int kMaxSemiSpaceSizeHighMemoryDevice = 8 * kPointerMultiplier; | 597 static const int kMaxSemiSpaceSizeHighMemoryDevice = 8 * kPointerMultiplier; |
| 598 static const int kMaxSemiSpaceSizeHugeMemoryDevice = 8 * kPointerMultiplier; | 598 static const int kMaxSemiSpaceSizeHugeMemoryDevice = 8 * kPointerMultiplier; |
| 599 | 599 |
| 600 // The old space size has to be a multiple of Page::kPageSize. | 600 // The old space size has to be a multiple of Page::kPageSize. |
| 601 // Sizes are in MB. | 601 // Sizes are in MB. |
| 602 static const int kMaxOldSpaceSizeLowMemoryDevice = 128 * kPointerMultiplier; | 602 static const int kMaxOldSpaceSizeLowMemoryDevice = 128 * kPointerMultiplier; |
| 603 static const int kMaxOldSpaceSizeMediumMemoryDevice = | 603 static const int kMaxOldSpaceSizeMediumMemoryDevice = |
| 604 256 * kPointerMultiplier; | 604 256 * kPointerMultiplier; |
| 605 static const int kMaxOldSpaceSizeHighMemoryDevice = 512 * kPointerMultiplier; | 605 static const int kMaxOldSpaceSizeHighMemoryDevice = 512 * kPointerMultiplier; |
| 606 static const int kMaxOldSpaceSizeHugeMemoryDevice = 700 * kPointerMultiplier; | 606 static const int kMaxOldSpaceSizeHugeMemoryDevice = 1024 * kPointerMultiplier; |
| 607 | 607 |
| 608 // The executable size has to be a multiple of Page::kPageSize. | 608 // The executable size has to be a multiple of Page::kPageSize. |
| 609 // Sizes are in MB. | 609 // Sizes are in MB. |
| 610 static const int kMaxExecutableSizeLowMemoryDevice = 96 * kPointerMultiplier; | 610 static const int kMaxExecutableSizeLowMemoryDevice = 96 * kPointerMultiplier; |
| 611 static const int kMaxExecutableSizeMediumMemoryDevice = | 611 static const int kMaxExecutableSizeMediumMemoryDevice = |
| 612 192 * kPointerMultiplier; | 612 192 * kPointerMultiplier; |
| 613 static const int kMaxExecutableSizeHighMemoryDevice = | 613 static const int kMaxExecutableSizeHighMemoryDevice = |
| 614 256 * kPointerMultiplier; | 614 256 * kPointerMultiplier; |
| 615 static const int kMaxExecutableSizeHugeMemoryDevice = | 615 static const int kMaxExecutableSizeHugeMemoryDevice = |
| 616 256 * kPointerMultiplier; | 616 256 * kPointerMultiplier; |
| (...skipping 2022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2639 friend class LargeObjectSpace; | 2639 friend class LargeObjectSpace; |
| 2640 friend class NewSpace; | 2640 friend class NewSpace; |
| 2641 friend class PagedSpace; | 2641 friend class PagedSpace; |
| 2642 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2642 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
| 2643 }; | 2643 }; |
| 2644 | 2644 |
| 2645 } // namespace internal | 2645 } // namespace internal |
| 2646 } // namespace v8 | 2646 } // namespace v8 |
| 2647 | 2647 |
| 2648 #endif // V8_HEAP_HEAP_H_ | 2648 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |