OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_RAW_MACHINE_ASSEMBLER_H_ | 5 #ifndef V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/compiler/common-operator.h" | 9 #include "src/compiler/common-operator.h" |
10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 const int32_t* case_values, RawMachineLabel** case_labels, | 752 const int32_t* case_values, RawMachineLabel** case_labels, |
753 size_t case_count); | 753 size_t case_count); |
754 void Return(Node* value); | 754 void Return(Node* value); |
755 void Return(Node* v1, Node* v2); | 755 void Return(Node* v1, Node* v2); |
756 void Return(Node* v1, Node* v2, Node* v3); | 756 void Return(Node* v1, Node* v2, Node* v3); |
757 void Bind(RawMachineLabel* label); | 757 void Bind(RawMachineLabel* label); |
758 void Deoptimize(Node* state); | 758 void Deoptimize(Node* state); |
759 void DebugBreak(); | 759 void DebugBreak(); |
760 void Comment(const char* msg); | 760 void Comment(const char* msg); |
761 | 761 |
| 762 // Add success / exception successor blocks and ends the current block ending |
| 763 // in a potentially throwing call node. |
| 764 void Continuations(Node* call, RawMachineLabel* if_success, |
| 765 RawMachineLabel* if_exception); |
| 766 |
762 // Variables. | 767 // Variables. |
763 Node* Phi(MachineRepresentation rep, Node* n1, Node* n2) { | 768 Node* Phi(MachineRepresentation rep, Node* n1, Node* n2) { |
764 return AddNode(common()->Phi(rep, 2), n1, n2, graph()->start()); | 769 return AddNode(common()->Phi(rep, 2), n1, n2, graph()->start()); |
765 } | 770 } |
766 Node* Phi(MachineRepresentation rep, Node* n1, Node* n2, Node* n3) { | 771 Node* Phi(MachineRepresentation rep, Node* n1, Node* n2, Node* n3) { |
767 return AddNode(common()->Phi(rep, 3), n1, n2, n3, graph()->start()); | 772 return AddNode(common()->Phi(rep, 3), n1, n2, n3, graph()->start()); |
768 } | 773 } |
769 Node* Phi(MachineRepresentation rep, Node* n1, Node* n2, Node* n3, Node* n4) { | 774 Node* Phi(MachineRepresentation rep, Node* n1, Node* n2, Node* n3, Node* n4) { |
770 return AddNode(common()->Phi(rep, 4), n1, n2, n3, n4, graph()->start()); | 775 return AddNode(common()->Phi(rep, 4), n1, n2, n3, n4, graph()->start()); |
771 } | 776 } |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
826 bool deferred_; | 831 bool deferred_; |
827 friend class RawMachineAssembler; | 832 friend class RawMachineAssembler; |
828 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); | 833 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); |
829 }; | 834 }; |
830 | 835 |
831 } // namespace compiler | 836 } // namespace compiler |
832 } // namespace internal | 837 } // namespace internal |
833 } // namespace v8 | 838 } // namespace v8 |
834 | 839 |
835 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 840 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
OLD | NEW |