OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "vm/pages.h" | 5 #include "vm/pages.h" |
6 | 6 |
7 #include "vm/assert.h" | 7 #include "platform/assert.h" |
8 #include "vm/gc_marker.h" | 8 #include "vm/gc_marker.h" |
9 #include "vm/gc_sweeper.h" | 9 #include "vm/gc_sweeper.h" |
10 #include "vm/object.h" | 10 #include "vm/object.h" |
11 #include "vm/virtual_memory.h" | 11 #include "vm/virtual_memory.h" |
12 | 12 |
13 namespace dart { | 13 namespace dart { |
14 | 14 |
15 HeapPage* HeapPage::Initialize(VirtualMemory* memory, bool is_executable) { | 15 HeapPage* HeapPage::Initialize(VirtualMemory* memory, bool is_executable) { |
16 ASSERT(memory->size() > VirtualMemory::PageSize()); | 16 ASSERT(memory->size() > VirtualMemory::PageSize()); |
17 memory->Commit(is_executable); | 17 memory->Commit(is_executable); |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 OS::PrintErr(" done.\n"); | 273 OS::PrintErr(" done.\n"); |
274 } | 274 } |
275 | 275 |
276 count_++; | 276 count_++; |
277 // Done, reset the marker. | 277 // Done, reset the marker. |
278 ASSERT(sweeping_); | 278 ASSERT(sweeping_); |
279 sweeping_ = false; | 279 sweeping_ = false; |
280 } | 280 } |
281 | 281 |
282 } // namespace dart | 282 } // namespace dart |
OLD | NEW |