OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 "platform/assert.h" | 8 #include "platform/assert.h" |
9 | 9 |
10 namespace dart { | 10 namespace dart { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 XMM4 = 4, | 45 XMM4 = 4, |
46 XMM5 = 5, | 46 XMM5 = 5, |
47 XMM6 = 6, | 47 XMM6 = 6, |
48 XMM7 = 7, | 48 XMM7 = 7, |
49 kNumberOfXmmRegisters = 8, | 49 kNumberOfXmmRegisters = 8, |
50 kNoXmmRegister = -1 // Signals an illegal register. | 50 kNoXmmRegister = -1 // Signals an illegal register. |
51 }; | 51 }; |
52 | 52 |
53 | 53 |
54 // Register aliases. | 54 // Register aliases. |
55 const Register CTX = ESI; // Caches current context in generated code. | 55 const Register TMP = kNoRegister; // No scratch register used by assembler. |
| 56 const Register CTX = ESI; // Caches current context in generated code. |
56 | 57 |
57 // Exception object is passed in this register to the catch handlers when an | 58 // Exception object is passed in this register to the catch handlers when an |
58 // exception is thrown. | 59 // exception is thrown. |
59 const Register kExceptionObjectReg = EAX; | 60 const Register kExceptionObjectReg = EAX; |
60 | 61 |
61 // Stack trace object is passed in this register to the catch handlers when | 62 // Stack trace object is passed in this register to the catch handlers when |
62 // an exception is thrown. | 63 // an exception is thrown. |
63 const Register kStackTraceObjectReg = EDX; | 64 const Register kStackTraceObjectReg = EDX; |
64 | 65 |
65 enum ScaleFactor { | 66 enum ScaleFactor { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 }; | 121 }; |
121 | 122 |
122 | 123 |
123 // The largest multibyte nop we will emit. This could go up to 15 if it | 124 // The largest multibyte nop we will emit. This could go up to 15 if it |
124 // becomes important to us. | 125 // becomes important to us. |
125 const int MAX_NOP_SIZE = 8; | 126 const int MAX_NOP_SIZE = 8; |
126 | 127 |
127 } // namespace dart | 128 } // namespace dart |
128 | 129 |
129 #endif // VM_CONSTANTS_IA32_H_ | 130 #endif // VM_CONSTANTS_IA32_H_ |
OLD | NEW |