| OLD | NEW |
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 } | 144 } |
| 145 | 145 |
| 146 | 146 |
| 147 struct X87Register { | 147 struct X87Register { |
| 148 static const int kMaxNumAllocatableRegisters = 6; | 148 static const int kMaxNumAllocatableRegisters = 6; |
| 149 static const int kMaxNumRegisters = 8; | 149 static const int kMaxNumRegisters = 8; |
| 150 static int NumAllocatableRegisters() { | 150 static int NumAllocatableRegisters() { |
| 151 return kMaxNumAllocatableRegisters; | 151 return kMaxNumAllocatableRegisters; |
| 152 } | 152 } |
| 153 | 153 |
| 154 | |
| 155 // TODO(turbofan): Proper support for float32. | 154 // TODO(turbofan): Proper support for float32. |
| 156 static int NumAllocatableAliasedRegisters() { | 155 static int NumAllocatableAliasedRegisters() { |
| 157 return NumAllocatableRegisters(); | 156 return NumAllocatableRegisters(); |
| 158 } | 157 } |
| 159 | 158 |
| 159 static int NumAllocatableRegistersForTurbo() { |
| 160 return 1; |
| 161 } |
| 162 |
| 163 static int NumAllocatableAliasedRegistersForTurbo() { |
| 164 return NumAllocatableRegistersForTurbo(); |
| 165 } |
| 160 | 166 |
| 161 static int ToAllocationIndex(X87Register reg) { | 167 static int ToAllocationIndex(X87Register reg) { |
| 162 return reg.code_; | 168 return reg.code_; |
| 163 } | 169 } |
| 164 | 170 |
| 165 static const char* AllocationIndexToString(int index) { | 171 static const char* AllocationIndexToString(int index) { |
| 166 DCHECK(index >= 0 && index < kMaxNumAllocatableRegisters); | 172 DCHECK(index >= 0 && index < kMaxNumAllocatableRegisters); |
| 167 const char* const names[] = { | 173 const char* const names[] = { |
| 168 "stX_0", "stX_1", "stX_2", "stX_3", "stX_4", | 174 "stX_0", "stX_1", "stX_2", "stX_3", "stX_4", |
| 169 "stX_5", "stX_6", "stX_7" | 175 "stX_5", "stX_6", "stX_7" |
| (...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1083 private: | 1089 private: |
| 1084 Assembler* assembler_; | 1090 Assembler* assembler_; |
| 1085 #ifdef DEBUG | 1091 #ifdef DEBUG |
| 1086 int space_before_; | 1092 int space_before_; |
| 1087 #endif | 1093 #endif |
| 1088 }; | 1094 }; |
| 1089 | 1095 |
| 1090 } } // namespace v8::internal | 1096 } } // namespace v8::internal |
| 1091 | 1097 |
| 1092 #endif // V8_X87_ASSEMBLER_X87_H_ | 1098 #endif // V8_X87_ASSEMBLER_X87_H_ |
| OLD | NEW |