| 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 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 | 452 |
| 453 void CallTrampolineDescriptor::InitializePlatformIndependent( | 453 void CallTrampolineDescriptor::InitializePlatformIndependent( |
| 454 CallInterfaceDescriptorData* data) { | 454 CallInterfaceDescriptorData* data) { |
| 455 // kFunction, kActualArgumentsCount | 455 // kFunction, kActualArgumentsCount |
| 456 MachineType machine_types[] = {MachineType::AnyTagged(), | 456 MachineType machine_types[] = {MachineType::AnyTagged(), |
| 457 MachineType::Int32()}; | 457 MachineType::Int32()}; |
| 458 data->InitializePlatformIndependent(arraysize(machine_types), 0, | 458 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
| 459 machine_types); | 459 machine_types); |
| 460 } | 460 } |
| 461 | 461 |
| 462 void CallVarargsDescriptor::InitializePlatformIndependent( |
| 463 CallInterfaceDescriptorData* data) { |
| 464 // kTarget, kActualArgumentsCount, kArgumentsList, kArgumentsLength |
| 465 MachineType machine_types[] = {MachineType::AnyTagged(), MachineType::Int32(), |
| 466 MachineType::AnyTagged(), |
| 467 MachineType::Int32()}; |
| 468 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
| 469 machine_types); |
| 470 } |
| 471 |
| 462 void CallForwardVarargsDescriptor::InitializePlatformIndependent( | 472 void CallForwardVarargsDescriptor::InitializePlatformIndependent( |
| 463 CallInterfaceDescriptorData* data) { | 473 CallInterfaceDescriptorData* data) { |
| 464 // kTarget, kActualArgumentsCount, kStartIndex | 474 // kTarget, kActualArgumentsCount, kStartIndex |
| 465 MachineType machine_types[] = {MachineType::AnyTagged(), MachineType::Int32(), | 475 MachineType machine_types[] = {MachineType::AnyTagged(), MachineType::Int32(), |
| 466 MachineType::Int32()}; | 476 MachineType::Int32()}; |
| 467 data->InitializePlatformIndependent(arraysize(machine_types), 0, | 477 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
| 468 machine_types); | 478 machine_types); |
| 469 } | 479 } |
| 470 | 480 |
| 481 void CallWithArrayLikeDescriptor::InitializePlatformIndependent( |
| 482 CallInterfaceDescriptorData* data) { |
| 483 // kTarget, kArgumentsList |
| 484 MachineType machine_types[] = {MachineType::AnyTagged(), |
| 485 MachineType::AnyTagged()}; |
| 486 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
| 487 machine_types); |
| 488 } |
| 489 |
| 490 void ConstructVarargsDescriptor::InitializePlatformIndependent( |
| 491 CallInterfaceDescriptorData* data) { |
| 492 // kTarget, kNewTarget, kActualArgumentsCount, kArgumentsList, |
| 493 // kArgumentsLength |
| 494 MachineType machine_types[] = { |
| 495 MachineType::AnyTagged(), MachineType::AnyTagged(), MachineType::Int32(), |
| 496 MachineType::AnyTagged(), MachineType::Int32()}; |
| 497 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
| 498 machine_types); |
| 499 } |
| 500 |
| 471 void ConstructForwardVarargsDescriptor::InitializePlatformIndependent( | 501 void ConstructForwardVarargsDescriptor::InitializePlatformIndependent( |
| 472 CallInterfaceDescriptorData* data) { | 502 CallInterfaceDescriptorData* data) { |
| 473 // kTarget, kNewTarget, kActualArgumentsCount, kStartIndex | 503 // kTarget, kNewTarget, kActualArgumentsCount, kStartIndex |
| 474 MachineType machine_types[] = {MachineType::AnyTagged(), | 504 MachineType machine_types[] = {MachineType::AnyTagged(), |
| 475 MachineType::AnyTagged(), MachineType::Int32(), | 505 MachineType::AnyTagged(), MachineType::Int32(), |
| 476 MachineType::Int32()}; | 506 MachineType::Int32()}; |
| 477 data->InitializePlatformIndependent(arraysize(machine_types), 0, | 507 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
| 478 machine_types); | 508 machine_types); |
| 479 } | 509 } |
| 480 | 510 |
| 511 void ConstructWithArrayLikeDescriptor::InitializePlatformIndependent( |
| 512 CallInterfaceDescriptorData* data) { |
| 513 // kTarget, kNewTarget, kArgumentsList |
| 514 MachineType machine_types[] = {MachineType::AnyTagged(), |
| 515 MachineType::AnyTagged(), |
| 516 MachineType::AnyTagged()}; |
| 517 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
| 518 machine_types); |
| 519 } |
| 520 |
| 481 void ConstructStubDescriptor::InitializePlatformIndependent( | 521 void ConstructStubDescriptor::InitializePlatformIndependent( |
| 482 CallInterfaceDescriptorData* data) { | 522 CallInterfaceDescriptorData* data) { |
| 483 // kFunction, kNewTarget, kActualArgumentsCount, kAllocationSite | 523 // kFunction, kNewTarget, kActualArgumentsCount, kAllocationSite |
| 484 MachineType machine_types[] = {MachineType::AnyTagged(), | 524 MachineType machine_types[] = {MachineType::AnyTagged(), |
| 485 MachineType::AnyTagged(), MachineType::Int32(), | 525 MachineType::AnyTagged(), MachineType::Int32(), |
| 486 MachineType::AnyTagged()}; | 526 MachineType::AnyTagged()}; |
| 487 data->InitializePlatformIndependent(arraysize(machine_types), 0, | 527 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
| 488 machine_types); | 528 machine_types); |
| 489 } | 529 } |
| 490 | 530 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 void FrameDropperTrampolineDescriptor::InitializePlatformIndependent( | 695 void FrameDropperTrampolineDescriptor::InitializePlatformIndependent( |
| 656 CallInterfaceDescriptorData* data) { | 696 CallInterfaceDescriptorData* data) { |
| 657 // New FP value. | 697 // New FP value. |
| 658 MachineType machine_types[] = {MachineType::Pointer()}; | 698 MachineType machine_types[] = {MachineType::Pointer()}; |
| 659 data->InitializePlatformIndependent(arraysize(machine_types), 0, | 699 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
| 660 machine_types); | 700 machine_types); |
| 661 } | 701 } |
| 662 | 702 |
| 663 } // namespace internal | 703 } // namespace internal |
| 664 } // namespace v8 | 704 } // namespace v8 |
| OLD | NEW |