| 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/interface-descriptors.h" | 7 #include "src/interface-descriptors.h" |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 Type::FunctionType* function = Type::FunctionType::New( | 352 Type::FunctionType* function = Type::FunctionType::New( |
| 353 AnyTagged(), Type::Undefined(), 4, isolate->interface_descriptor_zone()); | 353 AnyTagged(), Type::Undefined(), 4, isolate->interface_descriptor_zone()); |
| 354 function->InitParameter(0, AnyTagged()); // callee | 354 function->InitParameter(0, AnyTagged()); // callee |
| 355 function->InitParameter(1, AnyTagged()); // call_data | 355 function->InitParameter(1, AnyTagged()); // call_data |
| 356 function->InitParameter(2, AnyTagged()); // holder | 356 function->InitParameter(2, AnyTagged()); // holder |
| 357 function->InitParameter(3, ExternalPointer()); // api_function_address | 357 function->InitParameter(3, ExternalPointer()); // api_function_address |
| 358 return function; | 358 return function; |
| 359 } | 359 } |
| 360 | 360 |
| 361 | 361 |
| 362 Type::FunctionType* MathRoundVariantCallFromUnoptimizedCodeDescriptor:: | 362 Type::FunctionType* |
| 363 BuildCallInterfaceDescriptorFunctionType(Isolate* isolate, | 363 MathRoundVariantDescriptor::BuildCallInterfaceDescriptorFunctionType( |
| 364 int paramater_count) { | 364 Isolate* isolate, int paramater_count) { |
| 365 Type::FunctionType* function = Type::FunctionType::New( | 365 Type::FunctionType* function = Type::FunctionType::New( |
| 366 AnyTagged(), Type::Undefined(), 4, isolate->interface_descriptor_zone()); | 366 AnyTagged(), Type::Undefined(), 2, isolate->interface_descriptor_zone()); |
| 367 function->InitParameter(0, Type::Receiver()); | 367 function->InitParameter(0, SmiType()); |
| 368 function->InitParameter(1, SmiType()); | 368 function->InitParameter(1, AnyTagged()); |
| 369 function->InitParameter(2, AnyTagged()); | |
| 370 function->InitParameter(3, AnyTagged()); | |
| 371 return function; | 369 return function; |
| 372 } | 370 } |
| 373 | 371 |
| 374 | 372 |
| 375 Type::FunctionType* MathRoundVariantCallFromOptimizedCodeDescriptor:: | |
| 376 BuildCallInterfaceDescriptorFunctionType(Isolate* isolate, | |
| 377 int paramater_count) { | |
| 378 Type::FunctionType* function = Type::FunctionType::New( | |
| 379 AnyTagged(), Type::Undefined(), 5, isolate->interface_descriptor_zone()); | |
| 380 function->InitParameter(0, Type::Receiver()); | |
| 381 function->InitParameter(1, SmiType()); | |
| 382 function->InitParameter(2, AnyTagged()); | |
| 383 function->InitParameter(3, AnyTagged()); | |
| 384 function->InitParameter(4, AnyTagged()); | |
| 385 return function; | |
| 386 } | |
| 387 } // namespace internal | 373 } // namespace internal |
| 388 } // namespace v8 | 374 } // namespace v8 |
| OLD | NEW |