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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 Node* TailCallBytecodeDispatch(const CallInterfaceDescriptor& descriptor, | 414 Node* TailCallBytecodeDispatch(const CallInterfaceDescriptor& descriptor, |
415 Node* code_target_address, Node** args); | 415 Node* code_target_address, Node** args); |
416 | 416 |
417 Node* CallJS(Callable const& callable, Node* context, Node* function, | 417 Node* CallJS(Callable const& callable, Node* context, Node* function, |
418 Node* receiver, size_t result_size = 1); | 418 Node* receiver, size_t result_size = 1); |
419 Node* CallJS(Callable const& callable, Node* context, Node* function, | 419 Node* CallJS(Callable const& callable, Node* context, Node* function, |
420 Node* receiver, Node* arg1, size_t result_size = 1); | 420 Node* receiver, Node* arg1, size_t result_size = 1); |
421 Node* CallJS(Callable const& callable, Node* context, Node* function, | 421 Node* CallJS(Callable const& callable, Node* context, Node* function, |
422 Node* receiver, Node* arg1, Node* arg2, size_t result_size = 1); | 422 Node* receiver, Node* arg1, Node* arg2, size_t result_size = 1); |
423 | 423 |
| 424 // Call to a C function with two arguments. |
| 425 Node* CallCFunction2(MachineType return_type, MachineType arg0_type, |
| 426 MachineType arg1_type, Node* function, Node* arg0, |
| 427 Node* arg1); |
| 428 |
424 // Exception handling support. | 429 // Exception handling support. |
425 void GotoIfException(Node* node, Label* if_exception, | 430 void GotoIfException(Node* node, Label* if_exception, |
426 Variable* exception_var = nullptr); | 431 Variable* exception_var = nullptr); |
427 | 432 |
428 // Branching helpers. | 433 // Branching helpers. |
429 void BranchIf(Node* condition, Label* if_true, Label* if_false); | 434 void BranchIf(Node* condition, Label* if_true, Label* if_false); |
430 | 435 |
431 #define BRANCH_HELPER(name) \ | 436 #define BRANCH_HELPER(name) \ |
432 void BranchIf##name(Node* a, Node* b, Label* if_true, Label* if_false) { \ | 437 void BranchIf##name(Node* a, Node* b, Label* if_true, Label* if_false) { \ |
433 BranchIf(name(a, b), if_true, if_false); \ | 438 BranchIf(name(a, b), if_true, if_false); \ |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 // Map of variables to the list of value nodes that have been added from each | 498 // Map of variables to the list of value nodes that have been added from each |
494 // merge path in their order of merging. | 499 // merge path in their order of merging. |
495 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; | 500 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; |
496 }; | 501 }; |
497 | 502 |
498 } // namespace compiler | 503 } // namespace compiler |
499 } // namespace internal | 504 } // namespace internal |
500 } // namespace v8 | 505 } // namespace v8 |
501 | 506 |
502 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ | 507 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ |
OLD | NEW |