Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Side by Side Diff: runtime/vm/pages.cc

Issue 9189003: Move assert.h/assert.cc from runtime/vm to runtime/platform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixing vm/assert.h for _macos, _win, _arm and _x64 files Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "platform/assert.h"
6
7 #include "vm/assert.h"
8 #include "vm/gc_marker.h" 6 #include "vm/gc_marker.h"
9 #include "vm/gc_sweeper.h" 7 #include "vm/gc_sweeper.h"
10 #include "vm/object.h" 8 #include "vm/object.h"
9 #include "vm/pages.h"
Ivan Posva 2012/01/13 23:22:06 First.
Søren Gjesse 2012/01/16 08:58:00 Done.
11 #include "vm/virtual_memory.h" 10 #include "vm/virtual_memory.h"
12 11
13 namespace dart { 12 namespace dart {
14 13
15 HeapPage* HeapPage::Initialize(VirtualMemory* memory, bool is_executable) { 14 HeapPage* HeapPage::Initialize(VirtualMemory* memory, bool is_executable) {
16 ASSERT(memory->size() > VirtualMemory::PageSize()); 15 ASSERT(memory->size() > VirtualMemory::PageSize());
17 memory->Commit(is_executable); 16 memory->Commit(is_executable);
18 17
19 HeapPage* result = reinterpret_cast<HeapPage*>(memory->address()); 18 HeapPage* result = reinterpret_cast<HeapPage*>(memory->address());
20 result->memory_ = memory; 19 result->memory_ = memory;
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 OS::PrintErr(" done.\n"); 272 OS::PrintErr(" done.\n");
274 } 273 }
275 274
276 count_++; 275 count_++;
277 // Done, reset the marker. 276 // Done, reset the marker.
278 ASSERT(sweeping_); 277 ASSERT(sweeping_);
279 sweeping_ = false; 278 sweeping_ = false;
280 } 279 }
281 280
282 } // namespace dart 281 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698