| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 data->InitializePlatformIndependent(arraysize(machine_types), 0, | 67 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
| 68 machine_types); | 68 machine_types); |
| 69 } | 69 } |
| 70 | 70 |
| 71 void FastNewFunctionContextDescriptor::InitializePlatformSpecific( | 71 void FastNewFunctionContextDescriptor::InitializePlatformSpecific( |
| 72 CallInterfaceDescriptorData* data) { | 72 CallInterfaceDescriptorData* data) { |
| 73 Register registers[] = {FunctionRegister(), SlotsRegister()}; | 73 Register registers[] = {FunctionRegister(), SlotsRegister()}; |
| 74 data->InitializePlatformSpecific(arraysize(registers), registers); | 74 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 75 } | 75 } |
| 76 | 76 |
| 77 void FastNewEvalContextDescriptor::InitializePlatformIndependent( |
| 78 CallInterfaceDescriptorData* data) { |
| 79 MachineType machine_types[] = {MachineType::AnyTagged(), |
| 80 MachineType::Int32()}; |
| 81 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
| 82 machine_types); |
| 83 } |
| 84 |
| 85 void FastNewEvalContextDescriptor::InitializePlatformSpecific( |
| 86 CallInterfaceDescriptorData* data) { |
| 87 Register registers[] = {FunctionRegister(), SlotsRegister()}; |
| 88 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 89 } |
| 90 |
| 77 void LoadDescriptor::InitializePlatformIndependent( | 91 void LoadDescriptor::InitializePlatformIndependent( |
| 78 CallInterfaceDescriptorData* data) { | 92 CallInterfaceDescriptorData* data) { |
| 79 // kReceiver, kName, kSlot | 93 // kReceiver, kName, kSlot |
| 80 MachineType machine_types[] = {MachineType::AnyTagged(), | 94 MachineType machine_types[] = {MachineType::AnyTagged(), |
| 81 MachineType::AnyTagged(), | 95 MachineType::AnyTagged(), |
| 82 MachineType::TaggedSigned()}; | 96 MachineType::TaggedSigned()}; |
| 83 data->InitializePlatformIndependent(arraysize(machine_types), 0, | 97 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
| 84 machine_types); | 98 machine_types); |
| 85 } | 99 } |
| 86 | 100 |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 CallInterfaceDescriptorData* data) { | 500 CallInterfaceDescriptorData* data) { |
| 487 // kNumberOfArguments, kFirstArgument, kFunctionEntry | 501 // kNumberOfArguments, kFirstArgument, kFunctionEntry |
| 488 MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(), | 502 MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(), |
| 489 MachineType::Pointer()}; | 503 MachineType::Pointer()}; |
| 490 data->InitializePlatformIndependent(arraysize(machine_types), 0, | 504 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
| 491 machine_types); | 505 machine_types); |
| 492 } | 506 } |
| 493 | 507 |
| 494 } // namespace internal | 508 } // namespace internal |
| 495 } // namespace v8 | 509 } // namespace v8 |
| OLD | NEW |