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 FastNewObjectDescriptor::InitializePlatformSpecific( |
| 78 CallInterfaceDescriptorData* data) { |
| 79 Register registers[] = {TargetRegister(), NewTargetRegister()}; |
| 80 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 81 } |
| 82 |
| 83 const Register FastNewObjectDescriptor::TargetRegister() { |
| 84 return kJSFunctionRegister; |
| 85 } |
| 86 |
| 87 const Register FastNewObjectDescriptor::NewTargetRegister() { |
| 88 return kJavaScriptCallNewTargetRegister; |
| 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 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 CallInterfaceDescriptorData* data) { | 593 CallInterfaceDescriptorData* data) { |
580 // kNumberOfArguments, kFirstArgument, kFunctionEntry | 594 // kNumberOfArguments, kFirstArgument, kFunctionEntry |
581 MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(), | 595 MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(), |
582 MachineType::Pointer()}; | 596 MachineType::Pointer()}; |
583 data->InitializePlatformIndependent(arraysize(machine_types), 0, | 597 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
584 machine_types); | 598 machine_types); |
585 } | 599 } |
586 | 600 |
587 } // namespace internal | 601 } // namespace internal |
588 } // namespace v8 | 602 } // namespace v8 |
OLD | NEW |