| 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 // registers without those with a special meaning. | 255 // registers without those with a special meaning. |
| 256 // | 256 // |
| 257 // The default list excludes registers x26 to x31 because they are | 257 // The default list excludes registers x26 to x31 because they are |
| 258 // reserved for the following purpose: | 258 // reserved for the following purpose: |
| 259 // - x26 root register | 259 // - x26 root register |
| 260 // - x27 context pointer register | 260 // - x27 context pointer register |
| 261 // - x28 jssp | 261 // - x28 jssp |
| 262 // - x29 frame pointer | 262 // - x29 frame pointer |
| 263 // - x30 link register(lr) | 263 // - x30 link register(lr) |
| 264 // - x31 xzr/stack pointer | 264 // - x31 xzr/stack pointer |
| 265 CPURegList list(CPURegister::kRegister, kXRegSize, 0, 25); | 265 CPURegList list(CPURegister::kRegister, kXRegSizeInBits, 0, 25); |
| 266 | 266 |
| 267 // We also remove MacroAssembler's scratch registers. | 267 // We also remove MacroAssembler's scratch registers. |
| 268 list.Remove(ip0); | 268 list.Remove(ip0); |
| 269 list.Remove(ip1); | 269 list.Remove(ip1); |
| 270 list.Remove(x8); | 270 list.Remove(x8); |
| 271 list.Remove(x9); | 271 list.Remove(x9); |
| 272 | 272 |
| 273 return list; | 273 return list; |
| 274 } | 274 } |
| 275 | 275 |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 TargetAddressStorageMode storage_mode() { return storage_mode_; } | 460 TargetAddressStorageMode storage_mode() { return storage_mode_; } |
| 461 | 461 |
| 462 private: | 462 private: |
| 463 TargetAddressStorageMode storage_mode_; | 463 TargetAddressStorageMode storage_mode_; |
| 464 }; | 464 }; |
| 465 | 465 |
| 466 | 466 |
| 467 } } // namespace v8::internal | 467 } } // namespace v8::internal |
| 468 | 468 |
| 469 #endif // V8_A64_CODE_STUBS_A64_H_ | 469 #endif // V8_A64_CODE_STUBS_A64_H_ |
| OLD | NEW |