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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 Node* TailCallBytecodeDispatch(const CallInterfaceDescriptor& descriptor, | 399 Node* TailCallBytecodeDispatch(const CallInterfaceDescriptor& descriptor, |
400 Node* code_target_address, Node** args); | 400 Node* code_target_address, Node** args); |
401 | 401 |
402 Node* CallJS(Callable const& callable, Node* context, Node* function, | 402 Node* CallJS(Callable const& callable, Node* context, Node* function, |
403 Node* receiver, size_t result_size = 1); | 403 Node* receiver, size_t result_size = 1); |
404 Node* CallJS(Callable const& callable, Node* context, Node* function, | 404 Node* CallJS(Callable const& callable, Node* context, Node* function, |
405 Node* receiver, Node* arg1, size_t result_size = 1); | 405 Node* receiver, Node* arg1, size_t result_size = 1); |
406 Node* CallJS(Callable const& callable, Node* context, Node* function, | 406 Node* CallJS(Callable const& callable, Node* context, Node* function, |
407 Node* receiver, Node* arg1, Node* arg2, size_t result_size = 1); | 407 Node* receiver, Node* arg1, Node* arg2, size_t result_size = 1); |
408 | 408 |
| 409 // Call to a C function with two arguments. |
| 410 Node* CallCFunction2(MachineType return_type, MachineType arg0_type, |
| 411 MachineType arg1_type, Node* function, Node* arg0, |
| 412 Node* arg1); |
| 413 |
409 // Exception handling support. | 414 // Exception handling support. |
410 void GotoIfException(Node* node, Label* if_exception, | 415 void GotoIfException(Node* node, Label* if_exception, |
411 Variable* exception_var = nullptr); | 416 Variable* exception_var = nullptr); |
412 | 417 |
413 // Branching helpers. | 418 // Branching helpers. |
414 void BranchIf(Node* condition, Label* if_true, Label* if_false); | 419 void BranchIf(Node* condition, Label* if_true, Label* if_false); |
415 | 420 |
416 #define BRANCH_HELPER(name) \ | 421 #define BRANCH_HELPER(name) \ |
417 void BranchIf##name(Node* a, Node* b, Label* if_true, Label* if_false) { \ | 422 void BranchIf##name(Node* a, Node* b, Label* if_true, Label* if_false) { \ |
418 BranchIf(name(a, b), if_true, if_false); \ | 423 BranchIf(name(a, b), if_true, if_false); \ |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 // Map of variables to the list of value nodes that have been added from each | 483 // Map of variables to the list of value nodes that have been added from each |
479 // merge path in their order of merging. | 484 // merge path in their order of merging. |
480 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; | 485 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; |
481 }; | 486 }; |
482 | 487 |
483 } // namespace compiler | 488 } // namespace compiler |
484 } // namespace internal | 489 } // namespace internal |
485 } // namespace v8 | 490 } // namespace v8 |
486 | 491 |
487 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ | 492 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ |
OLD | NEW |