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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/heap/incremental-marking.h" | 7 #include "src/heap/incremental-marking.h" |
8 | 8 |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/compilation-cache.h" | 10 #include "src/compilation-cache.h" |
11 #include "src/conversions.h" | 11 #include "src/conversions.h" |
12 #include "src/objects-visiting.h" | 12 #include "src/heap/objects-visiting.h" |
13 #include "src/objects-visiting-inl.h" | 13 #include "src/heap/objects-visiting-inl.h" |
14 | 14 |
15 namespace v8 { | 15 namespace v8 { |
16 namespace internal { | 16 namespace internal { |
17 | 17 |
18 | 18 |
19 IncrementalMarking::IncrementalMarking(Heap* heap) | 19 IncrementalMarking::IncrementalMarking(Heap* heap) |
20 : heap_(heap), | 20 : heap_(heap), |
21 state_(STOPPED), | 21 state_(STOPPED), |
22 marking_deque_memory_(NULL), | 22 marking_deque_memory_(NULL), |
23 marking_deque_memory_committed_(false), | 23 marking_deque_memory_committed_(false), |
(...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
962 bytes_scanned_ = 0; | 962 bytes_scanned_ = 0; |
963 write_barriers_invoked_since_last_step_ = 0; | 963 write_barriers_invoked_since_last_step_ = 0; |
964 } | 964 } |
965 | 965 |
966 | 966 |
967 int64_t IncrementalMarking::SpaceLeftInOldSpace() { | 967 int64_t IncrementalMarking::SpaceLeftInOldSpace() { |
968 return heap_->MaxOldGenerationSize() - heap_->PromotedSpaceSizeOfObjects(); | 968 return heap_->MaxOldGenerationSize() - heap_->PromotedSpaceSizeOfObjects(); |
969 } | 969 } |
970 } | 970 } |
971 } // namespace v8::internal | 971 } // namespace v8::internal |
OLD | NEW |