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_MARK_COMPACT_INL_H_ | 5 #ifndef V8_MARK_COMPACT_INL_H_ |
6 #define V8_MARK_COMPACT_INL_H_ | 6 #define V8_MARK_COMPACT_INL_H_ |
7 | 7 |
8 #include "isolate.h" | 8 #include <memory.h> |
9 #include "memory.h" | 9 |
10 #include "mark-compact.h" | 10 #include "src/isolate.h" |
| 11 #include "src/mark-compact.h" |
11 | 12 |
12 | 13 |
13 namespace v8 { | 14 namespace v8 { |
14 namespace internal { | 15 namespace internal { |
15 | 16 |
16 | 17 |
17 MarkBit Marking::MarkBitFrom(Address addr) { | 18 MarkBit Marking::MarkBitFrom(Address addr) { |
18 MemoryChunk* p = MemoryChunk::FromAddress(addr); | 19 MemoryChunk* p = MemoryChunk::FromAddress(addr); |
19 return p->markbits()->MarkBitFromIndex(p->AddressToMarkbitIndex(addr), | 20 return p->markbits()->MarkBitFromIndex(p->AddressToMarkbitIndex(addr), |
20 p->ContainsOnlyData()); | 21 p->ContainsOnlyData()); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 mode)) { | 70 mode)) { |
70 EvictEvacuationCandidate(object_page); | 71 EvictEvacuationCandidate(object_page); |
71 } | 72 } |
72 } | 73 } |
73 } | 74 } |
74 | 75 |
75 | 76 |
76 } } // namespace v8::internal | 77 } } // namespace v8::internal |
77 | 78 |
78 #endif // V8_MARK_COMPACT_INL_H_ | 79 #endif // V8_MARK_COMPACT_INL_H_ |
OLD | NEW |