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_MARK_COMPACT_INL_H_ | 5 #ifndef V8_HEAP_MARK_COMPACT_INL_H_ |
6 #define V8_HEAP_MARK_COMPACT_INL_H_ | 6 #define V8_HEAP_MARK_COMPACT_INL_H_ |
7 | 7 |
8 #include <memory.h> | |
9 | |
10 #include "src/heap/mark-compact.h" | 8 #include "src/heap/mark-compact.h" |
11 #include "src/isolate.h" | 9 #include "src/isolate.h" |
12 | 10 |
13 | 11 |
14 namespace v8 { | 12 namespace v8 { |
15 namespace internal { | 13 namespace internal { |
16 | 14 |
17 | 15 |
18 MarkBit Marking::MarkBitFrom(Address addr) { | 16 MarkBit Marking::MarkBitFrom(Address addr) { |
19 MemoryChunk* p = MemoryChunk::FromAddress(addr); | 17 MemoryChunk* p = MemoryChunk::FromAddress(addr); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 if (!SlotsBuffer::AddTo(&slots_buffer_allocator_, | 63 if (!SlotsBuffer::AddTo(&slots_buffer_allocator_, |
66 object_page->slots_buffer_address(), slot, mode)) { | 64 object_page->slots_buffer_address(), slot, mode)) { |
67 EvictEvacuationCandidate(object_page); | 65 EvictEvacuationCandidate(object_page); |
68 } | 66 } |
69 } | 67 } |
70 } | 68 } |
71 } | 69 } |
72 } // namespace v8::internal | 70 } // namespace v8::internal |
73 | 71 |
74 #endif // V8_HEAP_MARK_COMPACT_INL_H_ | 72 #endif // V8_HEAP_MARK_COMPACT_INL_H_ |
OLD | NEW |