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 "v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "incremental-marking.h" | 7 #include "src/incremental-marking.h" |
8 | 8 |
9 #include "code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "compilation-cache.h" | 10 #include "src/compilation-cache.h" |
11 #include "conversions.h" | 11 #include "src/conversions.h" |
12 #include "objects-visiting.h" | 12 #include "src/objects-visiting.h" |
13 #include "objects-visiting-inl.h" | 13 #include "src/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 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
986 bytes_scanned_ = 0; | 986 bytes_scanned_ = 0; |
987 write_barriers_invoked_since_last_step_ = 0; | 987 write_barriers_invoked_since_last_step_ = 0; |
988 } | 988 } |
989 | 989 |
990 | 990 |
991 int64_t IncrementalMarking::SpaceLeftInOldSpace() { | 991 int64_t IncrementalMarking::SpaceLeftInOldSpace() { |
992 return heap_->MaxOldGenerationSize() - heap_->PromotedSpaceSizeOfObjects(); | 992 return heap_->MaxOldGenerationSize() - heap_->PromotedSpaceSizeOfObjects(); |
993 } | 993 } |
994 | 994 |
995 } } // namespace v8::internal | 995 } } // namespace v8::internal |
OLD | NEW |