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_H_ | 5 #ifndef V8_HEAP_H_ |
6 #define V8_HEAP_H_ | 6 #define V8_HEAP_H_ |
7 | 7 |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1069 128 * kPointerMultiplier; | 1069 128 * kPointerMultiplier; |
1070 static const int kMaxOldSpaceSizeMediumMemoryDevice = | 1070 static const int kMaxOldSpaceSizeMediumMemoryDevice = |
1071 256 * kPointerMultiplier; | 1071 256 * kPointerMultiplier; |
1072 static const int kMaxOldSpaceSizeHighMemoryDevice = | 1072 static const int kMaxOldSpaceSizeHighMemoryDevice = |
1073 512 * kPointerMultiplier; | 1073 512 * kPointerMultiplier; |
1074 static const int kMaxOldSpaceSizeHugeMemoryDevice = | 1074 static const int kMaxOldSpaceSizeHugeMemoryDevice = |
1075 700 * kPointerMultiplier; | 1075 700 * kPointerMultiplier; |
1076 | 1076 |
1077 // The executable size has to be a multiple of Page::kPageSize. | 1077 // The executable size has to be a multiple of Page::kPageSize. |
1078 // Sizes are in MB. | 1078 // Sizes are in MB. |
1079 static const int kMaxExecutableSizeLowMemoryDevice = | 1079 static const int kMaxExecutableSizeLowMemoryDevice = 96 * kPointerMultiplier; |
1080 128 * kPointerMultiplier; | |
1081 static const int kMaxExecutableSizeMediumMemoryDevice = | 1080 static const int kMaxExecutableSizeMediumMemoryDevice = |
| 1081 192 * kPointerMultiplier; |
| 1082 static const int kMaxExecutableSizeHighMemoryDevice = |
1082 256 * kPointerMultiplier; | 1083 256 * kPointerMultiplier; |
1083 static const int kMaxExecutableSizeHighMemoryDevice = | |
1084 512 * kPointerMultiplier; | |
1085 static const int kMaxExecutableSizeHugeMemoryDevice = | 1084 static const int kMaxExecutableSizeHugeMemoryDevice = |
1086 700 * kPointerMultiplier; | 1085 256 * kPointerMultiplier; |
1087 | 1086 |
1088 intptr_t OldGenerationAllocationLimit(intptr_t old_gen_size, | 1087 intptr_t OldGenerationAllocationLimit(intptr_t old_gen_size, |
1089 int freed_global_handles); | 1088 int freed_global_handles); |
1090 | 1089 |
1091 // Indicates whether inline bump-pointer allocation has been disabled. | 1090 // Indicates whether inline bump-pointer allocation has been disabled. |
1092 bool inline_allocation_disabled() { return inline_allocation_disabled_; } | 1091 bool inline_allocation_disabled() { return inline_allocation_disabled_; } |
1093 | 1092 |
1094 // Switch whether inline bump-pointer allocation should be used. | 1093 // Switch whether inline bump-pointer allocation should be used. |
1095 void EnableInlineAllocation(); | 1094 void EnableInlineAllocation(); |
1096 void DisableInlineAllocation(); | 1095 void DisableInlineAllocation(); |
(...skipping 1649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2746 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2745 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2747 | 2746 |
2748 private: | 2747 private: |
2749 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2748 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2750 }; | 2749 }; |
2751 #endif // DEBUG | 2750 #endif // DEBUG |
2752 | 2751 |
2753 } } // namespace v8::internal | 2752 } } // namespace v8::internal |
2754 | 2753 |
2755 #endif // V8_HEAP_H_ | 2754 #endif // V8_HEAP_H_ |
OLD | NEW |