| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 | 85 |
| 86 // Register aliases. | 86 // Register aliases. |
| 87 const Register TMP = R11; // Used as scratch register by the assembler. | 87 const Register TMP = R11; // Used as scratch register by the assembler. |
| 88 const Register CTX = R15; // Caches current context in generated code. | 88 const Register CTX = R15; // Caches current context in generated code. |
| 89 const Register PP = kNoRegister; // No object pool pointer. | 89 const Register PP = kNoRegister; // No object pool pointer. |
| 90 const Register SPREG = RSP; // Stack pointer register. | 90 const Register SPREG = RSP; // Stack pointer register. |
| 91 const Register FPREG = RBP; // Frame pointer register. | 91 const Register FPREG = RBP; // Frame pointer register. |
| 92 | 92 |
| 93 const Register ICREG = RBX; // IC data register. |
| 94 |
| 93 // Exception object is passed in this register to the catch handlers when an | 95 // Exception object is passed in this register to the catch handlers when an |
| 94 // exception is thrown. | 96 // exception is thrown. |
| 95 const Register kExceptionObjectReg = RAX; | 97 const Register kExceptionObjectReg = RAX; |
| 96 | 98 |
| 97 // Stack trace object is passed in this register to the catch handlers when | 99 // Stack trace object is passed in this register to the catch handlers when |
| 98 // an exception is thrown. | 100 // an exception is thrown. |
| 99 const Register kStackTraceObjectReg = RDX; | 101 const Register kStackTraceObjectReg = RDX; |
| 100 | 102 |
| 101 | 103 |
| 102 enum ScaleFactor { | 104 enum ScaleFactor { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 }; | 163 }; |
| 162 | 164 |
| 163 | 165 |
| 164 // The largest multibyte nop we will emit. This could go up to 15 if it | 166 // The largest multibyte nop we will emit. This could go up to 15 if it |
| 165 // becomes important to us. | 167 // becomes important to us. |
| 166 const int MAX_NOP_SIZE = 8; | 168 const int MAX_NOP_SIZE = 8; |
| 167 | 169 |
| 168 } // namespace dart | 170 } // namespace dart |
| 169 | 171 |
| 170 #endif // VM_CONSTANTS_X64_H_ | 172 #endif // VM_CONSTANTS_X64_H_ |
| OLD | NEW |