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_NODE_MATCHERS_H_ | 5 #ifndef V8_COMPILER_NODE_MATCHERS_H_ |
6 #define V8_COMPILER_NODE_MATCHERS_H_ | 6 #define V8_COMPILER_NODE_MATCHERS_H_ |
7 | 7 |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 // TODO(turbofan): Move ExternalReference out of assembler.h | 10 // TODO(turbofan): Move ExternalReference out of assembler.h |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 Left left_; | 223 Left left_; |
224 Right right_; | 224 Right right_; |
225 }; | 225 }; |
226 | 226 |
227 typedef BinopMatcher<Int32Matcher, Int32Matcher> Int32BinopMatcher; | 227 typedef BinopMatcher<Int32Matcher, Int32Matcher> Int32BinopMatcher; |
228 typedef BinopMatcher<Uint32Matcher, Uint32Matcher> Uint32BinopMatcher; | 228 typedef BinopMatcher<Uint32Matcher, Uint32Matcher> Uint32BinopMatcher; |
229 typedef BinopMatcher<Int64Matcher, Int64Matcher> Int64BinopMatcher; | 229 typedef BinopMatcher<Int64Matcher, Int64Matcher> Int64BinopMatcher; |
230 typedef BinopMatcher<Uint64Matcher, Uint64Matcher> Uint64BinopMatcher; | 230 typedef BinopMatcher<Uint64Matcher, Uint64Matcher> Uint64BinopMatcher; |
231 typedef BinopMatcher<IntPtrMatcher, IntPtrMatcher> IntPtrBinopMatcher; | 231 typedef BinopMatcher<IntPtrMatcher, IntPtrMatcher> IntPtrBinopMatcher; |
232 typedef BinopMatcher<UintPtrMatcher, UintPtrMatcher> UintPtrBinopMatcher; | 232 typedef BinopMatcher<UintPtrMatcher, UintPtrMatcher> UintPtrBinopMatcher; |
| 233 typedef BinopMatcher<Float32Matcher, Float32Matcher> Float32BinopMatcher; |
233 typedef BinopMatcher<Float64Matcher, Float64Matcher> Float64BinopMatcher; | 234 typedef BinopMatcher<Float64Matcher, Float64Matcher> Float64BinopMatcher; |
234 typedef BinopMatcher<NumberMatcher, NumberMatcher> NumberBinopMatcher; | 235 typedef BinopMatcher<NumberMatcher, NumberMatcher> NumberBinopMatcher; |
235 | 236 |
236 | 237 |
237 template <class BinopMatcher, IrOpcode::Value kMulOpcode, | 238 template <class BinopMatcher, IrOpcode::Value kMulOpcode, |
238 IrOpcode::Value kShiftOpcode> | 239 IrOpcode::Value kShiftOpcode> |
239 struct ScaleMatcher { | 240 struct ScaleMatcher { |
240 explicit ScaleMatcher(Node* node, bool allow_power_of_two_plus_one = false) | 241 explicit ScaleMatcher(Node* node, bool allow_power_of_two_plus_one = false) |
241 : scale_(-1), power_of_two_plus_one_(false) { | 242 : scale_(-1), power_of_two_plus_one_(false) { |
242 if (node->InputCount() < 2) return; | 243 if (node->InputCount() < 2) return; |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 typedef BaseWithIndexAndDisplacementMatcher<Int32AddMatcher> | 540 typedef BaseWithIndexAndDisplacementMatcher<Int32AddMatcher> |
540 BaseWithIndexAndDisplacement32Matcher; | 541 BaseWithIndexAndDisplacement32Matcher; |
541 typedef BaseWithIndexAndDisplacementMatcher<Int64AddMatcher> | 542 typedef BaseWithIndexAndDisplacementMatcher<Int64AddMatcher> |
542 BaseWithIndexAndDisplacement64Matcher; | 543 BaseWithIndexAndDisplacement64Matcher; |
543 | 544 |
544 } // namespace compiler | 545 } // namespace compiler |
545 } // namespace internal | 546 } // namespace internal |
546 } // namespace v8 | 547 } // namespace v8 |
547 | 548 |
548 #endif // V8_COMPILER_NODE_MATCHERS_H_ | 549 #endif // V8_COMPILER_NODE_MATCHERS_H_ |
OLD | NEW |