| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // TODO(turbofan): Proper support for float32. | 154 // TODO(turbofan): Proper support for float32. |
| 155 static int NumAllocatableAliasedRegisters() { | 155 static int NumAllocatableAliasedRegisters() { |
| 156 return NumAllocatableRegisters(); | 156 return NumAllocatableRegisters(); |
| 157 } | 157 } |
| 158 | 158 |
| 159 static int NumAllocatableRegistersForTurbo() { |
| 160 return kMaxNumAllocatableRegisters; |
| 161 } |
| 162 |
| 163 static int NumAllocatableAliasedRegistersForTurbo() { |
| 164 return NumAllocatableAliasedRegisters(); |
| 165 } |
| 166 |
| 159 static int ToAllocationIndex(XMMRegister reg) { | 167 static int ToAllocationIndex(XMMRegister reg) { |
| 160 DCHECK(reg.code() != 0); | 168 DCHECK(reg.code() != 0); |
| 161 return reg.code() - 1; | 169 return reg.code() - 1; |
| 162 } | 170 } |
| 163 | 171 |
| 164 static XMMRegister FromAllocationIndex(int index) { | 172 static XMMRegister FromAllocationIndex(int index) { |
| 165 DCHECK(index >= 0 && index < kMaxNumAllocatableRegisters); | 173 DCHECK(index >= 0 && index < kMaxNumAllocatableRegisters); |
| 166 return from_code(index + 1); | 174 return from_code(index + 1); |
| 167 } | 175 } |
| 168 | 176 |
| (...skipping 1430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1599 private: | 1607 private: |
| 1600 Assembler* assembler_; | 1608 Assembler* assembler_; |
| 1601 #ifdef DEBUG | 1609 #ifdef DEBUG |
| 1602 int space_before_; | 1610 int space_before_; |
| 1603 #endif | 1611 #endif |
| 1604 }; | 1612 }; |
| 1605 | 1613 |
| 1606 } } // namespace v8::internal | 1614 } } // namespace v8::internal |
| 1607 | 1615 |
| 1608 #endif // V8_IA32_ASSEMBLER_IA32_H_ | 1616 #endif // V8_IA32_ASSEMBLER_IA32_H_ |
| OLD | NEW |