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 namespace { | 10 namespace { |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 return function; | 311 return function; |
312 } | 312 } |
313 | 313 |
314 void StoreWithVectorDescriptor::InitializePlatformSpecific( | 314 void StoreWithVectorDescriptor::InitializePlatformSpecific( |
315 CallInterfaceDescriptorData* data) { | 315 CallInterfaceDescriptorData* data) { |
316 Register registers[] = {ReceiverRegister(), NameRegister(), ValueRegister(), | 316 Register registers[] = {ReceiverRegister(), NameRegister(), ValueRegister(), |
317 SlotRegister(), VectorRegister()}; | 317 SlotRegister(), VectorRegister()}; |
318 data->InitializePlatformSpecific(arraysize(registers), registers); | 318 data->InitializePlatformSpecific(arraysize(registers), registers); |
319 } | 319 } |
320 | 320 |
| 321 FunctionType* |
| 322 BinaryOpWithVectorDescriptor::BuildCallInterfaceDescriptorFunctionType( |
| 323 Isolate* isolate, int parameter_count) { |
| 324 DCHECK_EQ(parameter_count, kParameterCount); |
| 325 Zone* zone = isolate->interface_descriptor_zone(); |
| 326 FunctionType* function = |
| 327 Type::Function(AnyTagged(zone), Type::Undefined(), kParameterCount, zone) |
| 328 ->AsFunction(); |
| 329 function->InitParameter(kLeft, AnyTagged(zone)); |
| 330 function->InitParameter(kRight, AnyTagged(zone)); |
| 331 function->InitParameter(kSlot, UntaggedIntegral32(zone)); |
| 332 function->InitParameter(kVector, AnyTagged(zone)); |
| 333 return function; |
| 334 } |
| 335 |
321 const Register ApiGetterDescriptor::ReceiverRegister() { | 336 const Register ApiGetterDescriptor::ReceiverRegister() { |
322 return LoadDescriptor::ReceiverRegister(); | 337 return LoadDescriptor::ReceiverRegister(); |
323 } | 338 } |
324 | 339 |
325 void ApiGetterDescriptor::InitializePlatformSpecific( | 340 void ApiGetterDescriptor::InitializePlatformSpecific( |
326 CallInterfaceDescriptorData* data) { | 341 CallInterfaceDescriptorData* data) { |
327 Register registers[] = {ReceiverRegister(), HolderRegister(), | 342 Register registers[] = {ReceiverRegister(), HolderRegister(), |
328 CallbackRegister()}; | 343 CallbackRegister()}; |
329 data->InitializePlatformSpecific(arraysize(registers), registers); | 344 data->InitializePlatformSpecific(arraysize(registers), registers); |
330 } | 345 } |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
616 ->AsFunction(); | 631 ->AsFunction(); |
617 function->InitParameter(kAccumulator, AnyTagged(zone)); | 632 function->InitParameter(kAccumulator, AnyTagged(zone)); |
618 function->InitParameter(kBytecodeOffset, UntaggedIntegral32(zone)); | 633 function->InitParameter(kBytecodeOffset, UntaggedIntegral32(zone)); |
619 function->InitParameter(kBytecodeArray, AnyTagged(zone)); | 634 function->InitParameter(kBytecodeArray, AnyTagged(zone)); |
620 function->InitParameter(kDispatchTable, AnyTagged(zone)); | 635 function->InitParameter(kDispatchTable, AnyTagged(zone)); |
621 return function; | 636 return function; |
622 } | 637 } |
623 | 638 |
624 } // namespace internal | 639 } // namespace internal |
625 } // namespace v8 | 640 } // namespace v8 |
OLD | NEW |