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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 Type::FunctionType* function = | 348 Type::FunctionType* function = |
349 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 3, zone); | 349 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 3, zone); |
350 function->InitParameter(0, AnyTagged(zone)); | 350 function->InitParameter(0, AnyTagged(zone)); |
351 function->InitParameter(1, SmiType(zone)); | 351 function->InitParameter(1, SmiType(zone)); |
352 function->InitParameter(2, AnyTagged(zone)); | 352 function->InitParameter(2, AnyTagged(zone)); |
353 return function; | 353 return function; |
354 } | 354 } |
355 | 355 |
356 | 356 |
357 Type::FunctionType* | 357 Type::FunctionType* |
| 358 CallTrampolineDescriptor::BuildCallInterfaceDescriptorFunctionType( |
| 359 Isolate* isolate, int paramater_count) { |
| 360 Zone* zone = isolate->interface_descriptor_zone(); |
| 361 Type::FunctionType* function = |
| 362 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 2, zone); |
| 363 function->InitParameter(0, AnyTagged(zone)); // target |
| 364 function->InitParameter( |
| 365 1, UntaggedSigned32(zone)); // actual number of arguments |
| 366 return function; |
| 367 } |
| 368 |
| 369 |
| 370 Type::FunctionType* |
358 CallFunctionWithFeedbackDescriptor::BuildCallInterfaceDescriptorFunctionType( | 371 CallFunctionWithFeedbackDescriptor::BuildCallInterfaceDescriptorFunctionType( |
359 Isolate* isolate, int paramater_count) { | 372 Isolate* isolate, int paramater_count) { |
360 Zone* zone = isolate->interface_descriptor_zone(); | 373 Zone* zone = isolate->interface_descriptor_zone(); |
361 Type::FunctionType* function = | 374 Type::FunctionType* function = |
362 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 2, zone); | 375 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 2, zone); |
363 function->InitParameter(0, Type::Receiver()); // JSFunction | 376 function->InitParameter(0, Type::Receiver()); // JSFunction |
364 function->InitParameter(1, SmiType(zone)); | 377 function->InitParameter(1, SmiType(zone)); |
365 return function; | 378 return function; |
366 } | 379 } |
367 | 380 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 5, zone); | 485 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 5, zone); |
473 function->InitParameter(0, Type::Receiver()); | 486 function->InitParameter(0, Type::Receiver()); |
474 function->InitParameter(1, SmiType(zone)); | 487 function->InitParameter(1, SmiType(zone)); |
475 function->InitParameter(2, AnyTagged(zone)); | 488 function->InitParameter(2, AnyTagged(zone)); |
476 function->InitParameter(3, AnyTagged(zone)); | 489 function->InitParameter(3, AnyTagged(zone)); |
477 function->InitParameter(4, AnyTagged(zone)); | 490 function->InitParameter(4, AnyTagged(zone)); |
478 return function; | 491 return function; |
479 } | 492 } |
480 } // namespace internal | 493 } // namespace internal |
481 } // namespace v8 | 494 } // namespace v8 |
OLD | NEW |