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_COMMON_OPERATOR_H_ | 5 #ifndef V8_COMPILER_COMMON_OPERATOR_H_ |
6 #define V8_COMPILER_COMMON_OPERATOR_H_ | 6 #define V8_COMPILER_COMMON_OPERATOR_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/compiler/frame-states.h" | 9 #include "src/compiler/frame-states.h" |
10 #include "src/machine-type.h" | 10 #include "src/machine-type.h" |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 RelocInfo::Mode rmode_; | 129 RelocInfo::Mode rmode_; |
130 Type type_; | 130 Type type_; |
131 }; | 131 }; |
132 | 132 |
133 bool operator==(RelocatablePtrConstantInfo const& lhs, | 133 bool operator==(RelocatablePtrConstantInfo const& lhs, |
134 RelocatablePtrConstantInfo const& rhs); | 134 RelocatablePtrConstantInfo const& rhs); |
135 bool operator!=(RelocatablePtrConstantInfo const& lhs, | 135 bool operator!=(RelocatablePtrConstantInfo const& lhs, |
136 RelocatablePtrConstantInfo const& rhs); | 136 RelocatablePtrConstantInfo const& rhs); |
137 std::ostream& operator<<(std::ostream&, RelocatablePtrConstantInfo const&); | 137 std::ostream& operator<<(std::ostream&, RelocatablePtrConstantInfo const&); |
138 size_t hash_value(RelocatablePtrConstantInfo const& p); | 138 size_t hash_value(RelocatablePtrConstantInfo const& p); |
| 139 std::ostream& operator<<(std::ostream& os, |
| 140 const ZoneVector<MachineType>* types); |
139 | 141 |
140 // Interface for building common operators that can be used at any level of IR, | 142 // Interface for building common operators that can be used at any level of IR, |
141 // including JavaScript, mid-level, and low-level. | 143 // including JavaScript, mid-level, and low-level. |
142 class CommonOperatorBuilder final : public ZoneObject { | 144 class CommonOperatorBuilder final : public ZoneObject { |
143 public: | 145 public: |
144 explicit CommonOperatorBuilder(Zone* zone); | 146 explicit CommonOperatorBuilder(Zone* zone); |
145 | 147 |
146 const Operator* Dead(); | 148 const Operator* Dead(); |
147 const Operator* End(size_t control_input_count); | 149 const Operator* End(size_t control_input_count); |
148 const Operator* Branch(BranchHint = BranchHint::kNone); | 150 const Operator* Branch(BranchHint = BranchHint::kNone); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 Zone* const zone_; | 217 Zone* const zone_; |
216 | 218 |
217 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); | 219 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); |
218 }; | 220 }; |
219 | 221 |
220 } // namespace compiler | 222 } // namespace compiler |
221 } // namespace internal | 223 } // namespace internal |
222 } // namespace v8 | 224 } // namespace v8 |
223 | 225 |
224 #endif // V8_COMPILER_COMMON_OPERATOR_H_ | 226 #endif // V8_COMPILER_COMMON_OPERATOR_H_ |
OLD | NEW |