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 |
11 #include "src/allocation.h" | 11 #include "src/allocation.h" |
12 #include "src/assert-scope.h" | 12 #include "src/assert-scope.h" |
13 #include "src/counters.h" | |
14 #include "src/globals.h" | 13 #include "src/globals.h" |
15 #include "src/heap/gc-idle-time-handler.h" | 14 #include "src/heap/gc-idle-time-handler.h" |
16 #include "src/heap/gc-tracer.h" | 15 #include "src/heap/gc-tracer.h" |
17 #include "src/heap/incremental-marking.h" | 16 #include "src/heap/incremental-marking.h" |
18 #include "src/heap/mark-compact.h" | 17 #include "src/heap/mark-compact.h" |
19 #include "src/heap/memory-reducer.h" | 18 #include "src/heap/memory-reducer.h" |
20 #include "src/heap/objects-visiting.h" | 19 #include "src/heap/objects-visiting.h" |
21 #include "src/heap/spaces.h" | 20 #include "src/heap/spaces.h" |
22 #include "src/heap/store-buffer.h" | 21 #include "src/heap/store-buffer.h" |
23 #include "src/list.h" | 22 #include "src/list.h" |
24 #include "src/splay-tree-inl.h" | |
25 | 23 |
26 namespace v8 { | 24 namespace v8 { |
27 namespace internal { | 25 namespace internal { |
28 | 26 |
29 // Defines all the roots in Heap. | 27 // Defines all the roots in Heap. |
30 #define STRONG_ROOT_LIST(V) \ | 28 #define STRONG_ROOT_LIST(V) \ |
31 V(Map, byte_array_map, ByteArrayMap) \ | 29 V(Map, byte_array_map, ByteArrayMap) \ |
32 V(Map, free_space_map, FreeSpaceMap) \ | 30 V(Map, free_space_map, FreeSpaceMap) \ |
33 V(Map, one_pointer_filler_map, OnePointerFillerMap) \ | 31 V(Map, one_pointer_filler_map, OnePointerFillerMap) \ |
34 V(Map, two_pointer_filler_map, TwoPointerFillerMap) \ | 32 V(Map, two_pointer_filler_map, TwoPointerFillerMap) \ |
(...skipping 2746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2781 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2779 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2782 | 2780 |
2783 private: | 2781 private: |
2784 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2782 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2785 }; | 2783 }; |
2786 #endif // DEBUG | 2784 #endif // DEBUG |
2787 } | 2785 } |
2788 } // namespace v8::internal | 2786 } // namespace v8::internal |
2789 | 2787 |
2790 #endif // V8_HEAP_HEAP_H_ | 2788 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |