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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 Zone* zone = isolate->interface_descriptor_zone(); | 441 Zone* zone = isolate->interface_descriptor_zone(); |
442 Type::FunctionType* function = | 442 Type::FunctionType* function = |
443 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 2, zone); | 443 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 2, zone); |
444 function->InitParameter(0, AnyTagged(zone)); // target | 444 function->InitParameter(0, AnyTagged(zone)); // target |
445 function->InitParameter(1, UntaggedIntegral32(zone)); // actual #arguments | 445 function->InitParameter(1, UntaggedIntegral32(zone)); // actual #arguments |
446 return function; | 446 return function; |
447 } | 447 } |
448 | 448 |
449 | 449 |
450 Type::FunctionType* | 450 Type::FunctionType* |
| 451 ConstructStubDescriptor::BuildCallInterfaceDescriptorFunctionType( |
| 452 Isolate* isolate, int paramater_count) { |
| 453 Zone* zone = isolate->interface_descriptor_zone(); |
| 454 Type::FunctionType* function = |
| 455 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 4, zone); |
| 456 function->InitParameter(0, AnyTagged(zone)); // target |
| 457 function->InitParameter(1, AnyTagged(zone)); // new.target |
| 458 function->InitParameter(2, UntaggedIntegral32(zone)); // actual #arguments |
| 459 function->InitParameter(3, AnyTagged(zone)); // opt. allocation site |
| 460 return function; |
| 461 } |
| 462 |
| 463 |
| 464 Type::FunctionType* |
451 ConstructTrampolineDescriptor::BuildCallInterfaceDescriptorFunctionType( | 465 ConstructTrampolineDescriptor::BuildCallInterfaceDescriptorFunctionType( |
452 Isolate* isolate, int paramater_count) { | 466 Isolate* isolate, int paramater_count) { |
453 Zone* zone = isolate->interface_descriptor_zone(); | 467 Zone* zone = isolate->interface_descriptor_zone(); |
454 Type::FunctionType* function = | 468 Type::FunctionType* function = |
455 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 3, zone); | 469 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 3, zone); |
456 function->InitParameter(0, AnyTagged(zone)); // target | 470 function->InitParameter(0, AnyTagged(zone)); // target |
457 function->InitParameter(1, AnyTagged(zone)); // new.target | 471 function->InitParameter(1, AnyTagged(zone)); // new.target |
458 function->InitParameter(2, UntaggedIntegral32(zone)); // actual #arguments | 472 function->InitParameter(2, UntaggedIntegral32(zone)); // actual #arguments |
459 return function; | 473 return function; |
460 } | 474 } |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 function->InitParameter(0, AnyTagged(zone)); // callee | 562 function->InitParameter(0, AnyTagged(zone)); // callee |
549 function->InitParameter(1, AnyTagged(zone)); // call_data | 563 function->InitParameter(1, AnyTagged(zone)); // call_data |
550 function->InitParameter(2, AnyTagged(zone)); // holder | 564 function->InitParameter(2, AnyTagged(zone)); // holder |
551 function->InitParameter(3, ExternalPointer(zone)); // api_function_address | 565 function->InitParameter(3, ExternalPointer(zone)); // api_function_address |
552 return function; | 566 return function; |
553 } | 567 } |
554 | 568 |
555 | 569 |
556 } // namespace internal | 570 } // namespace internal |
557 } // namespace v8 | 571 } // namespace v8 |
OLD | NEW |