| 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/v8.h" | 5 #include "src/v8.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 | 16 |
| 17 const Register LoadDescriptor::ReceiverRegister() { return x1; } | 17 const Register LoadDescriptor::ReceiverRegister() { return x1; } |
| 18 const Register LoadDescriptor::NameRegister() { return x2; } | 18 const Register LoadDescriptor::NameRegister() { return x2; } |
| 19 | 19 |
| 20 | 20 |
| 21 const Register VectorLoadICTrampolineDescriptor::SlotRegister() { return x0; } | 21 const Register VectorLoadICTrampolineDescriptor::SlotRegister() { return x0; } |
| 22 | 22 |
| 23 | 23 |
| 24 const Register VectorLoadICDescriptor::VectorRegister() { return x3; } | 24 const Register VectorLoadICDescriptor::VectorRegister() { return x3; } |
| 25 | 25 |
| 26 | 26 |
| 27 const Register StoreDescriptor::ReceiverRegister() { return x1; } | 27 const Register StoreDescriptor::ReceiverRegister() { return x1; } |
| 28 const Register StoreDescriptor::NameRegister() { return x2; } | 28 const Register StoreDescriptor::NameRegister() { return x2; } |
| 29 const Register StoreDescriptor::ValueRegister() { return x0; } | 29 const Register StoreDescriptor::ValueRegister() { return x0; } |
| 30 const Register ExtendStorageDescriptor::MapRegister() { |
| 31 return StoreDescriptor::NameRegister(); |
| 32 } |
| 30 | 33 |
| 31 | 34 |
| 32 const Register ElementTransitionAndStoreDescriptor::MapRegister() { return x3; } | 35 const Register ElementTransitionAndStoreDescriptor::MapRegister() { return x3; } |
| 33 | 36 |
| 34 | 37 |
| 35 const Register InstanceofDescriptor::left() { | 38 const Register InstanceofDescriptor::left() { |
| 36 // Object to check (instanceof lhs). | 39 // Object to check (instanceof lhs). |
| 37 return x11; | 40 return x11; |
| 38 } | 41 } |
| 39 | 42 |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 Representation::Tagged(), // holder | 362 Representation::Tagged(), // holder |
| 360 Representation::External(), // api_function_address | 363 Representation::External(), // api_function_address |
| 361 }; | 364 }; |
| 362 data->Initialize(arraysize(registers), registers, representations, | 365 data->Initialize(arraysize(registers), registers, representations, |
| 363 &default_descriptor); | 366 &default_descriptor); |
| 364 } | 367 } |
| 365 } | 368 } |
| 366 } // namespace v8::internal | 369 } // namespace v8::internal |
| 367 | 370 |
| 368 #endif // V8_TARGET_ARCH_ARM64 | 371 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |