| 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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 // =========================================================================== | 529 // =========================================================================== |
| 530 // The following utility methods deal with control flow, hence might switch | 530 // The following utility methods deal with control flow, hence might switch |
| 531 // the current basic block or create new basic blocks for labels. | 531 // the current basic block or create new basic blocks for labels. |
| 532 | 532 |
| 533 // Control flow. | 533 // Control flow. |
| 534 void Goto(Label* label); | 534 void Goto(Label* label); |
| 535 void Branch(Node* condition, Label* true_val, Label* false_val); | 535 void Branch(Node* condition, Label* true_val, Label* false_val); |
| 536 void Switch(Node* index, Label* default_label, int32_t* case_values, | 536 void Switch(Node* index, Label* default_label, int32_t* case_values, |
| 537 Label** case_labels, size_t case_count); | 537 Label** case_labels, size_t case_count); |
| 538 void Return(Node* value); | 538 void Return(Node* value); |
| 539 void Return(Node* v1, Node* v2); |
| 540 void Return(Node* v1, Node* v2, Node* v3); |
| 539 void Bind(Label* label); | 541 void Bind(Label* label); |
| 540 void Deoptimize(Node* state); | 542 void Deoptimize(Node* state); |
| 541 | 543 |
| 542 // Variables. | 544 // Variables. |
| 543 Node* Phi(MachineType type, Node* n1, Node* n2) { | 545 Node* Phi(MachineType type, Node* n1, Node* n2) { |
| 544 return AddNode(common()->Phi(type, 2), n1, n2); | 546 return AddNode(common()->Phi(type, 2), n1, n2); |
| 545 } | 547 } |
| 546 Node* Phi(MachineType type, Node* n1, Node* n2, Node* n3) { | 548 Node* Phi(MachineType type, Node* n1, Node* n2, Node* n3) { |
| 547 return AddNode(common()->Phi(type, 3), n1, n2, n3); | 549 return AddNode(common()->Phi(type, 3), n1, n2, n3); |
| 548 } | 550 } |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 BasicBlock* current_block_; | 585 BasicBlock* current_block_; |
| 584 | 586 |
| 585 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); | 587 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); |
| 586 }; | 588 }; |
| 587 | 589 |
| 588 } // namespace compiler | 590 } // namespace compiler |
| 589 } // namespace internal | 591 } // namespace internal |
| 590 } // namespace v8 | 592 } // namespace v8 |
| 591 | 593 |
| 592 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 594 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
| OLD | NEW |