| 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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 | 485 |
| 486 void CallICTrampolineDescriptor::InitializePlatformIndependent( | 486 void CallICTrampolineDescriptor::InitializePlatformIndependent( |
| 487 CallInterfaceDescriptorData* data) { | 487 CallInterfaceDescriptorData* data) { |
| 488 // kTarget, kActualArgumentsCount, kSlot | 488 // kTarget, kActualArgumentsCount, kSlot |
| 489 MachineType machine_types[] = {MachineType::AnyTagged(), MachineType::Int32(), | 489 MachineType machine_types[] = {MachineType::AnyTagged(), MachineType::Int32(), |
| 490 MachineType::Int32()}; | 490 MachineType::Int32()}; |
| 491 data->InitializePlatformIndependent(arraysize(machine_types), 0, | 491 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
| 492 machine_types); | 492 machine_types); |
| 493 } | 493 } |
| 494 | 494 |
| 495 void RegExpExecDescriptor::InitializePlatformIndependent( | |
| 496 CallInterfaceDescriptorData* data) { | |
| 497 // kString, kLastIndex, kStringStart, kStringEnd, kEntryPoint | |
| 498 MachineType machine_types[] = {MachineType::AnyTagged(), MachineType::Int32(), | |
| 499 MachineType::Pointer(), MachineType::Pointer(), | |
| 500 MachineType::AnyTagged()}; | |
| 501 data->InitializePlatformIndependent(arraysize(machine_types), 0, | |
| 502 machine_types); | |
| 503 } | |
| 504 | |
| 505 void RegExpExecDescriptor::InitializePlatformSpecific( | |
| 506 CallInterfaceDescriptorData* data) { | |
| 507 Register registers[] = {StringRegister(), LastIndexRegister(), | |
| 508 StringStartRegister(), StringEndRegister(), | |
| 509 CodeRegister()}; | |
| 510 data->InitializePlatformSpecific(arraysize(registers), registers); | |
| 511 } | |
| 512 | |
| 513 void BuiltinDescriptor::InitializePlatformIndependent( | 495 void BuiltinDescriptor::InitializePlatformIndependent( |
| 514 CallInterfaceDescriptorData* data) { | 496 CallInterfaceDescriptorData* data) { |
| 515 // kTarget, kNewTarget, kArgumentsCount | 497 // kTarget, kNewTarget, kArgumentsCount |
| 516 MachineType machine_types[] = { | 498 MachineType machine_types[] = { |
| 517 MachineType::AnyTagged(), MachineType::AnyTagged(), MachineType::Int32()}; | 499 MachineType::AnyTagged(), MachineType::AnyTagged(), MachineType::Int32()}; |
| 518 data->InitializePlatformIndependent(arraysize(machine_types), 0, | 500 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
| 519 machine_types); | 501 machine_types); |
| 520 } | 502 } |
| 521 | 503 |
| 522 void BuiltinDescriptor::InitializePlatformSpecific( | 504 void BuiltinDescriptor::InitializePlatformSpecific( |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 void FrameDropperTrampolineDescriptor::InitializePlatformIndependent( | 631 void FrameDropperTrampolineDescriptor::InitializePlatformIndependent( |
| 650 CallInterfaceDescriptorData* data) { | 632 CallInterfaceDescriptorData* data) { |
| 651 // New FP value. | 633 // New FP value. |
| 652 MachineType machine_types[] = {MachineType::Pointer()}; | 634 MachineType machine_types[] = {MachineType::Pointer()}; |
| 653 data->InitializePlatformIndependent(arraysize(machine_types), 0, | 635 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
| 654 machine_types); | 636 machine_types); |
| 655 } | 637 } |
| 656 | 638 |
| 657 } // namespace internal | 639 } // namespace internal |
| 658 } // namespace v8 | 640 } // namespace v8 |
| OLD | NEW |