| 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_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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 XMM7 = 7, | 49 XMM7 = 7, |
| 50 kNumberOfXmmRegisters = 8, | 50 kNumberOfXmmRegisters = 8, |
| 51 kNoXmmRegister = -1 // Signals an illegal register. | 51 kNoXmmRegister = -1 // Signals an illegal register. |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 | 54 |
| 55 // Architecture independent aliases. | 55 // Architecture independent aliases. |
| 56 typedef XmmRegister FpuRegister; | 56 typedef XmmRegister FpuRegister; |
| 57 const FpuRegister FpuTMP = XMM0; | 57 const FpuRegister FpuTMP = XMM0; |
| 58 const int kNumberOfFpuRegisters = kNumberOfXmmRegisters; | 58 const int kNumberOfFpuRegisters = kNumberOfXmmRegisters; |
| 59 const FpuRegister kNoFpuRegister = kNoXmmRegister; |
| 59 | 60 |
| 60 | 61 |
| 61 // Register aliases. | 62 // Register aliases. |
| 62 const Register TMP = kNoRegister; // No scratch register used by assembler. | 63 const Register TMP = kNoRegister; // No scratch register used by assembler. |
| 63 const Register CTX = ESI; // Caches current context in generated code. | 64 const Register CTX = ESI; // Caches current context in generated code. |
| 64 const Register PP = kNoRegister; // No object pool pointer. | 65 const Register PP = kNoRegister; // No object pool pointer. |
| 65 const Register SPREG = ESP; // Stack pointer register. | 66 const Register SPREG = ESP; // Stack pointer register. |
| 66 const Register FPREG = EBP; // Frame pointer register. | 67 const Register FPREG = EBP; // Frame pointer register. |
| 67 | 68 |
| 68 // Exception object is passed in this register to the catch handlers when an | 69 // Exception object is passed in this register to the catch handlers when an |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 }; | 142 }; |
| 142 | 143 |
| 143 | 144 |
| 144 // The largest multibyte nop we will emit. This could go up to 15 if it | 145 // The largest multibyte nop we will emit. This could go up to 15 if it |
| 145 // becomes important to us. | 146 // becomes important to us. |
| 146 const int MAX_NOP_SIZE = 8; | 147 const int MAX_NOP_SIZE = 8; |
| 147 | 148 |
| 148 } // namespace dart | 149 } // namespace dart |
| 149 | 150 |
| 150 #endif // VM_CONSTANTS_IA32_H_ | 151 #endif // VM_CONSTANTS_IA32_H_ |
| OLD | NEW |