| 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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 Zone* zone = isolate->interface_descriptor_zone(); | 433 Zone* zone = isolate->interface_descriptor_zone(); |
| 434 FunctionType* function = | 434 FunctionType* function = |
| 435 Type::Function(AnyTagged(zone), Type::Undefined(), 3, zone)->AsFunction(); | 435 Type::Function(AnyTagged(zone), Type::Undefined(), 3, zone)->AsFunction(); |
| 436 function->InitParameter(0, Type::Receiver()); // JSFunction | 436 function->InitParameter(0, Type::Receiver()); // JSFunction |
| 437 function->InitParameter(1, SmiType(zone)); | 437 function->InitParameter(1, SmiType(zone)); |
| 438 function->InitParameter(2, AnyTagged(zone)); | 438 function->InitParameter(2, AnyTagged(zone)); |
| 439 return function; | 439 return function; |
| 440 } | 440 } |
| 441 | 441 |
| 442 FunctionType* | 442 FunctionType* |
| 443 ArrayNoArgumentConstructorDescriptor::BuildCallInterfaceDescriptorFunctionType( |
| 444 Isolate* isolate, int paramater_count) { |
| 445 Zone* zone = isolate->interface_descriptor_zone(); |
| 446 FunctionType* function = |
| 447 Type::Function(AnyTagged(zone), Type::Undefined(), 4, zone)->AsFunction(); |
| 448 function->InitParameter(0, Type::Receiver()); // JSFunction |
| 449 function->InitParameter(1, AnyTagged(zone)); |
| 450 function->InitParameter(2, UntaggedIntegral32(zone)); |
| 451 function->InitParameter(3, AnyTagged(zone)); |
| 452 return function; |
| 453 } |
| 454 |
| 455 FunctionType* |
| 443 ArrayConstructorDescriptor::BuildCallInterfaceDescriptorFunctionType( | 456 ArrayConstructorDescriptor::BuildCallInterfaceDescriptorFunctionType( |
| 444 Isolate* isolate, int paramater_count) { | 457 Isolate* isolate, int paramater_count) { |
| 445 Zone* zone = isolate->interface_descriptor_zone(); | 458 Zone* zone = isolate->interface_descriptor_zone(); |
| 446 FunctionType* function = | 459 FunctionType* function = |
| 447 Type::Function(AnyTagged(zone), Type::Undefined(), 3, zone)->AsFunction(); | 460 Type::Function(AnyTagged(zone), Type::Undefined(), 3, zone)->AsFunction(); |
| 448 function->InitParameter(0, Type::Receiver()); // JSFunction | 461 function->InitParameter(0, Type::Receiver()); // JSFunction |
| 449 function->InitParameter(1, AnyTagged(zone)); | 462 function->InitParameter(1, AnyTagged(zone)); |
| 450 function->InitParameter(2, UntaggedIntegral32(zone)); | 463 function->InitParameter(2, UntaggedIntegral32(zone)); |
| 451 return function; | 464 return function; |
| 452 } | 465 } |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 Type::Function(AnyTagged(zone), Type::Undefined(), 4, zone)->AsFunction(); | 538 Type::Function(AnyTagged(zone), Type::Undefined(), 4, zone)->AsFunction(); |
| 526 function->InitParameter(kAccumulatorParameter, AnyTagged(zone)); | 539 function->InitParameter(kAccumulatorParameter, AnyTagged(zone)); |
| 527 function->InitParameter(kBytecodeOffsetParameter, UntaggedIntegral32(zone)); | 540 function->InitParameter(kBytecodeOffsetParameter, UntaggedIntegral32(zone)); |
| 528 function->InitParameter(kBytecodeArrayParameter, AnyTagged(zone)); | 541 function->InitParameter(kBytecodeArrayParameter, AnyTagged(zone)); |
| 529 function->InitParameter(kDispatchTableParameter, AnyTagged(zone)); | 542 function->InitParameter(kDispatchTableParameter, AnyTagged(zone)); |
| 530 return function; | 543 return function; |
| 531 } | 544 } |
| 532 | 545 |
| 533 } // namespace internal | 546 } // namespace internal |
| 534 } // namespace v8 | 547 } // namespace v8 |
| OLD | NEW |