| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 static const int kMaxNumRegisters = kNumberOfFPRegisters; | 249 static const int kMaxNumRegisters = kNumberOfFPRegisters; |
| 250 | 250 |
| 251 // Crankshaft can use all the FP registers except: | 251 // Crankshaft can use all the FP registers except: |
| 252 // - d29 which is used in crankshaft as a double scratch register | 252 // - d29 which is used in crankshaft as a double scratch register |
| 253 // - d30 which is used to keep the 0 double value | 253 // - d30 which is used to keep the 0 double value |
| 254 // - d31 which is used in the MacroAssembler as a double scratch register | 254 // - d31 which is used in the MacroAssembler as a double scratch register |
| 255 static const int kNumReservedRegisters = 3; | 255 static const int kNumReservedRegisters = 3; |
| 256 static const int kMaxNumAllocatableRegisters = | 256 static const int kMaxNumAllocatableRegisters = |
| 257 kNumberOfFPRegisters - kNumReservedRegisters; | 257 kNumberOfFPRegisters - kNumReservedRegisters; |
| 258 static int NumAllocatableRegisters() { return kMaxNumAllocatableRegisters; } | 258 static int NumAllocatableRegisters() { return kMaxNumAllocatableRegisters; } |
| 259 static const RegList kAllocatableFPRegisters = |
| 260 (1 << kMaxNumAllocatableRegisters) - 1; |
| 259 | 261 |
| 260 static FPRegister FromAllocationIndex(int index) { | 262 static FPRegister FromAllocationIndex(int index) { |
| 261 ASSERT((index >= 0) && (index < NumAllocatableRegisters())); | 263 ASSERT((index >= 0) && (index < NumAllocatableRegisters())); |
| 262 return from_code(index); | 264 return from_code(index); |
| 263 } | 265 } |
| 264 | 266 |
| 265 static const char* AllocationIndexToString(int index) { | 267 static const char* AllocationIndexToString(int index) { |
| 266 ASSERT((index >= 0) && (index < NumAllocatableRegisters())); | 268 ASSERT((index >= 0) && (index < NumAllocatableRegisters())); |
| 267 const char* const names[] = { | 269 const char* const names[] = { |
| 268 "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", | 270 "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", |
| (...skipping 1764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2033 class EnsureSpace BASE_EMBEDDED { | 2035 class EnsureSpace BASE_EMBEDDED { |
| 2034 public: | 2036 public: |
| 2035 explicit EnsureSpace(Assembler* assembler) { | 2037 explicit EnsureSpace(Assembler* assembler) { |
| 2036 assembler->CheckBuffer(); | 2038 assembler->CheckBuffer(); |
| 2037 } | 2039 } |
| 2038 }; | 2040 }; |
| 2039 | 2041 |
| 2040 } } // namespace v8::internal | 2042 } } // namespace v8::internal |
| 2041 | 2043 |
| 2042 #endif // V8_A64_ASSEMBLER_A64_H_ | 2044 #endif // V8_A64_ASSEMBLER_A64_H_ |
| OLD | NEW |