OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/compiler/machine-type.h" | 8 #include "src/compiler/machine-type.h" |
9 #include "src/unique.h" | 9 #include "src/unique.h" |
10 | 10 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 }; | 146 }; |
147 | 147 |
148 bool operator==(FrameStateCallInfo const&, FrameStateCallInfo const&); | 148 bool operator==(FrameStateCallInfo const&, FrameStateCallInfo const&); |
149 bool operator!=(FrameStateCallInfo const&, FrameStateCallInfo const&); | 149 bool operator!=(FrameStateCallInfo const&, FrameStateCallInfo const&); |
150 | 150 |
151 size_t hash_value(FrameStateCallInfo const&); | 151 size_t hash_value(FrameStateCallInfo const&); |
152 | 152 |
153 std::ostream& operator<<(std::ostream&, FrameStateCallInfo const&); | 153 std::ostream& operator<<(std::ostream&, FrameStateCallInfo const&); |
154 | 154 |
155 | 155 |
| 156 size_t ProjectionIndexOf(const Operator* const); |
| 157 |
| 158 |
156 // Interface for building common operators that can be used at any level of IR, | 159 // Interface for building common operators that can be used at any level of IR, |
157 // including JavaScript, mid-level, and low-level. | 160 // including JavaScript, mid-level, and low-level. |
158 class CommonOperatorBuilder FINAL : public ZoneObject { | 161 class CommonOperatorBuilder FINAL : public ZoneObject { |
159 public: | 162 public: |
160 explicit CommonOperatorBuilder(Zone* zone); | 163 explicit CommonOperatorBuilder(Zone* zone); |
161 | 164 |
162 const Operator* Dead(); | 165 const Operator* Dead(); |
163 const Operator* End(); | 166 const Operator* End(); |
164 const Operator* Branch(BranchHint = BranchHint::kNone); | 167 const Operator* Branch(BranchHint = BranchHint::kNone); |
165 const Operator* IfTrue(); | 168 const Operator* IfTrue(); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 Zone* const zone_; | 208 Zone* const zone_; |
206 | 209 |
207 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); | 210 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); |
208 }; | 211 }; |
209 | 212 |
210 } // namespace compiler | 213 } // namespace compiler |
211 } // namespace internal | 214 } // namespace internal |
212 } // namespace v8 | 215 } // namespace v8 |
213 | 216 |
214 #endif // V8_COMPILER_COMMON_OPERATOR_H_ | 217 #endif // V8_COMPILER_COMMON_OPERATOR_H_ |
OLD | NEW |