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 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
741 Node* arg3, Node* arg4, Node* arg5, Node* context); | 741 Node* arg3, Node* arg4, Node* arg5, Node* context); |
742 | 742 |
743 // =========================================================================== | 743 // =========================================================================== |
744 // The following utility methods deal with control flow, hence might switch | 744 // The following utility methods deal with control flow, hence might switch |
745 // the current basic block or create new basic blocks for labels. | 745 // the current basic block or create new basic blocks for labels. |
746 | 746 |
747 // Control flow. | 747 // Control flow. |
748 void Goto(RawMachineLabel* label); | 748 void Goto(RawMachineLabel* label); |
749 void Branch(Node* condition, RawMachineLabel* true_val, | 749 void Branch(Node* condition, RawMachineLabel* true_val, |
750 RawMachineLabel* false_val); | 750 RawMachineLabel* false_val); |
751 void BranchIfSuccess(Node* call, RawMachineLabel* if_success, | |
Michael Starzinger
2016/08/19 08:53:56
I like the fact that the RawMachineAssembler is of
| |
752 RawMachineLabel* if_exception); | |
751 void Switch(Node* index, RawMachineLabel* default_label, | 753 void Switch(Node* index, RawMachineLabel* default_label, |
752 const int32_t* case_values, RawMachineLabel** case_labels, | 754 const int32_t* case_values, RawMachineLabel** case_labels, |
753 size_t case_count); | 755 size_t case_count); |
754 void Return(Node* value); | 756 void Return(Node* value); |
755 void Return(Node* v1, Node* v2); | 757 void Return(Node* v1, Node* v2); |
756 void Return(Node* v1, Node* v2, Node* v3); | 758 void Return(Node* v1, Node* v2, Node* v3); |
757 void Bind(RawMachineLabel* label); | 759 void Bind(RawMachineLabel* label); |
758 void Deoptimize(Node* state); | 760 void Deoptimize(Node* state); |
759 void DebugBreak(); | 761 void DebugBreak(); |
760 void Comment(const char* msg); | 762 void Comment(const char* msg); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
826 bool deferred_; | 828 bool deferred_; |
827 friend class RawMachineAssembler; | 829 friend class RawMachineAssembler; |
828 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); | 830 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); |
829 }; | 831 }; |
830 | 832 |
831 } // namespace compiler | 833 } // namespace compiler |
832 } // namespace internal | 834 } // namespace internal |
833 } // namespace v8 | 835 } // namespace v8 |
834 | 836 |
835 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 837 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
OLD | NEW |