| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/arm64/interface-descriptors-arm64.h" | 5 #include "src/arm64/interface-descriptors-arm64.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
| 8 | 8 |
| 9 #include "src/interface-descriptors.h" | 9 #include "src/interface-descriptors.h" |
| 10 | 10 |
| 11 namespace v8 { | 11 namespace v8 { |
| 12 namespace internal { | 12 namespace internal { |
| 13 | 13 |
| 14 const Register CallInterfaceDescriptor::ContextRegister() { return cp; } | 14 const Register CallInterfaceDescriptor::ContextRegister() { return cp; } |
| 15 | 15 |
| 16 void CallInterfaceDescriptor::DefaultInitializePlatformSpecific( |
| 17 CallInterfaceDescriptorData* data, int register_parameter_count) { |
| 18 const Register default_stub_registers[] = {x0, x1, x2, x3, x4}; |
| 19 CHECK_LE(static_cast<size_t>(register_parameter_count), |
| 20 arraysize(default_stub_registers)); |
| 21 data->InitializePlatformSpecific(register_parameter_count, |
| 22 default_stub_registers); |
| 23 } |
| 16 | 24 |
| 17 const Register LoadDescriptor::ReceiverRegister() { return x1; } | 25 const Register LoadDescriptor::ReceiverRegister() { return x1; } |
| 18 const Register LoadDescriptor::NameRegister() { return x2; } | 26 const Register LoadDescriptor::NameRegister() { return x2; } |
| 19 const Register LoadDescriptor::SlotRegister() { return x0; } | 27 const Register LoadDescriptor::SlotRegister() { return x0; } |
| 20 | 28 |
| 21 | 29 |
| 22 const Register LoadWithVectorDescriptor::VectorRegister() { return x3; } | 30 const Register LoadWithVectorDescriptor::VectorRegister() { return x3; } |
| 23 | 31 |
| 24 | 32 |
| 25 const Register StoreDescriptor::ReceiverRegister() { return x1; } | 33 const Register StoreDescriptor::ReceiverRegister() { return x1; } |
| (...skipping 30 matching lines...) Expand all Loading... |
| 56 | 64 |
| 57 const Register MathPowTaggedDescriptor::exponent() { return x11; } | 65 const Register MathPowTaggedDescriptor::exponent() { return x11; } |
| 58 | 66 |
| 59 | 67 |
| 60 const Register MathPowIntegerDescriptor::exponent() { return x12; } | 68 const Register MathPowIntegerDescriptor::exponent() { return x12; } |
| 61 | 69 |
| 62 | 70 |
| 63 const Register GrowArrayElementsDescriptor::ObjectRegister() { return x0; } | 71 const Register GrowArrayElementsDescriptor::ObjectRegister() { return x0; } |
| 64 const Register GrowArrayElementsDescriptor::KeyRegister() { return x3; } | 72 const Register GrowArrayElementsDescriptor::KeyRegister() { return x3; } |
| 65 | 73 |
| 66 const Register HasPropertyDescriptor::ObjectRegister() { return x0; } | |
| 67 const Register HasPropertyDescriptor::KeyRegister() { return x3; } | |
| 68 | 74 |
| 69 void FastNewClosureDescriptor::InitializePlatformSpecific( | 75 void FastNewClosureDescriptor::InitializePlatformSpecific( |
| 70 CallInterfaceDescriptorData* data) { | 76 CallInterfaceDescriptorData* data) { |
| 71 // x2: function info | 77 // x2: function info |
| 72 Register registers[] = {x2}; | 78 Register registers[] = {x2}; |
| 73 data->InitializePlatformSpecific(arraysize(registers), registers); | 79 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 74 } | 80 } |
| 75 | 81 |
| 76 | 82 |
| 77 void FastNewContextDescriptor::InitializePlatformSpecific( | 83 void FastNewContextDescriptor::InitializePlatformSpecific( |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 x1, // the JSGeneratorObject to resume | 475 x1, // the JSGeneratorObject to resume |
| 470 x2 // the resume mode (tagged) | 476 x2 // the resume mode (tagged) |
| 471 }; | 477 }; |
| 472 data->InitializePlatformSpecific(arraysize(registers), registers); | 478 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 473 } | 479 } |
| 474 | 480 |
| 475 } // namespace internal | 481 } // namespace internal |
| 476 } // namespace v8 | 482 } // namespace v8 |
| 477 | 483 |
| 478 #endif // V8_TARGET_ARCH_ARM64 | 484 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |