| 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 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 641 // Control flow. | 641 // Control flow. |
| 642 void Goto(RawMachineLabel* label); | 642 void Goto(RawMachineLabel* label); |
| 643 void Branch(Node* condition, RawMachineLabel* true_val, | 643 void Branch(Node* condition, RawMachineLabel* true_val, |
| 644 RawMachineLabel* false_val); | 644 RawMachineLabel* false_val); |
| 645 void Switch(Node* index, RawMachineLabel* default_label, int32_t* case_values, | 645 void Switch(Node* index, RawMachineLabel* default_label, int32_t* case_values, |
| 646 RawMachineLabel** case_labels, size_t case_count); | 646 RawMachineLabel** case_labels, size_t case_count); |
| 647 void Return(Node* value); | 647 void Return(Node* value); |
| 648 void Return(Node* v1, Node* v2); | 648 void Return(Node* v1, Node* v2); |
| 649 void Return(Node* v1, Node* v2, Node* v3); | 649 void Return(Node* v1, Node* v2, Node* v3); |
| 650 void Bind(RawMachineLabel* label); | 650 void Bind(RawMachineLabel* label); |
| 651 void Fallthrough(RawMachineLabel* label); |
| 651 void Deoptimize(Node* state); | 652 void Deoptimize(Node* state); |
| 652 | 653 |
| 653 // Variables. | 654 // Variables. |
| 654 Node* Phi(MachineRepresentation rep, Node* n1, Node* n2) { | 655 Node* Phi(MachineRepresentation rep, Node* n1, Node* n2) { |
| 655 return AddNode(common()->Phi(rep, 2), n1, n2, graph()->start()); | 656 return AddNode(common()->Phi(rep, 2), n1, n2, graph()->start()); |
| 656 } | 657 } |
| 657 Node* Phi(MachineRepresentation rep, Node* n1, Node* n2, Node* n3) { | 658 Node* Phi(MachineRepresentation rep, Node* n1, Node* n2, Node* n3) { |
| 658 return AddNode(common()->Phi(rep, 3), n1, n2, n3, graph()->start()); | 659 return AddNode(common()->Phi(rep, 3), n1, n2, n3, graph()->start()); |
| 659 } | 660 } |
| 660 Node* Phi(MachineRepresentation rep, Node* n1, Node* n2, Node* n3, Node* n4) { | 661 Node* Phi(MachineRepresentation rep, Node* n1, Node* n2, Node* n3, Node* n4) { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 bool bound_; | 717 bool bound_; |
| 717 friend class RawMachineAssembler; | 718 friend class RawMachineAssembler; |
| 718 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); | 719 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); |
| 719 }; | 720 }; |
| 720 | 721 |
| 721 } // namespace compiler | 722 } // namespace compiler |
| 722 } // namespace internal | 723 } // namespace internal |
| 723 } // namespace v8 | 724 } // namespace v8 |
| 724 | 725 |
| 725 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 726 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
| OLD | NEW |