Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Side by Side Diff: src/heap/heap.h

Issue 1366183003: [heap] No leakage of mark-compact.h outside of heap. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // Clients of this interface shouldn't depend on lots of heap internals.
12 // Do not include anything from src/heap here!
11 #include "src/allocation.h" 13 #include "src/allocation.h"
12 #include "src/assert-scope.h" 14 #include "src/assert-scope.h"
13 #include "src/atomic-utils.h" 15 #include "src/atomic-utils.h"
14 #include "src/globals.h" 16 #include "src/globals.h"
17 // TODO(mstarzinger): Three more includes to kill!
15 #include "src/heap/incremental-marking.h" 18 #include "src/heap/incremental-marking.h"
16 #include "src/heap/mark-compact.h"
17 #include "src/heap/spaces.h" 19 #include "src/heap/spaces.h"
18 #include "src/heap/store-buffer.h" 20 #include "src/heap/store-buffer.h"
19 #include "src/list.h" 21 #include "src/list.h"
20 22
21 namespace v8 { 23 namespace v8 {
22 namespace internal { 24 namespace internal {
23 25
24 // Defines all the roots in Heap. 26 // Defines all the roots in Heap.
25 #define STRONG_ROOT_LIST(V) \ 27 #define STRONG_ROOT_LIST(V) \
26 V(Map, byte_array_map, ByteArrayMap) \ 28 V(Map, byte_array_map, ByteArrayMap) \
(...skipping 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after
1089 // Getters to other components. ============================================== 1091 // Getters to other components. ==============================================
1090 // =========================================================================== 1092 // ===========================================================================
1091 1093
1092 GCTracer* tracer() { return tracer_; } 1094 GCTracer* tracer() { return tracer_; }
1093 1095
1094 PromotionQueue* promotion_queue() { return &promotion_queue_; } 1096 PromotionQueue* promotion_queue() { return &promotion_queue_; }
1095 1097
1096 inline Isolate* isolate(); 1098 inline Isolate* isolate();
1097 1099
1098 MarkCompactCollector* mark_compact_collector() { 1100 MarkCompactCollector* mark_compact_collector() {
1099 return &mark_compact_collector_; 1101 return mark_compact_collector_;
1100 } 1102 }
1101 1103
1102 // =========================================================================== 1104 // ===========================================================================
1103 // Root set access. ========================================================== 1105 // Root set access. ==========================================================
1104 // =========================================================================== 1106 // ===========================================================================
1105 1107
1106 // Heap root getters. 1108 // Heap root getters.
1107 #define ROOT_ACCESSOR(type, name, camel_name) inline type* name(); 1109 #define ROOT_ACCESSOR(type, name, camel_name) inline type* name();
1108 ROOT_LIST(ROOT_ACCESSOR) 1110 ROOT_LIST(ROOT_ACCESSOR)
1109 #undef ROOT_ACCESSOR 1111 #undef ROOT_ACCESSOR
(...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after
2248 double sweeping_time_; 2250 double sweeping_time_;
2249 2251
2250 // Last time an idle notification happened. 2252 // Last time an idle notification happened.
2251 double last_idle_notification_time_; 2253 double last_idle_notification_time_;
2252 2254
2253 // Last time a garbage collection happened. 2255 // Last time a garbage collection happened.
2254 double last_gc_time_; 2256 double last_gc_time_;
2255 2257
2256 Scavenger* scavenge_collector_; 2258 Scavenger* scavenge_collector_;
2257 2259
2258 MarkCompactCollector mark_compact_collector_; 2260 MarkCompactCollector* mark_compact_collector_;
2259 2261
2260 StoreBuffer store_buffer_; 2262 StoreBuffer store_buffer_;
2261 2263
2262 IncrementalMarking incremental_marking_; 2264 IncrementalMarking incremental_marking_;
2263 2265
2264 GCIdleTimeHandler* gc_idle_time_handler_; 2266 GCIdleTimeHandler* gc_idle_time_handler_;
2265 2267
2266 MemoryReducer* memory_reducer_; 2268 MemoryReducer* memory_reducer_;
2267 2269
2268 ObjectStats* object_stats_; 2270 ObjectStats* object_stats_;
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
2701 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2703 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2702 2704
2703 private: 2705 private:
2704 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2706 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2705 }; 2707 };
2706 #endif // DEBUG 2708 #endif // DEBUG
2707 } 2709 }
2708 } // namespace v8::internal 2710 } // namespace v8::internal
2709 2711
2710 #endif // V8_HEAP_HEAP_H_ 2712 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698