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 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 void Goto(RawMachineLabel* label); | 690 void Goto(RawMachineLabel* label); |
691 void Branch(Node* condition, RawMachineLabel* true_val, | 691 void Branch(Node* condition, RawMachineLabel* true_val, |
692 RawMachineLabel* false_val); | 692 RawMachineLabel* false_val); |
693 void Switch(Node* index, RawMachineLabel* default_label, int32_t* case_values, | 693 void Switch(Node* index, RawMachineLabel* default_label, int32_t* case_values, |
694 RawMachineLabel** case_labels, size_t case_count); | 694 RawMachineLabel** case_labels, size_t case_count); |
695 void Return(Node* value); | 695 void Return(Node* value); |
696 void Return(Node* v1, Node* v2); | 696 void Return(Node* v1, Node* v2); |
697 void Return(Node* v1, Node* v2, Node* v3); | 697 void Return(Node* v1, Node* v2, Node* v3); |
698 void Bind(RawMachineLabel* label); | 698 void Bind(RawMachineLabel* label); |
699 void Deoptimize(Node* state); | 699 void Deoptimize(Node* state); |
| 700 void DebugBreak(); |
700 | 701 |
701 // Variables. | 702 // Variables. |
702 Node* Phi(MachineRepresentation rep, Node* n1, Node* n2) { | 703 Node* Phi(MachineRepresentation rep, Node* n1, Node* n2) { |
703 return AddNode(common()->Phi(rep, 2), n1, n2, graph()->start()); | 704 return AddNode(common()->Phi(rep, 2), n1, n2, graph()->start()); |
704 } | 705 } |
705 Node* Phi(MachineRepresentation rep, Node* n1, Node* n2, Node* n3) { | 706 Node* Phi(MachineRepresentation rep, Node* n1, Node* n2, Node* n3) { |
706 return AddNode(common()->Phi(rep, 3), n1, n2, n3, graph()->start()); | 707 return AddNode(common()->Phi(rep, 3), n1, n2, n3, graph()->start()); |
707 } | 708 } |
708 Node* Phi(MachineRepresentation rep, Node* n1, Node* n2, Node* n3, Node* n4) { | 709 Node* Phi(MachineRepresentation rep, Node* n1, Node* n2, Node* n3, Node* n4) { |
709 return AddNode(common()->Phi(rep, 4), n1, n2, n3, n4, graph()->start()); | 710 return AddNode(common()->Phi(rep, 4), n1, n2, n3, n4, graph()->start()); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
768 bool deferred_; | 769 bool deferred_; |
769 friend class RawMachineAssembler; | 770 friend class RawMachineAssembler; |
770 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); | 771 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); |
771 }; | 772 }; |
772 | 773 |
773 } // namespace compiler | 774 } // namespace compiler |
774 } // namespace internal | 775 } // namespace internal |
775 } // namespace v8 | 776 } // namespace v8 |
776 | 777 |
777 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 778 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
OLD | NEW |