| 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 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 755 return AddNode(op, sizeof...(args) + 1, buffer); | 755 return AddNode(op, sizeof...(args) + 1, buffer); |
| 756 } | 756 } |
| 757 | 757 |
| 758 private: | 758 private: |
| 759 Node* MakeNode(const Operator* op, int input_count, Node* const* inputs); | 759 Node* MakeNode(const Operator* op, int input_count, Node* const* inputs); |
| 760 BasicBlock* Use(RawMachineLabel* label); | 760 BasicBlock* Use(RawMachineLabel* label); |
| 761 BasicBlock* EnsureBlock(RawMachineLabel* label); | 761 BasicBlock* EnsureBlock(RawMachineLabel* label); |
| 762 BasicBlock* CurrentBlock(); | 762 BasicBlock* CurrentBlock(); |
| 763 | 763 |
| 764 Schedule* schedule() { return schedule_; } | 764 Schedule* schedule() { return schedule_; } |
| 765 size_t parameter_count() const { return machine_sig()->parameter_count(); } | 765 size_t parameter_count() const { return call_descriptor_->ParameterCount(); } |
| 766 const MachineSignature* machine_sig() const { | |
| 767 return call_descriptor_->GetMachineSignature(); | |
| 768 } | |
| 769 | 766 |
| 770 Isolate* isolate_; | 767 Isolate* isolate_; |
| 771 Graph* graph_; | 768 Graph* graph_; |
| 772 Schedule* schedule_; | 769 Schedule* schedule_; |
| 773 MachineOperatorBuilder machine_; | 770 MachineOperatorBuilder machine_; |
| 774 CommonOperatorBuilder common_; | 771 CommonOperatorBuilder common_; |
| 775 CallDescriptor* call_descriptor_; | 772 CallDescriptor* call_descriptor_; |
| 776 NodeVector parameters_; | 773 NodeVector parameters_; |
| 777 BasicBlock* current_block_; | 774 BasicBlock* current_block_; |
| 778 | 775 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 795 bool deferred_; | 792 bool deferred_; |
| 796 friend class RawMachineAssembler; | 793 friend class RawMachineAssembler; |
| 797 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); | 794 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); |
| 798 }; | 795 }; |
| 799 | 796 |
| 800 } // namespace compiler | 797 } // namespace compiler |
| 801 } // namespace internal | 798 } // namespace internal |
| 802 } // namespace v8 | 799 } // namespace v8 |
| 803 | 800 |
| 804 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 801 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
| OLD | NEW |