| 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 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 Node* context); | 699 Node* context); |
| 700 // Tail call to a runtime function with two arguments. | 700 // Tail call to a runtime function with two arguments. |
| 701 Node* TailCallRuntime2(Runtime::FunctionId function, Node* arg1, Node* arg2, | 701 Node* TailCallRuntime2(Runtime::FunctionId function, Node* arg1, Node* arg2, |
| 702 Node* context); | 702 Node* context); |
| 703 // Tail call to a runtime function with three arguments. | 703 // Tail call to a runtime function with three arguments. |
| 704 Node* TailCallRuntime3(Runtime::FunctionId function, Node* arg1, Node* arg2, | 704 Node* TailCallRuntime3(Runtime::FunctionId function, Node* arg1, Node* arg2, |
| 705 Node* arg3, Node* context); | 705 Node* arg3, Node* context); |
| 706 // Tail call to a runtime function with four arguments. | 706 // Tail call to a runtime function with four arguments. |
| 707 Node* TailCallRuntime4(Runtime::FunctionId function, Node* arg1, Node* arg2, | 707 Node* TailCallRuntime4(Runtime::FunctionId function, Node* arg1, Node* arg2, |
| 708 Node* arg3, Node* arg4, Node* context); | 708 Node* arg3, Node* arg4, Node* context); |
| 709 // Tail call to a runtime function with five arguments. |
| 710 Node* TailCallRuntime5(Runtime::FunctionId function, Node* arg1, Node* arg2, |
| 711 Node* arg3, Node* arg4, Node* arg5, Node* context); |
| 709 | 712 |
| 710 // =========================================================================== | 713 // =========================================================================== |
| 711 // The following utility methods deal with control flow, hence might switch | 714 // The following utility methods deal with control flow, hence might switch |
| 712 // the current basic block or create new basic blocks for labels. | 715 // the current basic block or create new basic blocks for labels. |
| 713 | 716 |
| 714 // Control flow. | 717 // Control flow. |
| 715 void Goto(RawMachineLabel* label); | 718 void Goto(RawMachineLabel* label); |
| 716 void Branch(Node* condition, RawMachineLabel* true_val, | 719 void Branch(Node* condition, RawMachineLabel* true_val, |
| 717 RawMachineLabel* false_val); | 720 RawMachineLabel* false_val); |
| 718 void Switch(Node* index, RawMachineLabel* default_label, int32_t* case_values, | 721 void Switch(Node* index, RawMachineLabel* default_label, int32_t* case_values, |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 bool deferred_; | 795 bool deferred_; |
| 793 friend class RawMachineAssembler; | 796 friend class RawMachineAssembler; |
| 794 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); | 797 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); |
| 795 }; | 798 }; |
| 796 | 799 |
| 797 } // namespace compiler | 800 } // namespace compiler |
| 798 } // namespace internal | 801 } // namespace internal |
| 799 } // namespace v8 | 802 } // namespace v8 |
| 800 | 803 |
| 801 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 804 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
| OLD | NEW |