| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 const FpuRegister kNoFpuRegister = kNoXmmRegister; | 59 const FpuRegister kNoFpuRegister = kNoXmmRegister; |
| 60 | 60 |
| 61 | 61 |
| 62 // Register aliases. | 62 // Register aliases. |
| 63 const Register TMP = kNoRegister; // No scratch register used by assembler. | 63 const Register TMP = kNoRegister; // No scratch register used by assembler. |
| 64 const Register CTX = ESI; // Caches current context in generated code. | 64 const Register CTX = ESI; // Caches current context in generated code. |
| 65 const Register PP = kNoRegister; // No object pool pointer. | 65 const Register PP = kNoRegister; // No object pool pointer. |
| 66 const Register SPREG = ESP; // Stack pointer register. | 66 const Register SPREG = ESP; // Stack pointer register. |
| 67 const Register FPREG = EBP; // Frame pointer register. | 67 const Register FPREG = EBP; // Frame pointer register. |
| 68 | 68 |
| 69 const Register ICREG = ECX; // IC data register. |
| 70 |
| 69 // Exception object is passed in this register to the catch handlers when an | 71 // Exception object is passed in this register to the catch handlers when an |
| 70 // exception is thrown. | 72 // exception is thrown. |
| 71 const Register kExceptionObjectReg = EAX; | 73 const Register kExceptionObjectReg = EAX; |
| 72 | 74 |
| 73 // Stack trace object is passed in this register to the catch handlers when | 75 // Stack trace object is passed in this register to the catch handlers when |
| 74 // an exception is thrown. | 76 // an exception is thrown. |
| 75 const Register kStackTraceObjectReg = EDX; | 77 const Register kStackTraceObjectReg = EDX; |
| 76 | 78 |
| 77 | 79 |
| 78 enum ScaleFactor { | 80 enum ScaleFactor { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 }; | 139 }; |
| 138 | 140 |
| 139 | 141 |
| 140 // The largest multibyte nop we will emit. This could go up to 15 if it | 142 // The largest multibyte nop we will emit. This could go up to 15 if it |
| 141 // becomes important to us. | 143 // becomes important to us. |
| 142 const int MAX_NOP_SIZE = 8; | 144 const int MAX_NOP_SIZE = 8; |
| 143 | 145 |
| 144 } // namespace dart | 146 } // namespace dart |
| 145 | 147 |
| 146 #endif // VM_CONSTANTS_IA32_H_ | 148 #endif // VM_CONSTANTS_IA32_H_ |
| OLD | NEW |