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 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1069 // Write barrier support for address[offset] = o. | 1069 // Write barrier support for address[offset] = o. |
1070 INLINE(void RecordWrite(Address address, int offset)); | 1070 INLINE(void RecordWrite(Address address, int offset)); |
1071 | 1071 |
1072 // Write barrier support for address[start : start + len[ = o. | 1072 // Write barrier support for address[start : start + len[ = o. |
1073 INLINE(void RecordWrites(Address address, int start, int len)); | 1073 INLINE(void RecordWrites(Address address, int start, int len)); |
1074 | 1074 |
1075 Address* store_buffer_top_address() { | 1075 Address* store_buffer_top_address() { |
1076 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]); | 1076 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]); |
1077 } | 1077 } |
1078 | 1078 |
| 1079 void ClearRecordedSlot(HeapObject* object, Object** slot); |
| 1080 |
1079 // =========================================================================== | 1081 // =========================================================================== |
1080 // Incremental marking API. ================================================== | 1082 // Incremental marking API. ================================================== |
1081 // =========================================================================== | 1083 // =========================================================================== |
1082 | 1084 |
1083 // Start incremental marking and ensure that idle time handler can perform | 1085 // Start incremental marking and ensure that idle time handler can perform |
1084 // incremental steps. | 1086 // incremental steps. |
1085 void StartIdleIncrementalMarking(); | 1087 void StartIdleIncrementalMarking(); |
1086 | 1088 |
1087 // Starts incremental marking assuming incremental marking is currently | 1089 // Starts incremental marking assuming incremental marking is currently |
1088 // stopped. | 1090 // stopped. |
(...skipping 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2630 | 2632 |
2631 private: | 2633 private: |
2632 friend class NewSpace; | 2634 friend class NewSpace; |
2633 DISALLOW_COPY_AND_ASSIGN(InlineAllocationObserver); | 2635 DISALLOW_COPY_AND_ASSIGN(InlineAllocationObserver); |
2634 }; | 2636 }; |
2635 | 2637 |
2636 } // namespace internal | 2638 } // namespace internal |
2637 } // namespace v8 | 2639 } // namespace v8 |
2638 | 2640 |
2639 #endif // V8_HEAP_HEAP_H_ | 2641 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |