OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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_VERIFIED_MEMORY_H_ | 5 #ifndef VM_VERIFIED_MEMORY_H_ |
6 #define VM_VERIFIED_MEMORY_H_ | 6 #define VM_VERIFIED_MEMORY_H_ |
7 | 7 |
8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
9 #include "vm/flags.h" | 9 #include "vm/flags.h" |
10 #include "vm/virtual_memory.h" | 10 #include "vm/virtual_memory.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // In release mode, most code in this class is optimized away. | 74 // In release mode, most code in this class is optimized away. |
75 static bool enabled() { return false; } | 75 static bool enabled() { return false; } |
76 static intptr_t offset() { UNREACHABLE(); return -1; } | 76 static intptr_t offset() { UNREACHABLE(); return -1; } |
77 static VirtualMemory* ReserveInternal(intptr_t size) { | 77 static VirtualMemory* ReserveInternal(intptr_t size) { |
78 UNREACHABLE(); | 78 UNREACHABLE(); |
79 return NULL; | 79 return NULL; |
80 } | 80 } |
81 #endif | 81 #endif |
82 | 82 |
83 friend class Assembler; // To use enabled/offset when generating code. | 83 friend class Assembler; // To use enabled/offset when generating code. |
| 84 friend class FlowGraphCompiler; // To compute edge counter code size. |
| 85 friend class Intrinsifier; // To know whether a jump is near or far. |
84 }; | 86 }; |
85 | 87 |
86 } // namespace dart | 88 } // namespace dart |
87 | 89 |
88 #endif // VM_VERIFIED_MEMORY_H_ | 90 #endif // VM_VERIFIED_MEMORY_H_ |
OLD | NEW |