| 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 |
| 495 void BuiltinDescriptor::InitializePlatformIndependent( | 513 void BuiltinDescriptor::InitializePlatformIndependent( |
| 496 CallInterfaceDescriptorData* data) { | 514 CallInterfaceDescriptorData* data) { |
| 497 // kTarget, kNewTarget, kArgumentsCount | 515 // kTarget, kNewTarget, kArgumentsCount |
| 498 MachineType machine_types[] = { | 516 MachineType machine_types[] = { |
| 499 MachineType::AnyTagged(), MachineType::AnyTagged(), MachineType::Int32()}; | 517 MachineType::AnyTagged(), MachineType::AnyTagged(), MachineType::Int32()}; |
| 500 data->InitializePlatformIndependent(arraysize(machine_types), 0, | 518 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
| 501 machine_types); | 519 machine_types); |
| 502 } | 520 } |
| 503 | 521 |
| 504 void BuiltinDescriptor::InitializePlatformSpecific( | 522 void BuiltinDescriptor::InitializePlatformSpecific( |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 void FrameDropperTrampolineDescriptor::InitializePlatformIndependent( | 649 void FrameDropperTrampolineDescriptor::InitializePlatformIndependent( |
| 632 CallInterfaceDescriptorData* data) { | 650 CallInterfaceDescriptorData* data) { |
| 633 // New FP value. | 651 // New FP value. |
| 634 MachineType machine_types[] = {MachineType::Pointer()}; | 652 MachineType machine_types[] = {MachineType::Pointer()}; |
| 635 data->InitializePlatformIndependent(arraysize(machine_types), 0, | 653 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
| 636 machine_types); | 654 machine_types); |
| 637 } | 655 } |
| 638 | 656 |
| 639 } // namespace internal | 657 } // namespace internal |
| 640 } // namespace v8 | 658 } // namespace v8 |
| OLD | NEW |