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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 /* slots with even indices refer to the weak object, and the subsequent */ \ | 209 /* slots with even indices refer to the weak object, and the subsequent */ \ |
210 /* slots refer to the code with the reference to the weak object. */ \ | 210 /* slots refer to the code with the reference to the weak object. */ \ |
211 V(ArrayList, weak_new_space_object_to_code_list, \ | 211 V(ArrayList, weak_new_space_object_to_code_list, \ |
212 WeakNewSpaceObjectToCodeList) \ | 212 WeakNewSpaceObjectToCodeList) \ |
213 V(Object, weak_stack_trace_list, WeakStackTraceList) \ | 213 V(Object, weak_stack_trace_list, WeakStackTraceList) \ |
214 V(Object, noscript_shared_function_infos, NoScriptSharedFunctionInfos) \ | 214 V(Object, noscript_shared_function_infos, NoScriptSharedFunctionInfos) \ |
215 V(FixedArray, serialized_templates, SerializedTemplates) \ | 215 V(FixedArray, serialized_templates, SerializedTemplates) \ |
216 V(FixedArray, serialized_global_proxy_sizes, SerializedGlobalProxySizes) \ | 216 V(FixedArray, serialized_global_proxy_sizes, SerializedGlobalProxySizes) \ |
217 /* Configured values */ \ | 217 /* Configured values */ \ |
218 V(TemplateList, message_listeners, MessageListeners) \ | 218 V(TemplateList, message_listeners, MessageListeners) \ |
| 219 V(InterceptorInfo, noop_interceptor_info, NoOpInterceptorInfo) \ |
219 V(Code, js_entry_code, JsEntryCode) \ | 220 V(Code, js_entry_code, JsEntryCode) \ |
220 V(Code, js_construct_entry_code, JsConstructEntryCode) \ | 221 V(Code, js_construct_entry_code, JsConstructEntryCode) \ |
221 /* Oddball maps */ \ | 222 /* Oddball maps */ \ |
222 V(Map, undefined_map, UndefinedMap) \ | 223 V(Map, undefined_map, UndefinedMap) \ |
223 V(Map, the_hole_map, TheHoleMap) \ | 224 V(Map, the_hole_map, TheHoleMap) \ |
224 V(Map, null_map, NullMap) \ | 225 V(Map, null_map, NullMap) \ |
225 V(Map, boolean_map, BooleanMap) \ | 226 V(Map, boolean_map, BooleanMap) \ |
226 V(Map, uninitialized_map, UninitializedMap) \ | 227 V(Map, uninitialized_map, UninitializedMap) \ |
227 V(Map, arguments_marker_map, ArgumentsMarkerMap) \ | 228 V(Map, arguments_marker_map, ArgumentsMarkerMap) \ |
228 V(Map, no_interceptor_result_sentinel_map, NoInterceptorResultSentinelMap) \ | 229 V(Map, no_interceptor_result_sentinel_map, NoInterceptorResultSentinelMap) \ |
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 template <FindMementoMode mode> | 831 template <FindMementoMode mode> |
831 inline AllocationMemento* FindAllocationMemento(HeapObject* object); | 832 inline AllocationMemento* FindAllocationMemento(HeapObject* object); |
832 | 833 |
833 // Returns false if not able to reserve. | 834 // Returns false if not able to reserve. |
834 bool ReserveSpace(Reservation* reservations, List<Address>* maps); | 835 bool ReserveSpace(Reservation* reservations, List<Address>* maps); |
835 | 836 |
836 // | 837 // |
837 // Support for the API. | 838 // Support for the API. |
838 // | 839 // |
839 | 840 |
840 void CreateApiObjects(); | 841 bool CreateApiObjects(); |
841 | 842 |
842 // Implements the corresponding V8 API function. | 843 // Implements the corresponding V8 API function. |
843 bool IdleNotification(double deadline_in_seconds); | 844 bool IdleNotification(double deadline_in_seconds); |
844 bool IdleNotification(int idle_time_in_ms); | 845 bool IdleNotification(int idle_time_in_ms); |
845 | 846 |
846 void MemoryPressureNotification(MemoryPressureLevel level, | 847 void MemoryPressureNotification(MemoryPressureLevel level, |
847 bool is_isolate_locked); | 848 bool is_isolate_locked); |
848 void CheckMemoryPressure(); | 849 void CheckMemoryPressure(); |
849 | 850 |
850 void SetOutOfMemoryCallback(v8::debug::OutOfMemoryCallback callback, | 851 void SetOutOfMemoryCallback(v8::debug::OutOfMemoryCallback callback, |
(...skipping 1843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2694 friend class LargeObjectSpace; | 2695 friend class LargeObjectSpace; |
2695 friend class NewSpace; | 2696 friend class NewSpace; |
2696 friend class PagedSpace; | 2697 friend class PagedSpace; |
2697 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2698 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
2698 }; | 2699 }; |
2699 | 2700 |
2700 } // namespace internal | 2701 } // namespace internal |
2701 } // namespace v8 | 2702 } // namespace v8 |
2702 | 2703 |
2703 #endif // V8_HEAP_HEAP_H_ | 2704 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |