| 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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 } | 370 } |
| 371 | 371 |
| 372 void GrowArrayElementsDescriptor::InitializePlatformSpecific( | 372 void GrowArrayElementsDescriptor::InitializePlatformSpecific( |
| 373 CallInterfaceDescriptorData* data) { | 373 CallInterfaceDescriptorData* data) { |
| 374 Register registers[] = {ObjectRegister(), KeyRegister()}; | 374 Register registers[] = {ObjectRegister(), KeyRegister()}; |
| 375 data->InitializePlatformSpecific(arraysize(registers), registers); | 375 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 376 } | 376 } |
| 377 | 377 |
| 378 void NewArgumentsElementsDescriptor::InitializePlatformIndependent( | 378 void NewArgumentsElementsDescriptor::InitializePlatformIndependent( |
| 379 CallInterfaceDescriptorData* data) { | 379 CallInterfaceDescriptorData* data) { |
| 380 MachineType const kMachineTypes[] = {MachineType::IntPtr()}; | 380 // kFrame, kLength |
| 381 MachineType const kMachineTypes[] = {MachineType::Pointer(), |
| 382 MachineType::TaggedSigned()}; |
| 381 data->InitializePlatformIndependent(arraysize(kMachineTypes), 0, | 383 data->InitializePlatformIndependent(arraysize(kMachineTypes), 0, |
| 382 kMachineTypes); | 384 kMachineTypes); |
| 383 } | 385 } |
| 384 | 386 |
| 385 void NewArgumentsElementsDescriptor::InitializePlatformSpecific( | 387 void NewArgumentsElementsDescriptor::InitializePlatformSpecific( |
| 386 CallInterfaceDescriptorData* data) { | 388 CallInterfaceDescriptorData* data) { |
| 387 DefaultInitializePlatformSpecific(data, 1); | 389 DefaultInitializePlatformSpecific(data, 2); |
| 388 } | 390 } |
| 389 | 391 |
| 390 void VarArgFunctionDescriptor::InitializePlatformIndependent( | 392 void VarArgFunctionDescriptor::InitializePlatformIndependent( |
| 391 CallInterfaceDescriptorData* data) { | 393 CallInterfaceDescriptorData* data) { |
| 392 // kActualArgumentsCount | 394 // kActualArgumentsCount |
| 393 MachineType machine_types[] = {MachineType::Int32()}; | 395 MachineType machine_types[] = {MachineType::Int32()}; |
| 394 data->InitializePlatformIndependent(arraysize(machine_types), 0, | 396 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
| 395 machine_types); | 397 machine_types); |
| 396 } | 398 } |
| 397 | 399 |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 629 void FrameDropperTrampolineDescriptor::InitializePlatformIndependent( | 631 void FrameDropperTrampolineDescriptor::InitializePlatformIndependent( |
| 630 CallInterfaceDescriptorData* data) { | 632 CallInterfaceDescriptorData* data) { |
| 631 // New FP value. | 633 // New FP value. |
| 632 MachineType machine_types[] = {MachineType::Pointer()}; | 634 MachineType machine_types[] = {MachineType::Pointer()}; |
| 633 data->InitializePlatformIndependent(arraysize(machine_types), 0, | 635 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
| 634 machine_types); | 636 machine_types); |
| 635 } | 637 } |
| 636 | 638 |
| 637 } // namespace internal | 639 } // namespace internal |
| 638 } // namespace v8 | 640 } // namespace v8 |
| OLD | NEW |