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/interface-descriptors.h" | 5 #include "src/interface-descriptors.h" |
6 | 6 |
7 namespace v8 { | 7 namespace v8 { |
8 namespace internal { | 8 namespace internal { |
9 | 9 |
10 | 10 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 CallInterfaceDescriptorData* data) { | 177 CallInterfaceDescriptorData* data) { |
178 Register registers[] = { | 178 Register registers[] = { |
179 ReceiverRegister(), FieldOffsetRegister(), MapRegister(), | 179 ReceiverRegister(), FieldOffsetRegister(), MapRegister(), |
180 ValueRegister(), SlotRegister(), VectorRegister(), | 180 ValueRegister(), SlotRegister(), VectorRegister(), |
181 NameRegister(), | 181 NameRegister(), |
182 }; | 182 }; |
183 int len = arraysize(registers) - kStackArgumentsCount; | 183 int len = arraysize(registers) - kStackArgumentsCount; |
184 data->InitializePlatformSpecific(len, registers); | 184 data->InitializePlatformSpecific(len, registers); |
185 } | 185 } |
186 | 186 |
| 187 void StringCharAtDescriptor::InitializePlatformIndependent( |
| 188 CallInterfaceDescriptorData* data) { |
| 189 // kReceiver, kPosition |
| 190 MachineType machine_types[] = {MachineType::AnyTagged(), |
| 191 MachineType::IntPtr()}; |
| 192 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
| 193 machine_types); |
| 194 } |
| 195 |
| 196 void StringCharAtDescriptor::InitializePlatformSpecific( |
| 197 CallInterfaceDescriptorData* data) { |
| 198 DefaultInitializePlatformSpecific(data, kParameterCount); |
| 199 } |
| 200 |
187 void StringCompareDescriptor::InitializePlatformSpecific( | 201 void StringCompareDescriptor::InitializePlatformSpecific( |
188 CallInterfaceDescriptorData* data) { | 202 CallInterfaceDescriptorData* data) { |
189 Register registers[] = {LeftRegister(), RightRegister()}; | 203 Register registers[] = {LeftRegister(), RightRegister()}; |
190 data->InitializePlatformSpecific(arraysize(registers), registers); | 204 data->InitializePlatformSpecific(arraysize(registers), registers); |
191 } | 205 } |
192 | 206 |
193 void TypeConversionDescriptor::InitializePlatformSpecific( | 207 void TypeConversionDescriptor::InitializePlatformSpecific( |
194 CallInterfaceDescriptorData* data) { | 208 CallInterfaceDescriptorData* data) { |
195 Register registers[] = {ArgumentRegister()}; | 209 Register registers[] = {ArgumentRegister()}; |
196 data->InitializePlatformSpecific(arraysize(registers), registers); | 210 data->InitializePlatformSpecific(arraysize(registers), registers); |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 CallInterfaceDescriptorData* data) { | 536 CallInterfaceDescriptorData* data) { |
523 // kNumberOfArguments, kFirstArgument, kFunctionEntry | 537 // kNumberOfArguments, kFirstArgument, kFunctionEntry |
524 MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(), | 538 MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(), |
525 MachineType::Pointer()}; | 539 MachineType::Pointer()}; |
526 data->InitializePlatformIndependent(arraysize(machine_types), 0, | 540 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
527 machine_types); | 541 machine_types); |
528 } | 542 } |
529 | 543 |
530 } // namespace internal | 544 } // namespace internal |
531 } // namespace v8 | 545 } // namespace v8 |
OLD | NEW |