| OLD | NEW |
| 1 // Copyright (c) 2012, 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 RUNTIME_VM_VIRTUAL_MEMORY_H_ | 5 #ifndef RUNTIME_VM_VIRTUAL_MEMORY_H_ |
| 6 #define RUNTIME_VM_VIRTUAL_MEMORY_H_ | 6 #define RUNTIME_VM_VIRTUAL_MEMORY_H_ |
| 7 | 7 |
| 8 #include "platform/utils.h" | 8 #include "platform/utils.h" |
| 9 #include "vm/globals.h" | 9 #include "vm/globals.h" |
| 10 #include "vm/memory_region.h" | 10 #include "vm/memory_region.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 87 |
| 88 // The size of the underlying reservation not yet given back to the OS. | 88 // The size of the underlying reservation not yet given back to the OS. |
| 89 // Its start coincides with region_, but its size might not, due to Truncate. | 89 // Its start coincides with region_, but its size might not, due to Truncate. |
| 90 intptr_t reserved_size_; | 90 intptr_t reserved_size_; |
| 91 | 91 |
| 92 int32_t handle_; | 92 int32_t handle_; |
| 93 | 93 |
| 94 static uword page_size_; | 94 static uword page_size_; |
| 95 | 95 |
| 96 // False for a part of a snapshot added directly to the Dart heap, which | 96 // False for a part of a snapshot added directly to the Dart heap, which |
| 97 // belongs to the the embedder and must not be deallocated or have its | 97 // belongs to the embedder and must not be deallocated or have its |
| 98 // protection status changed by the VM. | 98 // protection status changed by the VM. |
| 99 bool vm_owns_region_; | 99 bool vm_owns_region_; |
| 100 | 100 |
| 101 DISALLOW_IMPLICIT_CONSTRUCTORS(VirtualMemory); | 101 DISALLOW_IMPLICIT_CONSTRUCTORS(VirtualMemory); |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 } // namespace dart | 104 } // namespace dart |
| 105 | 105 |
| 106 #endif // RUNTIME_VM_VIRTUAL_MEMORY_H_ | 106 #endif // RUNTIME_VM_VIRTUAL_MEMORY_H_ |
| OLD | NEW |