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 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1061 int freed_global_handles); | 1061 int freed_global_handles); |
1062 | 1062 |
1063 // Indicates whether inline bump-pointer allocation has been disabled. | 1063 // Indicates whether inline bump-pointer allocation has been disabled. |
1064 bool inline_allocation_disabled() { return inline_allocation_disabled_; } | 1064 bool inline_allocation_disabled() { return inline_allocation_disabled_; } |
1065 | 1065 |
1066 // Switch whether inline bump-pointer allocation should be used. | 1066 // Switch whether inline bump-pointer allocation should be used. |
1067 void EnableInlineAllocation(); | 1067 void EnableInlineAllocation(); |
1068 void DisableInlineAllocation(); | 1068 void DisableInlineAllocation(); |
1069 | 1069 |
1070 // Implements the corresponding V8 API function. | 1070 // Implements the corresponding V8 API function. |
1071 bool IdleNotification(int hint); | 1071 bool IdleNotification(int idle_time_in_ms); |
1072 | 1072 |
1073 // Declare all the root indices. This defines the root list order. | 1073 // Declare all the root indices. This defines the root list order. |
1074 enum RootListIndex { | 1074 enum RootListIndex { |
1075 #define ROOT_INDEX_DECLARATION(type, name, camel_name) k##camel_name##RootIndex, | 1075 #define ROOT_INDEX_DECLARATION(type, name, camel_name) k##camel_name##RootIndex, |
1076 STRONG_ROOT_LIST(ROOT_INDEX_DECLARATION) | 1076 STRONG_ROOT_LIST(ROOT_INDEX_DECLARATION) |
1077 #undef ROOT_INDEX_DECLARATION | 1077 #undef ROOT_INDEX_DECLARATION |
1078 | 1078 |
1079 #define STRING_INDEX_DECLARATION(name, str) k##name##RootIndex, | 1079 #define STRING_INDEX_DECLARATION(name, str) k##name##RootIndex, |
1080 INTERNALIZED_STRING_LIST(STRING_INDEX_DECLARATION) | 1080 INTERNALIZED_STRING_LIST(STRING_INDEX_DECLARATION) |
1081 #undef STRING_DECLARATION | 1081 #undef STRING_DECLARATION |
(...skipping 1456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2538 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2538 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2539 | 2539 |
2540 private: | 2540 private: |
2541 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2541 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2542 }; | 2542 }; |
2543 #endif // DEBUG | 2543 #endif // DEBUG |
2544 } | 2544 } |
2545 } // namespace v8::internal | 2545 } // namespace v8::internal |
2546 | 2546 |
2547 #endif // V8_HEAP_HEAP_H_ | 2547 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |