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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
8 | 8 |
9 #include "src/interface-descriptors.h" | 9 #include "src/interface-descriptors.h" |
10 | 10 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 void CallFunctionWithFeedbackDescriptor::Initialize( | 121 void CallFunctionWithFeedbackDescriptor::Initialize( |
122 CallInterfaceDescriptorData* data) { | 122 CallInterfaceDescriptorData* data) { |
123 Register registers[] = {rsi, rdi, rdx}; | 123 Register registers[] = {rsi, rdi, rdx}; |
124 Representation representations[] = {Representation::Tagged(), | 124 Representation representations[] = {Representation::Tagged(), |
125 Representation::Tagged(), | 125 Representation::Tagged(), |
126 Representation::Smi()}; | 126 Representation::Smi()}; |
127 data->Initialize(arraysize(registers), registers, representations); | 127 data->Initialize(arraysize(registers), registers, representations); |
128 } | 128 } |
129 | 129 |
130 | 130 |
| 131 void CallFunctionWithFeedbackAndVectorDescriptor::Initialize( |
| 132 CallInterfaceDescriptorData* data) { |
| 133 Register registers[] = {rsi, rdi, rdx, rbx}; |
| 134 Representation representations[] = { |
| 135 Representation::Tagged(), Representation::Tagged(), Representation::Smi(), |
| 136 Representation::Tagged()}; |
| 137 data->Initialize(arraysize(registers), registers, representations); |
| 138 } |
| 139 |
| 140 |
131 void CallConstructDescriptor::Initialize(CallInterfaceDescriptorData* data) { | 141 void CallConstructDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
132 // rax : number of arguments | 142 // rax : number of arguments |
133 // rbx : feedback vector | 143 // rbx : feedback vector |
134 // rdx : (only if rbx is not the megamorphic symbol) slot in feedback | 144 // rdx : (only if rbx is not the megamorphic symbol) slot in feedback |
135 // vector (Smi) | 145 // vector (Smi) |
136 // rdi : constructor function | 146 // rdi : constructor function |
137 // TODO(turbofan): So far we don't gather type feedback and hence skip the | 147 // TODO(turbofan): So far we don't gather type feedback and hence skip the |
138 // slot parameter, but ArrayConstructStub needs the vector to be undefined. | 148 // slot parameter, but ArrayConstructStub needs the vector to be undefined. |
139 Register registers[] = {rsi, rax, rdi, rbx}; | 149 Register registers[] = {rsi, rax, rdi, rbx}; |
140 data->Initialize(arraysize(registers), registers, NULL); | 150 data->Initialize(arraysize(registers), registers, NULL); |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 Representation::Tagged(), // call_data | 339 Representation::Tagged(), // call_data |
330 Representation::Tagged(), // holder | 340 Representation::Tagged(), // holder |
331 Representation::External(), // api_function_address | 341 Representation::External(), // api_function_address |
332 }; | 342 }; |
333 data->Initialize(arraysize(registers), registers, representations); | 343 data->Initialize(arraysize(registers), registers, representations); |
334 } | 344 } |
335 } | 345 } |
336 } // namespace v8::internal | 346 } // namespace v8::internal |
337 | 347 |
338 #endif // V8_TARGET_ARCH_X64 | 348 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |