| 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_IA32_H_ | 5 #ifndef VM_CONSTANTS_IA32_H_ |
| 6 #define VM_CONSTANTS_IA32_H_ | 6 #define VM_CONSTANTS_IA32_H_ |
| 7 | 7 |
| 8 #include "vm/assert.h" | 8 #include "vm/assert.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 // to allocate or create instances of class Instr. | 112 // to allocate or create instances of class Instr. |
| 113 // Use the At(pc) function to create references to Instr. | 113 // Use the At(pc) function to create references to Instr. |
| 114 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } | 114 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } |
| 115 | 115 |
| 116 private: | 116 private: |
| 117 DISALLOW_ALLOCATION(); | 117 DISALLOW_ALLOCATION(); |
| 118 // We need to prevent the creation of instances of class Instr. | 118 // We need to prevent the creation of instances of class Instr. |
| 119 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); | 119 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 |
| 122 // The largest multibyte nop we will emit. This could go up to 15 if it | 123 // The largest multibyte nop we will emit. This could go up to 15 if it |
| 123 // becomes important to us. | 124 // becomes important to us. |
| 124 const int MAX_NOP_SIZE = 8; | 125 const int MAX_NOP_SIZE = 8; |
| 125 | 126 |
| 126 } // namespace dart | 127 } // namespace dart |
| 127 | 128 |
| 128 #endif // VM_CONSTANTS_IA32_H_ | 129 #endif // VM_CONSTANTS_IA32_H_ |
| OLD | NEW |