| 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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 CPURegister::RegisterType type() const { | 454 CPURegister::RegisterType type() const { |
| 455 ASSERT(IsValid()); | 455 ASSERT(IsValid()); |
| 456 return type_; | 456 return type_; |
| 457 } | 457 } |
| 458 | 458 |
| 459 RegList list() const { | 459 RegList list() const { |
| 460 ASSERT(IsValid()); | 460 ASSERT(IsValid()); |
| 461 return list_; | 461 return list_; |
| 462 } | 462 } |
| 463 | 463 |
| 464 inline void set_list(RegList new_list) { |
| 465 ASSERT(IsValid()); |
| 466 list_ = new_list; |
| 467 } |
| 468 |
| 464 // Combine another CPURegList into this one. Registers that already exist in | 469 // Combine another CPURegList into this one. Registers that already exist in |
| 465 // this list are left unchanged. The type and size of the registers in the | 470 // this list are left unchanged. The type and size of the registers in the |
| 466 // 'other' list must match those in this list. | 471 // 'other' list must match those in this list. |
| 467 void Combine(const CPURegList& other); | 472 void Combine(const CPURegList& other); |
| 468 | 473 |
| 469 // Remove every register in the other CPURegList from this one. Registers that | 474 // Remove every register in the other CPURegList from this one. Registers that |
| 470 // do not exist in this list are ignored. The type and size of the registers | 475 // do not exist in this list are ignored. The type and size of the registers |
| 471 // in the 'other' list must match those in this list. | 476 // in the 'other' list must match those in this list. |
| 472 void Remove(const CPURegList& other); | 477 void Remove(const CPURegList& other); |
| 473 | 478 |
| 474 // Variants of Combine and Remove which take a single register. | 479 // Variants of Combine and Remove which take CPURegisters. |
| 475 void Combine(const CPURegister& other); | 480 void Combine(const CPURegister& other); |
| 476 void Remove(const CPURegister& other); | 481 void Remove(const CPURegister& other1, |
| 482 const CPURegister& other2 = NoCPUReg, |
| 483 const CPURegister& other3 = NoCPUReg, |
| 484 const CPURegister& other4 = NoCPUReg); |
| 477 | 485 |
| 478 // Variants of Combine and Remove which take a single register by its code; | 486 // Variants of Combine and Remove which take a single register by its code; |
| 479 // the type and size of the register is inferred from this list. | 487 // the type and size of the register is inferred from this list. |
| 480 void Combine(int code); | 488 void Combine(int code); |
| 481 void Remove(int code); | 489 void Remove(int code); |
| 482 | 490 |
| 483 // Remove all callee-saved registers from the list. This can be useful when | 491 // Remove all callee-saved registers from the list. This can be useful when |
| 484 // preparing registers for an AAPCS64 function call, for example. | 492 // preparing registers for an AAPCS64 function call, for example. |
| 485 void RemoveCalleeSaved(); | 493 void RemoveCalleeSaved(); |
| 486 | 494 |
| (...skipping 1589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2076 class EnsureSpace BASE_EMBEDDED { | 2084 class EnsureSpace BASE_EMBEDDED { |
| 2077 public: | 2085 public: |
| 2078 explicit EnsureSpace(Assembler* assembler) { | 2086 explicit EnsureSpace(Assembler* assembler) { |
| 2079 assembler->CheckBuffer(); | 2087 assembler->CheckBuffer(); |
| 2080 } | 2088 } |
| 2081 }; | 2089 }; |
| 2082 | 2090 |
| 2083 } } // namespace v8::internal | 2091 } } // namespace v8::internal |
| 2084 | 2092 |
| 2085 #endif // V8_A64_ASSEMBLER_A64_H_ | 2093 #endif // V8_A64_ASSEMBLER_A64_H_ |
| OLD | NEW |