| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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_CONSTANTS_X64_H_ | 5 #ifndef VM_CONSTANTS_X64_H_ |
| 6 #define VM_CONSTANTS_X64_H_ | 6 #define VM_CONSTANTS_X64_H_ |
| 7 | 7 |
| 8 namespace dart { | 8 namespace dart { |
| 9 | 9 |
| 10 enum Register { | 10 enum Register { |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 // to allocate or create instances of class Instr. | 128 // to allocate or create instances of class Instr. |
| 129 // Use the At(pc) function to create references to Instr. | 129 // Use the At(pc) function to create references to Instr. |
| 130 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } | 130 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } |
| 131 | 131 |
| 132 private: | 132 private: |
| 133 DISALLOW_ALLOCATION(); | 133 DISALLOW_ALLOCATION(); |
| 134 // We need to prevent the creation of instances of class Instr. | 134 // We need to prevent the creation of instances of class Instr. |
| 135 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); | 135 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 |
| 139 // The largest multibyte nop we will emit. This could go up to 15 if it |
| 140 // becomes important to us. |
| 141 const int MAX_NOP_SIZE = 8; |
| 142 |
| 138 } // namespace dart | 143 } // namespace dart |
| 139 | 144 |
| 140 #endif // VM_CONSTANTS_X64_H_ | 145 #endif // VM_CONSTANTS_X64_H_ |
| OLD | NEW |