| 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 #ifndef VM_VIRTUAL_MEMORY_H_ | 5 #ifndef VM_VIRTUAL_MEMORY_H_ |
| 6 #define VM_VIRTUAL_MEMORY_H_ | 6 #define VM_VIRTUAL_MEMORY_H_ |
| 7 | 7 |
| 8 #include "platform/utils.h" |
| 8 #include "vm/globals.h" | 9 #include "vm/globals.h" |
| 9 #include "vm/memory_region.h" | 10 #include "vm/memory_region.h" |
| 10 #include "vm/utils.h" | |
| 11 | 11 |
| 12 namespace dart { | 12 namespace dart { |
| 13 | 13 |
| 14 class VirtualMemory { | 14 class VirtualMemory { |
| 15 public: | 15 public: |
| 16 // The reserved memory is unmapped on destruction. | 16 // The reserved memory is unmapped on destruction. |
| 17 ~VirtualMemory(); | 17 ~VirtualMemory(); |
| 18 | 18 |
| 19 uword start() const { return region_.start(); } | 19 uword start() const { return region_.start(); } |
| 20 uword end() const { return region_.end(); } | 20 uword end() const { return region_.end(); } |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 void* reserved_pointer_; | 74 void* reserved_pointer_; |
| 75 | 75 |
| 76 static uword page_size_; | 76 static uword page_size_; |
| 77 | 77 |
| 78 DISALLOW_IMPLICIT_CONSTRUCTORS(VirtualMemory); | 78 DISALLOW_IMPLICIT_CONSTRUCTORS(VirtualMemory); |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 } // namespace dart | 81 } // namespace dart |
| 82 | 82 |
| 83 #endif // VM_VIRTUAL_MEMORY_H_ | 83 #endif // VM_VIRTUAL_MEMORY_H_ |
| OLD | NEW |