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 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1078 128 * kPointerMultiplier; | 1078 128 * kPointerMultiplier; |
1079 static const int kMaxOldSpaceSizeMediumMemoryDevice = | 1079 static const int kMaxOldSpaceSizeMediumMemoryDevice = |
1080 256 * kPointerMultiplier; | 1080 256 * kPointerMultiplier; |
1081 static const int kMaxOldSpaceSizeHighMemoryDevice = | 1081 static const int kMaxOldSpaceSizeHighMemoryDevice = |
1082 512 * kPointerMultiplier; | 1082 512 * kPointerMultiplier; |
1083 static const int kMaxOldSpaceSizeHugeMemoryDevice = | 1083 static const int kMaxOldSpaceSizeHugeMemoryDevice = |
1084 700 * kPointerMultiplier; | 1084 700 * kPointerMultiplier; |
1085 | 1085 |
1086 // The executable size has to be a multiple of Page::kPageSize. | 1086 // The executable size has to be a multiple of Page::kPageSize. |
1087 // Sizes are in MB. | 1087 // Sizes are in MB. |
1088 static const int kMaxExecutableSizeLowMemoryDevice = | 1088 static const int kMaxExecutableSizeLowMemoryDevice = 96 * kPointerMultiplier; |
1089 128 * kPointerMultiplier; | |
1090 static const int kMaxExecutableSizeMediumMemoryDevice = | 1089 static const int kMaxExecutableSizeMediumMemoryDevice = |
| 1090 192 * kPointerMultiplier; |
| 1091 static const int kMaxExecutableSizeHighMemoryDevice = |
1091 256 * kPointerMultiplier; | 1092 256 * kPointerMultiplier; |
1092 static const int kMaxExecutableSizeHighMemoryDevice = | |
1093 512 * kPointerMultiplier; | |
1094 static const int kMaxExecutableSizeHugeMemoryDevice = | 1093 static const int kMaxExecutableSizeHugeMemoryDevice = |
1095 700 * kPointerMultiplier; | 1094 256 * kPointerMultiplier; |
1096 | 1095 |
1097 intptr_t OldGenerationAllocationLimit(intptr_t old_gen_size, | 1096 intptr_t OldGenerationAllocationLimit(intptr_t old_gen_size, |
1098 int freed_global_handles); | 1097 int freed_global_handles); |
1099 | 1098 |
1100 // Indicates whether inline bump-pointer allocation has been disabled. | 1099 // Indicates whether inline bump-pointer allocation has been disabled. |
1101 bool inline_allocation_disabled() { return inline_allocation_disabled_; } | 1100 bool inline_allocation_disabled() { return inline_allocation_disabled_; } |
1102 | 1101 |
1103 // Switch whether inline bump-pointer allocation should be used. | 1102 // Switch whether inline bump-pointer allocation should be used. |
1104 void EnableInlineAllocation(); | 1103 void EnableInlineAllocation(); |
1105 void DisableInlineAllocation(); | 1104 void DisableInlineAllocation(); |
(...skipping 1548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2654 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2653 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2655 | 2654 |
2656 private: | 2655 private: |
2657 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2656 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2658 }; | 2657 }; |
2659 #endif // DEBUG | 2658 #endif // DEBUG |
2660 | 2659 |
2661 } } // namespace v8::internal | 2660 } } // namespace v8::internal |
2662 | 2661 |
2663 #endif // V8_HEAP_H_ | 2662 #endif // V8_HEAP_H_ |
OLD | NEW |