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 1408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1419 double get_min_in_mutator() { return min_in_mutator_; } | 1419 double get_min_in_mutator() { return min_in_mutator_; } |
1420 | 1420 |
1421 void IncrementDeferredCount(v8::Isolate::UseCounterFeature feature); | 1421 void IncrementDeferredCount(v8::Isolate::UseCounterFeature feature); |
1422 | 1422 |
1423 MarkCompactCollector* mark_compact_collector() { | 1423 MarkCompactCollector* mark_compact_collector() { |
1424 return &mark_compact_collector_; | 1424 return &mark_compact_collector_; |
1425 } | 1425 } |
1426 | 1426 |
1427 StoreBuffer* store_buffer() { return &store_buffer_; } | 1427 StoreBuffer* store_buffer() { return &store_buffer_; } |
1428 | 1428 |
1429 Marking* marking() { return &marking_; } | |
1430 | |
1431 IncrementalMarking* incremental_marking() { return &incremental_marking_; } | 1429 IncrementalMarking* incremental_marking() { return &incremental_marking_; } |
1432 | 1430 |
1433 ExternalStringTable* external_string_table() { | 1431 ExternalStringTable* external_string_table() { |
1434 return &external_string_table_; | 1432 return &external_string_table_; |
1435 } | 1433 } |
1436 | 1434 |
1437 // Returns the current sweep generation. | 1435 // Returns the current sweep generation. |
1438 int sweep_generation() { return sweep_generation_; } | 1436 int sweep_generation() { return sweep_generation_; } |
1439 | 1437 |
1440 bool concurrent_sweeping_enabled() { return concurrent_sweeping_enabled_; } | 1438 bool concurrent_sweeping_enabled() { return concurrent_sweeping_enabled_; } |
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2293 // Last time an idle notification happened. | 2291 // Last time an idle notification happened. |
2294 double last_idle_notification_time_; | 2292 double last_idle_notification_time_; |
2295 | 2293 |
2296 // Last time a garbage collection happened. | 2294 // Last time a garbage collection happened. |
2297 double last_gc_time_; | 2295 double last_gc_time_; |
2298 | 2296 |
2299 MarkCompactCollector mark_compact_collector_; | 2297 MarkCompactCollector mark_compact_collector_; |
2300 | 2298 |
2301 StoreBuffer store_buffer_; | 2299 StoreBuffer store_buffer_; |
2302 | 2300 |
2303 Marking marking_; | |
2304 | |
2305 IncrementalMarking incremental_marking_; | 2301 IncrementalMarking incremental_marking_; |
2306 | 2302 |
2307 GCIdleTimeHandler gc_idle_time_handler_; | 2303 GCIdleTimeHandler gc_idle_time_handler_; |
2308 | 2304 |
2309 MemoryReducer memory_reducer_; | 2305 MemoryReducer memory_reducer_; |
2310 | 2306 |
2311 // These two counters are monotomically increasing and never reset. | 2307 // These two counters are monotomically increasing and never reset. |
2312 size_t full_codegen_bytes_generated_; | 2308 size_t full_codegen_bytes_generated_; |
2313 size_t crankshaft_codegen_bytes_generated_; | 2309 size_t crankshaft_codegen_bytes_generated_; |
2314 | 2310 |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2843 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2839 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2844 | 2840 |
2845 private: | 2841 private: |
2846 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2842 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2847 }; | 2843 }; |
2848 #endif // DEBUG | 2844 #endif // DEBUG |
2849 } | 2845 } |
2850 } // namespace v8::internal | 2846 } // namespace v8::internal |
2851 | 2847 |
2852 #endif // V8_HEAP_HEAP_H_ | 2848 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |