| 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 | 11 |
| 11 namespace v8 { | 12 namespace v8 { |
| 12 namespace internal { | 13 namespace internal { |
| 13 namespace compiler { | 14 namespace compiler { |
| 14 | 15 |
| 15 // A pattern matcher for nodes. | 16 // A pattern matcher for nodes. |
| 16 struct NodeMatcher { | 17 struct NodeMatcher { |
| 17 explicit NodeMatcher(Node* node) : node_(node) {} | 18 explicit NodeMatcher(Node* node) : node_(node) {} |
| 18 | 19 |
| 19 Node* node() const { return node_; } | 20 Node* node() const { return node_; } |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 int power_; | 220 int power_; |
| 220 int displacement_; | 221 int displacement_; |
| 221 }; | 222 }; |
| 222 | 223 |
| 223 | 224 |
| 224 } // namespace compiler | 225 } // namespace compiler |
| 225 } // namespace internal | 226 } // namespace internal |
| 226 } // namespace v8 | 227 } // namespace v8 |
| 227 | 228 |
| 228 #endif // V8_COMPILER_NODE_MATCHERS_H_ | 229 #endif // V8_COMPILER_NODE_MATCHERS_H_ |
| OLD | NEW |