| 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 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 Zone* zone = isolate->interface_descriptor_zone(); | 538 Zone* zone = isolate->interface_descriptor_zone(); |
| 539 FunctionType* function = | 539 FunctionType* function = |
| 540 Type::Function(AnyTagged(zone), Type::Undefined(), 4, zone)->AsFunction(); | 540 Type::Function(AnyTagged(zone), Type::Undefined(), 4, zone)->AsFunction(); |
| 541 function->InitParameter(0, AnyTagged(zone)); // callee | 541 function->InitParameter(0, AnyTagged(zone)); // callee |
| 542 function->InitParameter(1, AnyTagged(zone)); // call_data | 542 function->InitParameter(1, AnyTagged(zone)); // call_data |
| 543 function->InitParameter(2, AnyTagged(zone)); // holder | 543 function->InitParameter(2, AnyTagged(zone)); // holder |
| 544 function->InitParameter(3, ExternalPointer(zone)); // api_function_address | 544 function->InitParameter(3, ExternalPointer(zone)); // api_function_address |
| 545 return function; | 545 return function; |
| 546 } | 546 } |
| 547 | 547 |
| 548 FunctionType* |
| 549 InterpreterDispatchDescriptor::BuildCallInterfaceDescriptorFunctionType( |
| 550 Isolate* isolate, int parameter_count) { |
| 551 Zone* zone = isolate->interface_descriptor_zone(); |
| 552 FunctionType* function = |
| 553 Type::Function(AnyTagged(zone), Type::Undefined(), 5, zone)->AsFunction(); |
| 554 function->InitParameter(kAccumulatorParameter, AnyTagged(zone)); |
| 555 function->InitParameter(kRegisterFileParameter, ExternalPointer(zone)); |
| 556 function->InitParameter(kBytecodeOffsetParameter, UntaggedIntegral32(zone)); |
| 557 function->InitParameter(kBytecodeArrayParameter, AnyTagged(zone)); |
| 558 function->InitParameter(kDispatchTableParameter, AnyTagged(zone)); |
| 559 return function; |
| 560 } |
| 548 | 561 |
| 549 } // namespace internal | 562 } // namespace internal |
| 550 } // namespace v8 | 563 } // namespace v8 |
| OLD | NEW |