| 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 CallInterfaceDescriptorData* data) { | 287 CallInterfaceDescriptorData* data) { |
| 288 data->InitializePlatformSpecific(0, nullptr); | 288 data->InitializePlatformSpecific(0, nullptr); |
| 289 } | 289 } |
| 290 | 290 |
| 291 void GrowArrayElementsDescriptor::InitializePlatformSpecific( | 291 void GrowArrayElementsDescriptor::InitializePlatformSpecific( |
| 292 CallInterfaceDescriptorData* data) { | 292 CallInterfaceDescriptorData* data) { |
| 293 Register registers[] = {ObjectRegister(), KeyRegister()}; | 293 Register registers[] = {ObjectRegister(), KeyRegister()}; |
| 294 data->InitializePlatformSpecific(arraysize(registers), registers); | 294 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 295 } | 295 } |
| 296 | 296 |
| 297 void NewArgumentsElementsDescriptor::InitializePlatformIndependent( |
| 298 CallInterfaceDescriptorData* data) { |
| 299 MachineType const kMachineTypes[] = {MachineType::IntPtr()}; |
| 300 data->InitializePlatformIndependent(arraysize(kMachineTypes), 0, |
| 301 kMachineTypes); |
| 302 } |
| 303 |
| 304 void NewArgumentsElementsDescriptor::InitializePlatformSpecific( |
| 305 CallInterfaceDescriptorData* data) { |
| 306 DefaultInitializePlatformSpecific(data, 1); |
| 307 } |
| 308 |
| 297 void VarArgFunctionDescriptor::InitializePlatformIndependent( | 309 void VarArgFunctionDescriptor::InitializePlatformIndependent( |
| 298 CallInterfaceDescriptorData* data) { | 310 CallInterfaceDescriptorData* data) { |
| 299 // kActualArgumentsCount | 311 // kActualArgumentsCount |
| 300 MachineType machine_types[] = {MachineType::Int32()}; | 312 MachineType machine_types[] = {MachineType::Int32()}; |
| 301 data->InitializePlatformIndependent(arraysize(machine_types), 0, | 313 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
| 302 machine_types); | 314 machine_types); |
| 303 } | 315 } |
| 304 | 316 |
| 305 void FastCloneRegExpDescriptor::InitializePlatformIndependent( | 317 void FastCloneRegExpDescriptor::InitializePlatformIndependent( |
| 306 CallInterfaceDescriptorData* data) { | 318 CallInterfaceDescriptorData* data) { |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 CallInterfaceDescriptorData* data) { | 522 CallInterfaceDescriptorData* data) { |
| 511 // kNumberOfArguments, kFirstArgument, kFunctionEntry | 523 // kNumberOfArguments, kFirstArgument, kFunctionEntry |
| 512 MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(), | 524 MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(), |
| 513 MachineType::Pointer()}; | 525 MachineType::Pointer()}; |
| 514 data->InitializePlatformIndependent(arraysize(machine_types), 0, | 526 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
| 515 machine_types); | 527 machine_types); |
| 516 } | 528 } |
| 517 | 529 |
| 518 } // namespace internal | 530 } // namespace internal |
| 519 } // namespace v8 | 531 } // namespace v8 |
| OLD | NEW |