| 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 "src/compiler/node.h" | 8 #include "src/compiler/node.h" |
| 9 #include "src/compiler/operator.h" | 9 #include "src/compiler/operator.h" |
| 10 #include "src/unique.h" | 10 #include "src/unique.h" |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 Left left_; | 133 Left left_; |
| 134 Right right_; | 134 Right right_; |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 typedef BinopMatcher<Int32Matcher, Int32Matcher> Int32BinopMatcher; | 137 typedef BinopMatcher<Int32Matcher, Int32Matcher> Int32BinopMatcher; |
| 138 typedef BinopMatcher<Uint32Matcher, Uint32Matcher> Uint32BinopMatcher; | 138 typedef BinopMatcher<Uint32Matcher, Uint32Matcher> Uint32BinopMatcher; |
| 139 typedef BinopMatcher<Int64Matcher, Int64Matcher> Int64BinopMatcher; | 139 typedef BinopMatcher<Int64Matcher, Int64Matcher> Int64BinopMatcher; |
| 140 typedef BinopMatcher<Uint64Matcher, Uint64Matcher> Uint64BinopMatcher; | 140 typedef BinopMatcher<Uint64Matcher, Uint64Matcher> Uint64BinopMatcher; |
| 141 typedef BinopMatcher<Float64Matcher, Float64Matcher> Float64BinopMatcher; | 141 typedef BinopMatcher<Float64Matcher, Float64Matcher> Float64BinopMatcher; |
| 142 typedef BinopMatcher<NumberMatcher, NumberMatcher> NumberBinopMatcher; |
| 142 | 143 |
| 143 | 144 |
| 144 // Fairly intel-specify node matcher used for matching scale factors in | 145 // Fairly intel-specify node matcher used for matching scale factors in |
| 145 // addressing modes. | 146 // addressing modes. |
| 146 // Matches nodes of form [x * N] for N in {1,2,4,8} | 147 // Matches nodes of form [x * N] for N in {1,2,4,8} |
| 147 class ScaleFactorMatcher : public NodeMatcher { | 148 class ScaleFactorMatcher : public NodeMatcher { |
| 148 public: | 149 public: |
| 149 static const int kMatchedFactors[4]; | 150 static const int kMatchedFactors[4]; |
| 150 | 151 |
| 151 explicit ScaleFactorMatcher(Node* node); | 152 explicit ScaleFactorMatcher(Node* node); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 int power_; | 221 int power_; |
| 221 int displacement_; | 222 int displacement_; |
| 222 }; | 223 }; |
| 223 | 224 |
| 224 | 225 |
| 225 } // namespace compiler | 226 } // namespace compiler |
| 226 } // namespace internal | 227 } // namespace internal |
| 227 } // namespace v8 | 228 } // namespace v8 |
| 228 | 229 |
| 229 #endif // V8_COMPILER_NODE_MATCHERS_H_ | 230 #endif // V8_COMPILER_NODE_MATCHERS_H_ |
| OLD | NEW |