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 2358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2369 // Currently set GC callback flags that are used to pass information between | 2369 // Currently set GC callback flags that are used to pass information between |
2370 // the embedder and V8's GC. | 2370 // the embedder and V8's GC. |
2371 GCCallbackFlags current_gc_callback_flags_; | 2371 GCCallbackFlags current_gc_callback_flags_; |
2372 | 2372 |
2373 ExternalStringTable external_string_table_; | 2373 ExternalStringTable external_string_table_; |
2374 | 2374 |
2375 VisitorDispatchTable<ScavengingCallback> scavenging_visitors_table_; | 2375 VisitorDispatchTable<ScavengingCallback> scavenging_visitors_table_; |
2376 | 2376 |
2377 MemoryChunk* chunks_queued_for_free_; | 2377 MemoryChunk* chunks_queued_for_free_; |
2378 | 2378 |
2379 base::Semaphore pending_unmap_job_semaphore_; | 2379 size_t concurrent_unmapping_tasks_active_; |
| 2380 |
| 2381 base::Semaphore pending_unmapping_tasks_semaphore_; |
2380 | 2382 |
2381 base::Mutex relocation_mutex_; | 2383 base::Mutex relocation_mutex_; |
2382 | 2384 |
2383 int gc_callbacks_depth_; | 2385 int gc_callbacks_depth_; |
2384 | 2386 |
2385 bool deserialization_complete_; | 2387 bool deserialization_complete_; |
2386 | 2388 |
2387 bool concurrent_sweeping_enabled_; | 2389 bool concurrent_sweeping_enabled_; |
2388 | 2390 |
2389 // |live_array_buffers_| maps externally allocated memory used as backing | 2391 // |live_array_buffers_| maps externally allocated memory used as backing |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2786 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2788 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2787 | 2789 |
2788 private: | 2790 private: |
2789 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2791 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2790 }; | 2792 }; |
2791 #endif // DEBUG | 2793 #endif // DEBUG |
2792 } | 2794 } |
2793 } // namespace v8::internal | 2795 } // namespace v8::internal |
2794 | 2796 |
2795 #endif // V8_HEAP_HEAP_H_ | 2797 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |