OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef V8_COMPILER_CODE_ASSEMBLER_H_ | 5 #ifndef V8_COMPILER_CODE_ASSEMBLER_H_ |
6 #define V8_COMPILER_CODE_ASSEMBLER_H_ | 6 #define V8_COMPILER_CODE_ASSEMBLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 Node* receiver = LoadRoot(Heap::kUndefinedValueRootIndex); | 400 Node* receiver = LoadRoot(Heap::kUndefinedValueRootIndex); |
401 | 401 |
402 // Construct(target, new_target, arity, receiver, arguments...) | 402 // Construct(target, new_target, arity, receiver, arguments...) |
403 return CallStub(callable, context, new_target, new_target, arity, receiver, | 403 return CallStub(callable, context, new_target, new_target, arity, receiver, |
404 args...); | 404 args...); |
405 } | 405 } |
406 | 406 |
407 Node* CallCFunctionN(Signature<MachineType>* signature, int input_count, | 407 Node* CallCFunctionN(Signature<MachineType>* signature, int input_count, |
408 Node* const* inputs); | 408 Node* const* inputs); |
409 | 409 |
| 410 // Call to a C function with one argument. |
| 411 Node* CallCFunction1(MachineType return_type, MachineType arg0_type, |
| 412 Node* function, Node* arg0); |
| 413 |
410 // Call to a C function with two arguments. | 414 // Call to a C function with two arguments. |
411 Node* CallCFunction2(MachineType return_type, MachineType arg0_type, | 415 Node* CallCFunction2(MachineType return_type, MachineType arg0_type, |
412 MachineType arg1_type, Node* function, Node* arg0, | 416 MachineType arg1_type, Node* function, Node* arg0, |
413 Node* arg1); | 417 Node* arg1); |
414 | 418 |
415 // Call to a C function with three arguments. | 419 // Call to a C function with three arguments. |
416 Node* CallCFunction3(MachineType return_type, MachineType arg0_type, | 420 Node* CallCFunction3(MachineType return_type, MachineType arg0_type, |
417 MachineType arg1_type, MachineType arg2_type, | 421 MachineType arg1_type, MachineType arg2_type, |
418 Node* function, Node* arg0, Node* arg1, Node* arg2); | 422 Node* function, Node* arg0, Node* arg1, Node* arg2); |
419 | 423 |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 CodeAssemblerCallback call_epilogue_; | 584 CodeAssemblerCallback call_epilogue_; |
581 | 585 |
582 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); | 586 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); |
583 }; | 587 }; |
584 | 588 |
585 } // namespace compiler | 589 } // namespace compiler |
586 } // namespace internal | 590 } // namespace internal |
587 } // namespace v8 | 591 } // namespace v8 |
588 | 592 |
589 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ | 593 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ |
OLD | NEW |