| 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 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 data->Initialize(arraysize(registers), registers, NULL); | 117 data->Initialize(arraysize(registers), registers, NULL); |
| 118 } | 118 } |
| 119 | 119 |
| 120 | 120 |
| 121 void CreateAllocationSiteDescriptor::Initialize( | 121 void CreateAllocationSiteDescriptor::Initialize( |
| 122 CallInterfaceDescriptorData* data) { | 122 CallInterfaceDescriptorData* data) { |
| 123 // cp: context | 123 // cp: context |
| 124 // x2: feedback vector | 124 // x2: feedback vector |
| 125 // x3: call feedback slot | 125 // x3: call feedback slot |
| 126 Register registers[] = {cp, x2, x3}; | 126 Register registers[] = {cp, x2, x3}; |
| 127 Representation representations[] = {Representation::Tagged(), | 127 data->Initialize(arraysize(registers), registers, NULL); |
| 128 Representation::Tagged(), | |
| 129 Representation::Smi()}; | |
| 130 data->Initialize(arraysize(registers), registers, representations); | |
| 131 } | 128 } |
| 132 | 129 |
| 133 | 130 |
| 134 void CreateWeakCellDescriptor::Initialize(CallInterfaceDescriptorData* data) { | |
| 135 // cp: context | |
| 136 // x2: feedback vector | |
| 137 // x3: call feedback slot | |
| 138 // x1: tagged value to put in the weak cell | |
| 139 Register registers[] = {cp, x2, x3, x1}; | |
| 140 Representation representations[] = { | |
| 141 Representation::Tagged(), Representation::Tagged(), Representation::Smi(), | |
| 142 Representation::Tagged()}; | |
| 143 data->Initialize(arraysize(registers), registers, representations); | |
| 144 } | |
| 145 | |
| 146 | |
| 147 void StoreArrayLiteralElementDescriptor::Initialize( | 131 void StoreArrayLiteralElementDescriptor::Initialize( |
| 148 CallInterfaceDescriptorData* data) { | 132 CallInterfaceDescriptorData* data) { |
| 149 Register registers[] = {cp, x3, x0}; | 133 Register registers[] = {cp, x3, x0}; |
| 150 data->Initialize(arraysize(registers), registers, NULL); | 134 data->Initialize(arraysize(registers), registers, NULL); |
| 151 } | 135 } |
| 152 | 136 |
| 153 | 137 |
| 154 void CallFunctionDescriptor::Initialize(CallInterfaceDescriptorData* data) { | 138 void CallFunctionDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
| 155 // x1 function the function to call | 139 // x1 function the function to call |
| 156 Register registers[] = {cp, x1}; | 140 Register registers[] = {cp, x1}; |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 Representation::Tagged(), // holder | 405 Representation::Tagged(), // holder |
| 422 Representation::External(), // api_function_address | 406 Representation::External(), // api_function_address |
| 423 }; | 407 }; |
| 424 data->Initialize(arraysize(registers), registers, representations, | 408 data->Initialize(arraysize(registers), registers, representations, |
| 425 &default_descriptor); | 409 &default_descriptor); |
| 426 } | 410 } |
| 427 } | 411 } |
| 428 } // namespace v8::internal | 412 } // namespace v8::internal |
| 429 | 413 |
| 430 #endif // V8_TARGET_ARCH_ARM64 | 414 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |