| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 REX_X = 1 << 1, | 62 REX_X = 1 << 1, |
| 63 REX_R = 1 << 2, | 63 REX_R = 1 << 2, |
| 64 REX_W = 1 << 3, | 64 REX_W = 1 << 3, |
| 65 REX_PREFIX = 1 << 6 | 65 REX_PREFIX = 1 << 6 |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 | 68 |
| 69 // Register aliases. | 69 // Register aliases. |
| 70 const Register TMP = R11; // Used as scratch register by the assembler. | 70 const Register TMP = R11; // Used as scratch register by the assembler. |
| 71 const Register CTX = R15; // Caches current context in generated code. | 71 const Register CTX = R15; // Caches current context in generated code. |
| 72 const Register SPREG = RSP; |
| 73 const Register FPREG = RBP; |
| 72 | 74 |
| 73 // Exception object is passed in this register to the catch handlers when an | 75 // Exception object is passed in this register to the catch handlers when an |
| 74 // exception is thrown. | 76 // exception is thrown. |
| 75 const Register kExceptionObjectReg = RAX; | 77 const Register kExceptionObjectReg = RAX; |
| 76 | 78 |
| 77 // Stack trace object is passed in this register to the catch handlers when | 79 // Stack trace object is passed in this register to the catch handlers when |
| 78 // an exception is thrown. | 80 // an exception is thrown. |
| 79 const Register kStackTraceObjectReg = RDX; | 81 const Register kStackTraceObjectReg = RDX; |
| 80 | 82 |
| 81 enum ScaleFactor { | 83 enum ScaleFactor { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 }; | 138 }; |
| 137 | 139 |
| 138 | 140 |
| 139 // The largest multibyte nop we will emit. This could go up to 15 if it | 141 // The largest multibyte nop we will emit. This could go up to 15 if it |
| 140 // becomes important to us. | 142 // becomes important to us. |
| 141 const int MAX_NOP_SIZE = 8; | 143 const int MAX_NOP_SIZE = 8; |
| 142 | 144 |
| 143 } // namespace dart | 145 } // namespace dart |
| 144 | 146 |
| 145 #endif // VM_CONSTANTS_X64_H_ | 147 #endif // VM_CONSTANTS_X64_H_ |
| OLD | NEW |