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_MARK_COMPACT_H_ | 5 #ifndef V8_MARK_COMPACT_H_ |
6 #define V8_MARK_COMPACT_H_ | 6 #define V8_MARK_COMPACT_H_ |
7 | 7 |
8 #include "compiler-intrinsics.h" | 8 #include "src/compiler-intrinsics.h" |
9 #include "spaces.h" | 9 #include "src/spaces.h" |
10 | 10 |
11 namespace v8 { | 11 namespace v8 { |
12 namespace internal { | 12 namespace internal { |
13 | 13 |
14 // Callback function, returns whether an object is alive. The heap size | 14 // Callback function, returns whether an object is alive. The heap size |
15 // of the object is returned in size. It optionally updates the offset | 15 // of the object is returned in size. It optionally updates the offset |
16 // to the first live object in the page (only used for old and map objects). | 16 // to the first live object in the page (only used for old and map objects). |
17 typedef bool (*IsAliveFunction)(HeapObject* obj, int* size, int* offset); | 17 typedef bool (*IsAliveFunction)(HeapObject* obj, int* size, int* offset); |
18 | 18 |
19 // Forward declarations. | 19 // Forward declarations. |
(...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
984 private: | 984 private: |
985 MarkCompactCollector* collector_; | 985 MarkCompactCollector* collector_; |
986 }; | 986 }; |
987 | 987 |
988 | 988 |
989 const char* AllocationSpaceName(AllocationSpace space); | 989 const char* AllocationSpaceName(AllocationSpace space); |
990 | 990 |
991 } } // namespace v8::internal | 991 } } // namespace v8::internal |
992 | 992 |
993 #endif // V8_MARK_COMPACT_H_ | 993 #endif // V8_MARK_COMPACT_H_ |
OLD | NEW |